From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Longlines mode in menu Date: Thu, 12 Jun 2008 12:38:24 -0400 Message-ID: <87y75apq0v.fsf@stupidchicken.com> References: <87wsl41lq0.fsf@stupidchicken.com> <87bq2666dd.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213289102 32617 80.91.229.12 (12 Jun 2008 16:45:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2008 16:45:02 +0000 (UTC) Cc: "Kim F. Storm" , Emacs-Devel devel To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 12 18:45:44 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 1K6pvZ-0000mm-GH for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 18:45:33 +0200 Original-Received: from localhost ([127.0.0.1]:44146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6pul-0006V9-U5 for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 12:44:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6pt3-0005Pl-4H for emacs-devel@gnu.org; Thu, 12 Jun 2008 12:42:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6pt1-0005Oy-FQ for emacs-devel@gnu.org; Thu, 12 Jun 2008 12:42:56 -0400 Original-Received: from [199.232.76.173] (port=44538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6pt1-0005Ot-7g for emacs-devel@gnu.org; Thu, 12 Jun 2008 12:42:55 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:43308) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6pt1-00026o-4c for emacs-devel@gnu.org; Thu, 12 Jun 2008 12:42:55 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id E7AEF4E688; Thu, 12 Jun 2008 12:38:24 -0400 (EDT) In-Reply-To: (David Reitter's message of "Thu, 12 Jun 2008 17:12:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:99021 Archived-At: David Reitter writes: > On 12 Jun 2008, at 16:05, Chong Yidong wrote: >> >> The display-time work wrapping won't necessarily help. It would >> interfere with commands that expect soft newlines to behave like >> newlines (next-line, etc). > > Internally, they would move to the next paragraph, which is the next > line in the underlying file. That may well be the correct behavior. > This is not any different from `truncate-lines' being nil, with the > occasional line wrapped. > > Things like C-n can be changed to actually move to the next line. > For Aquamacs I have written code that moves to the next (visible) line > and places the cursor as close (horizontally) as possible. This is > also relevant when using variable-width fonts. I'd be more than happy > to contribute that. In the long run, this approach is definitely the way to go. The main concern is that rebinding the motion commands is a non-trivial change. Unless it's unavoidable, I'd prefer not to revisit this issue during the current release cycle. If it's possible to change font-lock to understand soft newlines, that might be a better fix for the moment.