From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: longlines-mode Date: Thu, 28 Feb 2008 17:01:24 +0900 Message-ID: References: <87k5kvtthe.fsf@stupidchicken.com> <8763wfnzpt.fsf@stupidchicken.com> <2AA0523D-A6C0-45A5-B209-02563A822F41@gmail.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204185718 24944 80.91.229.12 (28 Feb 2008 08:01:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 08:01:58 +0000 (UTC) Cc: Johan =?iso-8859-1?Q?Bockg=E5rd?= , emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 09:02:23 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 1JUdig-0004w9-TH for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 09:02:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUdiA-0002TS-CD for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 03:01:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUdi6-0002TN-KG for emacs-devel@gnu.org; Thu, 28 Feb 2008 03:01:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUdi3-0002TB-Ts for emacs-devel@gnu.org; Thu, 28 Feb 2008 03:01:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUdi3-0002T8-QL for emacs-devel@gnu.org; Thu, 28 Feb 2008 03:01:43 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUdhz-0001Ss-F2; Thu, 28 Feb 2008 03:01:39 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUdhw-0000Hv-Cu; Thu, 28 Feb 2008 03:01:37 -0500 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m1S81I6M001943; Thu, 28 Feb 2008 17:01:24 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay21.aps.necel.com with ESMTP; Thu, 28 Feb 2008 17:01:24 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay21.aps.necel.com with ESMTP; Thu, 28 Feb 2008 17:01:24 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id 9A1273F6; Thu, 28 Feb 2008 17:01:24 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <2AA0523D-A6C0-45A5-B209-02563A822F41@gmail.com> (David Reitter's message of "Thu, 28 Feb 2008 07:38:04 +0000") Original-Lines: 21 X-detected-kernel: by mx20.gnu.org: Solaris 8 (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:90701 Archived-At: David Reitter writes: >> 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'. Of course the question is whether simple rebinding of common user command is enough; obviously any _other_ function which attempts to do line-oriented manipulation may act "weird" as a result. -Miles -- Bore, n. A person who talks when you wish him to listen.