emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: There should be an option to set the display size of an image to zer


From: Marc Feeley
Subject: Re: There should be an option to set the display size of an image to zero
Date: Tue, 17 Sep 2013 08:50:45 -0400

Let me explain the context so that you better understand my specific needs.  I 
want to use emacs as a programming tool to display the result of some program 
analyses of the code currently in the buffer.  Specifically I want to display 
arrows that indicate how data flows in the program.  For example, what are all 
the places in the code where the value resulting from a given constructor are 
referenced, or inversely, what are all the calls to constructors whose 
resulting value can flow to a particular point in the code.

My plan is to display arrows indicating these relationships and to overlay them 
on top of the program source code.  It would be ideal if it was possible to 
place an image on top of the text that scrolls with the text.  The arrows would 
only appear if the cursor (or mouse) is placed on top of a constructor or 
accessor, so it must be efficient to change the image dynamically.  An SVG 
image would be ideal because the image can easily be constructed and takes 
little space.

I've prototyped such an interface in JavaScript by using a web browser as a 
display engine.  However, editing is not easy to achieve.  I really want emacs 
for this.

How hard would it be to implement such a feature in emacs?

Here's a wild idea: has anyone compiled emacs using emscripten to allow emacs 
to run in a web browser?  It would then be easy to overlay graphics on top of 
the emacs text.

Marc


On 2013-09-17, at 3:31 AM, Eli Zaretskii <address@hidden> wrote:

>> From: "Stephen J. Turnbull" <address@hidden>
>> Date: Tue, 17 Sep 2013 16:19:48 +0900
>> Cc: Marc Feeley <address@hidden>, address@hidden
>> 
>> As he phrased it, yes.  But the use-case he described could be
>> accomodated fairly simply by blitting the image to the *background*
>> rather than treating it as a (more or less) giant character in the
>> foreground.
> 
> I'm not sure we have that capability.  I may be wrong, though.
> 
>> I think Emacs allows background pixmaps, doesn't it?
> 
> I don't think so.  We only support :stipple.  Again, I know almost
> nothing about this.
> 
>> What I do (in XEmacs) when translating or inputting from a
>> photographed page image is to make that image the background pixmap,
>> then just type right over the text I'm working on.
>> 
>> Of course it wouldn't be particularly robust to scrolling and such.
> 
> Right.  The Emacs redisplay never redraws the background, except when
> it completely erases the frame.
> 
>> To get a relatively robust version, you'd just need to be able to
>> "pin" rectangular objects to the background canvas, which shouldn't be
>> too hard.  Allowing you to pin those things relative to a particular
>> marker in text might be quite a bit more complex, though.
> 
> We don't have a canvas in Emacs, I think.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]