From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: longlines-mode Date: Thu, 28 Feb 2008 11:47:45 -0500 Message-ID: References: <87k5kvtthe.fsf@stupidchicken.com> <8763wfnzpt.fsf@stupidchicken.com> <2AA0523D-A6C0-45A5-B209-02563A822F41@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204217311 10327 80.91.229.12 (28 Feb 2008 16:48:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 16:48:31 +0000 (UTC) Cc: emacs-devel@gnu.org, =?iso-8859-1?Q?Bockg=1FFFFFFFFFFFFFFFrd?= , Johan, Miles Bader To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 17:48:56 2008 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 1JUlw9-0000jF-Cz for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 17:48:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUlvc-0002k9-U4 for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 11:48:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUlvL-0002ck-3G for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:47:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUlvJ-0002bM-Jz for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:47:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUlvJ-0002bB-Ay for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:47:57 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUlvE-0008NM-Ud; Thu, 28 Feb 2008 11:47:53 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 81A672CF92A; Thu, 28 Feb 2008 11:47:52 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 078403FE0; Thu, 28 Feb 2008 11:47:46 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id F05286CAAA; Thu, 28 Feb 2008 11:47:45 -0500 (EST) In-Reply-To: <2AA0523D-A6C0-45A5-B209-02563A822F41@gmail.com> (David Reitter's message of "Thu, 28 Feb 2008 07:38:04 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:90734 Archived-At: >> In particular, there are many issues associated with _editing_ >> display-wrapped code -- common Emacs' commands will often do the wrong >> thing (most obviously C-a, C-n, and other line-movement commands). > We have been using different code for these that does the right > thing. This was necessary primarily because of variable width > fonts. is bound to visual-line-down', which moves the point to > the next visual line and to the column that is closest on the screen > (pixel wise), minimizing horizontal offset (in pixels). Other > functions provided are beginning-of-visual-line', > `end-of-visual-line', `kill- visual-line', `kill-whole-visual-line'. Could you show us the corresponding code? Stefan