unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Marc Feeley <feeley@iro.umontreal.ca>
Cc: stephen@xemacs.org, emacs-devel@gnu.org
Subject: Re: There should be an option to set the display size of an image to	zero
Date: Tue, 17 Sep 2013 17:02:09 +0300	[thread overview]
Message-ID: <83a9jbpmvy.fsf@gnu.org> (raw)
In-Reply-To: <CD65E78E-F409-4EFC-9FC9-B69169E39EFA@iro.umontreal.ca>

> From: Marc Feeley <feeley@iro.umontreal.ca>
> Date: Tue, 17 Sep 2013 08:50:45 -0400
> Cc: "Stephen J. Turnbull" <stephen@xemacs.org>,
>  emacs-devel@gnu.org
> 
> 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.

I vaguely understand, but it is still not clear enough how you would
achieve those goals with "arrows".  Where will the arrows originate,
and where will they point?  Perhaps you could show a screenshot?

> 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.

Did you consider using display margins?  Emacs can show display
strings and images in the display margins, to the left or right of the
text.  These display strings and images are "pinned" to specific
buffer positions, so they scroll with the text.

Since I don't have a clear idea of what you want to accomplish, I
cannot be sure this feature gives you what you need.  If they do, then
making them show when the mouse is at some specific place should not
be too hard, I think.



  reply	other threads:[~2013-09-17 14:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17  2:37 There should be an option to set the display size of an image to zero Marc Feeley
2013-09-17  6:26 ` Eli Zaretskii
2013-09-17  7:19   ` Stephen J. Turnbull
2013-09-17  7:31     ` Eli Zaretskii
2013-09-17 12:50       ` Marc Feeley
2013-09-17 14:02         ` Eli Zaretskii [this message]
2013-09-17 14:43           ` Marc Feeley
2013-09-17 16:10             ` Eli Zaretskii
2013-09-17 16:15               ` Marc Feeley
2013-09-17 16:56                 ` chad
2013-09-17 21:57               ` Stefan Monnier
2013-09-18  6:56                 ` Eli Zaretskii
2013-09-18 15:18                   ` Jan Djärv
2013-09-18 16:10                   ` Stefan Monnier
2013-09-18 16:38                     ` Eli Zaretskii
2013-09-18 17:06                       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a9jbpmvy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=feeley@iro.umontreal.ca \
    --cc=stephen@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).