From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Feeley Newsgroups: gmane.emacs.devel Subject: Re: There should be an option to set the display size of an image to zero Date: Tue, 17 Sep 2013 10:43:47 -0400 Message-ID: References: <83li2wotfd.fsf@gnu.org> <87d2o76hkb.fsf@uwakimon.sk.tsukuba.ac.jp> <83hadjq4zf.fsf@gnu.org> <83a9jbpmvy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1379431282 19267 80.91.229.3 (17 Sep 2013 15:21:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 15:21:22 +0000 (UTC) Cc: stephen@xemacs.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 17 17:21:25 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VLx5g-0008GN-6t for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 17:21:24 +0200 Original-Received: from localhost ([::1]:41932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLx5f-0005jn-DF for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 11:21:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLwVs-0001Oo-H4 for emacs-devel@gnu.org; Tue, 17 Sep 2013 10:44:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLwVn-0002et-Aw for emacs-devel@gnu.org; Tue, 17 Sep 2013 10:44:24 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:59845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLwVg-0002d7-H4; Tue, 17 Sep 2013 10:44:12 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 018E084C28; Tue, 17 Sep 2013 10:44:11 -0400 (EDT) Original-Received: from neo.iro.umontreal.ca (neo.iro.umontreal.ca [132.204.26.233]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 8D8591E5AE3; Tue, 17 Sep 2013 10:43:48 -0400 (EDT) In-Reply-To: <83a9jbpmvy.fsf@gnu.org> X-Mailer: Apple Mail (2.1508) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: feeley@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 X-Mailman-Approved-At: Tue, 17 Sep 2013 11:21:20 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163389 Archived-At: On 2013-09-17, at 10:02 AM, Eli Zaretskii wrote: >> From: Marc Feeley >> Date: Tue, 17 Sep 2013 08:50:45 -0400 >> Cc: "Stephen J. Turnbull" , >> emacs-devel@gnu.org >>=20 >> 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. >=20 > 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? Here's a screenshot showing the type of annotation I'm trying to = implement: = http://planet.racket-lang.org/package-source/mflatt/scribble-paper.plt/2/1= /planet-docs/scribble/collatz.png The screenshot is from the racket Scheme implementation which supports = arrow annotations. >> 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. >=20 > 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. But can the image in a margin overflow the margin to overlay the main = text? I assume not. Marc