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 13:14:20 -0400 Message-ID: <87hcbylgnn.fsf@stupidchicken.com> References: <87wsl41lq0.fsf@stupidchicken.com> <87bq2666dd.fsf@stupidchicken.com> <87y75apq0v.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 1213291150 7912 80.91.229.12 (12 Jun 2008 17:19:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2008 17:19:10 +0000 (UTC) Cc: Emacs-Devel devel , "Kim F. Storm" To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 12 19:19:53 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 1K6qSf-0006Sh-KA for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 19:19:45 +0200 Original-Received: from localhost ([127.0.0.1]:45886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6qRr-0001Gd-RC for ged-emacs-devel@m.gmane.org; Thu, 12 Jun 2008 13:18:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6qRo-0001GR-2J for emacs-devel@gnu.org; Thu, 12 Jun 2008 13:18:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6qRm-0001G2-5f for emacs-devel@gnu.org; Thu, 12 Jun 2008 13:18:50 -0400 Original-Received: from [199.232.76.173] (port=52024 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6qRm-0001Fx-2L for emacs-devel@gnu.org; Thu, 12 Jun 2008 13:18:50 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:44596) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6qRl-0007LG-Pz for emacs-devel@gnu.org; Thu, 12 Jun 2008 13:18:49 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 0EE3B4E688; Thu, 12 Jun 2008 13:14:20 -0400 (EDT) In-Reply-To: <87y75apq0v.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 12 Jun 2008 12:38:24 -0400") 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:99024 Archived-At: Chong Yidong writes: >> 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. However, it may be a good idea to incorporate Kim's patch now, *without* rebinding any motion commands, and provide it as an alternative value for `truncate-line'. This would be useful for editing files with occasional long lines, e.g. code with long comments. Editing text that consists mostly of long lines would be cumbersome, but no worse than with the current continued/truncated lines system.