From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Several suggestions for image support Date: 19 Apr 2004 09:57:39 +0200 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 1082361517 8908 80.91.224.253 (19 Apr 2004 07:58:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2004 07:58:37 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 19 09:58:28 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 1BFTfg-0002e9-00 for ; Mon, 19 Apr 2004 09:58:28 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFTfg-0008Nv-00 for ; Mon, 19 Apr 2004 09:58:28 +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 1BFTfY-0002fP-RU for emacs-devel@quimby.gnus.org; Mon, 19 Apr 2004 03:58:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BFTfQ-0002eK-OV for emacs-devel@gnu.org; Mon, 19 Apr 2004 03:58:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BFTet-0002U8-LP for emacs-devel@gnu.org; Mon, 19 Apr 2004 03:58:11 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFTet-0002Tq-5E for emacs-devel@gnu.org; Mon, 19 Apr 2004 03:57:39 -0400 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1BFTdp-00071K-PP; Mon, 19 Apr 2004 03:56:34 -0400 Original-To: Stefan Monnier In-Reply-To: <87zn98ybzl.fsf-monnier+emacs@gnu.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 30 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:21872 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21872 Stefan Monnier writes: > >> Of course, scrolling through large images should be possible, anyway, > >> and quite independent from that fanciful features. Emacs already has > >> set-window-vscroll in its display engine in order to deal perfectly > >> well with that. > > Yes, and it could probably be done entirely in lisp !? > > 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. And I certainly can't draw a cursor box over a selected area of an image. Or have mouse highlighting over a selected area. I am still thinking about Kim's proposal (horizontal slices with vertical subslices) with regard to use under preview-latex. It would certainly cater for pretty much every important application I currently have in mind. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum