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: line-line-move-visual: was line motion problem Date: Wed, 16 Jul 2008 12:47:41 -0400 Message-ID: <87abghlqs2.fsf@stupidchicken.com> References: <18557.63556.231489.523637@gargle.gargle.HOWL> <5F62534C-D5CE-4364-8F73-E1AE0D61B4E2@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216226844 27614 80.91.229.12 (16 Jul 2008 16:47:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 16:47:24 +0000 (UTC) Cc: raman@users.sourceforge.net, Stefan Monnier , emacs-devel@gnu.org To: David Reitter Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 16 18:48:11 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 1KJAAX-0001sX-30 for ged-emacs-devel@m.gmane.org; Wed, 16 Jul 2008 18:47:57 +0200 Original-Received: from localhost ([127.0.0.1]:40734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJA9e-0007UA-MD for ged-emacs-devel@m.gmane.org; Wed, 16 Jul 2008 12:47:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJA9a-0007Rm-0y for emacs-devel@gnu.org; Wed, 16 Jul 2008 12:46:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJA9Y-0007P8-FL for emacs-devel@gnu.org; Wed, 16 Jul 2008 12:46:57 -0400 Original-Received: from [199.232.76.173] (port=48793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJA9Y-0007Op-9a for emacs-devel@gnu.org; Wed, 16 Jul 2008 12:46:56 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:44514 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJA9Y-0008Ja-3r for emacs-devel@gnu.org; Wed, 16 Jul 2008 12:46:56 -0400 Original-Received: by cyd (Postfix, from userid 1000) id D0AF057E2BE; Wed, 16 Jul 2008 12:47:41 -0400 (EDT) In-Reply-To: <5F62534C-D5CE-4364-8F73-E1AE0D61B4E2@gmail.com> (David Reitter's message of "Wed, 16 Jul 2008 12:37:47 -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, 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:100822 Archived-At: David Reitter writes: > On 16 Jul 2008, at 12:26, Stefan Monnier wrote: >> >> Yes, it should be a define-minor-mode (with name ending in "-mode"). >> Can someone make this change? > > What do we conclude from the discussion related to this? > > My understanding is that we were going to have visual navigation > (arrow keys, C-n, C-p) default to on, and leave default behavior of C- > a and C-e as is, with some code (from the visual-line-mode that I > posted) to optionally remap C-a and C-e to visual navigation as it is > sensible in text modes. > > Should this be one minor mode that defaults to on, or should we have > two minor modes then? > Also, should C-a and C-e default to the visual mode in all text modes? > (Would that just go in text-mode-hook?) I think we should have a defcustom that sets the default value of line-move-visual, and a minor mode (I guess it'll be called visual-line-mode, since there doesn't seem to be any better name) that provides the rest of the visual editing features. The minor mode would then turn on word-wrap and line-move-visual in buffers where it is activated.