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: The display margin Date: 27 Nov 2003 18:17:35 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <16080.60869.212521.952911@nick.uklinux.net> <200305251636.h4PGa1ll021935@rum.cs.yale.edu> <16082.42589.935105.932019@nick.uklinux.net> <16321.14941.117864.117597@nick.uklinux.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069975325 1995 80.91.224.253 (27 Nov 2003 23:22:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2003 23:22:05 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Nov 28 00:22:02 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1APVSU-0002DB-00 for ; Fri, 28 Nov 2003 00:22:02 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1APVST-0005Pk-00 for ; Fri, 28 Nov 2003 00:22:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1APWML-0002oE-S1 for emacs-devel@quimby.gnus.org; Thu, 27 Nov 2003 19:19:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1APWMG-0002na-5Z for emacs-devel@gnu.org; Thu, 27 Nov 2003 19:19:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1APWLi-0002jE-3Z for emacs-devel@gnu.org; Thu, 27 Nov 2003 19:19:38 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1APWLh-0002iy-KG; Thu, 27 Nov 2003 19:19:05 -0500 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id hARNHZbj028753; Thu, 27 Nov 2003 18:17:35 -0500 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 990873C63E; Thu, 27 Nov 2003 18:17:35 -0500 (EST) Original-To: David Kastrup In-Reply-To: Original-Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 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:18178 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18178 > Well, further preview-latex usability problems are that Emacs often > goes ballistic when large height images are concerned, particularly > larger than window size images. Scrolling those to a particular > viewing position is pretty much impossible, scrollbar interaction is > nonworkable, and scroll-wheel stuff is pretty much unpredictable as > well (there have been Emacs versions where wheel-use could lead to > lockup with large images, I am not sure whether this is currently the > case). This indeed needs fixing. I think one good way to fix it is if we could easily change back&forth between pixel-positions and internal-positions (which might look like click-event positions in that they should say if and where the position is inside an image). This way we could compute the pixel-position of the middle of the window, then compute the logical internal-position corresponding to it and move that to windows-start (using vscroll if necessary). The pos-to-pixel translation has also been requested by people who want to popup tooltips or menus at point (rather than at the mouse-position). Stefan