From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Several suggestions for image support Date: 19 Apr 2004 10:29:16 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87zn98ybzl.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082386064 10553 80.91.224.253 (19 Apr 2004 14:47:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2004 14:47:44 +0000 (UTC) Cc: David Kastrup , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 19 16:47:36 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFa3c-0002Te-00 for ; Mon, 19 Apr 2004 16:47:36 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFa3b-0005QS-01 for ; Mon, 19 Apr 2004 16:47:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFa2x-0005nd-VL for emacs-devel@quimby.gnus.org; Mon, 19 Apr 2004 10:46:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BFa2P-0005ly-G1 for emacs-devel@gnu.org; Mon, 19 Apr 2004 10:46:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BFa1r-0005cq-IY for emacs-devel@gnu.org; Mon, 19 Apr 2004 10:46:18 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFZlv-0002x8-7a; Mon, 19 Apr 2004 10:29:19 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 5345A21186; Mon, 19 Apr 2004 10:29:16 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 375BF8B4C3; Mon, 19 Apr 2004 10:29:16 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: Original-Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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=-0.908, requis 5, BAYES_10 -0.91) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21886 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21886 >> > I already suggested to use two new primitives (that have incidentally >> > been requested for other purpose): >> > >> > point-to-pixel >> > and >> > pixel-to-point >> > >> > which turn a (displayed) buffer position into a display position and vice >> > versa. All the rest should then be reasonably easy to do in Elisp. >> >> I don't see how. Absolutely not. Emacs moves point out of images. >> Without stopping points, point will not remain inside of the image >> anywhere. OK, maybe we'd need window-start-to-pixel as well, or somesuch. Note that "buffer position" would not be just an integer but an info very much (or probably even exactly) like the one provided in mouse-lick events. I expect that the same C code can be used for it. Stefan