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 08:50:45 -0400 Message-ID: References: <83li2wotfd.fsf@gnu.org> <87d2o76hkb.fsf@uwakimon.sk.tsukuba.ac.jp> <83hadjq4zf.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 1379426438 22705 80.91.229.3 (17 Sep 2013 14:00:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 14:00:38 +0000 (UTC) Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 17 16:00:40 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 1VLvpX-0002i8-Oh for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 16:00:39 +0200 Original-Received: from localhost ([::1]:41357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLvpX-0005Id-Ei for ged-emacs-devel@m.gmane.org; Tue, 17 Sep 2013 10:00:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLukX-0001m4-Nc for emacs-devel@gnu.org; Tue, 17 Sep 2013 08:51:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLukR-0006pD-FC for emacs-devel@gnu.org; Tue, 17 Sep 2013 08:51:25 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:57686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLukI-0006mE-5W; Tue, 17 Sep 2013 08:51:10 -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 7457A84BDF; Tue, 17 Sep 2013 08:51:09 -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 1D65B1E5B74; Tue, 17 Sep 2013 08:50:45 -0400 (EDT) In-Reply-To: <83hadjq4zf.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 09:52:32 -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:163387 Archived-At: 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 wrote: >> From: "Stephen J. Turnbull" >> Date: Tue, 17 Sep 2013 16:19:48 +0900 >> Cc: Marc Feeley , emacs-devel@gnu.org >>=20 >> 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. >=20 > I'm not sure we have that capability. I may be wrong, though. >=20 >> I think Emacs allows background pixmaps, doesn't it? >=20 > I don't think so. We only support :stipple. Again, I know almost > nothing about this. >=20 >> 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. >>=20 >> Of course it wouldn't be particularly robust to scrolling and such. >=20 > Right. The Emacs redisplay never redraws the background, except when > it completely erases the frame. >=20 >> 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. >=20 > We don't have a canvas in Emacs, I think.