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: C-n and C-a Date: Thu, 12 Feb 2009 20:04:12 +0900 Message-ID: References: <8763jotmim.fsf@jurta.org> <873aerpn4y.fsf@cyd.mit.edu> <87vdrln48c.fsf@jurta.org> <87vdrgwq1v.fsf@jurta.org> <87ljscifbc.fsf@catnip.gol.com> <87mycs53q3.fsf@jurta.org> 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 1234436687 20823 80.91.229.12 (12 Feb 2009 11:04:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Feb 2009 11:04:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 12 12:06:02 2009 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 1LXZOB-0003Pq-2W for ged-emacs-devel@m.gmane.org; Thu, 12 Feb 2009 12:05:52 +0100 Original-Received: from localhost ([127.0.0.1]:54955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXZMr-0000Bt-54 for ged-emacs-devel@m.gmane.org; Thu, 12 Feb 2009 06:04:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXZMi-0000Aj-CT for emacs-devel@gnu.org; Thu, 12 Feb 2009 06:04:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXZMg-00008Z-6s for emacs-devel@gnu.org; Thu, 12 Feb 2009 06:04:19 -0500 Original-Received: from [199.232.76.173] (port=59318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXZMg-00008M-0E for emacs-devel@gnu.org; Thu, 12 Feb 2009 06:04:18 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:58891) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LXZMd-0001Da-DN; Thu, 12 Feb 2009 06:04:16 -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 n1CB4C5V012449; Thu, 12 Feb 2009 20:04:12 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay21.aps.necel.com with ESMTP; Thu, 12 Feb 2009 20:04:12 +0900 Original-Received: from dhlpc061 ([10.114.112.240] [10.114.112.240]) by relay21.aps.necel.com with ESMTP; Thu, 12 Feb 2009 20:04:12 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 31AE652E2F8; Thu, 12 Feb 2009 20:04:12 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: <87mycs53q3.fsf@jurta.org> (Juri Linkov's message of "Thu, 12 Feb 2009 12:05:12 +0200") Original-Lines: 29 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:109020 Juri Linkov writes: >>> For the same reason I think we should not set word-mode in >>> visual-line-mode. >> >> This seems bizarre -- AFAICS, like 95% of the goal of visual-line-mode >> is to make it easy to enable a word-wrapped mode for editing >> paragraphs-end-in-newline text (i.e., a display-time version of >> longlines-mode). > > The problem is that currently by default C-n/C-p moves by visual lines, > but C-a/C-e moves by real lines. `visual-line-mode' is the only way to > cause C-a/C-e to move by visual lines. But it forces `word-wrap' to be > t even in buffers where word-wrap should be nil (where word wrap gives > sub-optimal results). If visual-line-mode doesn't turn on word-wrap, then there needs to be a new mode which is visual-line-mode+word-wrap, because I think that's an incredibly common case (probably more so than without word-wrap). If the only use of visual-line-mode without word-wrap is programmatically (by other modes), then maybe it's enough to just force word-wrap off in those modes somehow (either by frobbing the variable itself after turning it on, or by some let-binding around the mode invocation). -Miles -- Run away! Run away!