From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: Drawing in images? Date: Fri, 28 Aug 2009 01:51:18 +0200 Message-ID: References: <87bpm028zk.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251419525 11497 80.91.229.12 (28 Aug 2009 00:32:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2009 00:32:05 +0000 (UTC) Cc: MON KEY , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 28 02:31:58 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MgpNk-0003kc-5u for ged-emacs-devel@m.gmane.org; Fri, 28 Aug 2009 02:31:57 +0200 Original-Received: from localhost ([127.0.0.1]:42920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgpNj-0000kC-77 for ged-emacs-devel@m.gmane.org; Thu, 27 Aug 2009 20:31:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgpNH-0000bF-NH for emacs-devel@gnu.org; Thu, 27 Aug 2009 20:31:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgpNC-0000Zw-7s for emacs-devel@gnu.org; Thu, 27 Aug 2009 20:31:26 -0400 Original-Received: from [199.232.76.173] (port=55520 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgpNB-0000Zj-P3 for emacs-devel@gnu.org; Thu, 27 Aug 2009 20:31:21 -0400 Original-Received: from proxy2.bredband.net ([195.54.101.72]:37708) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgokU-0003sS-0z for emacs-devel@gnu.org; Thu, 27 Aug 2009 19:51:22 -0400 Original-Received: from iph1.telenor.se (195.54.127.132) by proxy2.bredband.net (7.3.140.3) id 4A8FF7140022405A for emacs-devel@gnu.org; Fri, 28 Aug 2009 01:51:20 +0200 X-SMTPAUTH-B2: joakvero X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApJnADy5lkpT44qWPGdsb2JhbACKC5EAAQEBATe9QIQZBQ X-IronPort-AV: E=Sophos;i="4.44,288,1249250400"; d="scan'208";a="39966391" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO exodia) ([83.227.138.150]) by iph1.telenor.se with ESMTP; 28 Aug 2009 01:51:20 +0200 Original-Received: from localhost.localdomain (chopper.lan [192.168.200.116]) (authenticated bits=0) by exodia (8.14.3/8.14.3) with ESMTP id n7RNpIqK026305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 28 Aug 2009 01:51:19 +0200 In-Reply-To: <87bpm028zk.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 27 Aug 2009 18:21:51 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114710 Archived-At: Chong Yidong writes: > joakim@verona.se writes: > >> This should be possible by drawing a SVG image on top of another >> image. The SVG image is XML which can be generated in a buffer within >> Emacs. > > If I understand you, you're suggesting to generate an SVG image that > contains a bitmap (the underlying image), plus a rectangle (or whatever > else), correct? This approach has the great advantage that it can be > implemented entirely in Lisp. Anyone want to give it a shot? I might :) Another idea: Provide a new image spec :map-draw, which tells Emacs to draw the graphic commands in the :map property. -- Joakim Verona