From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Ctl-E doesn't go to end of line? Date: Tue, 17 May 2011 23:40:02 -0400 Message-ID: <5308.1305690002@alphaville.dokosmarshall.org> References: <553581.47710.qm@web32001.mail.mud.yahoo.com> <8762p8ss7b.fsf@norang.ca> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMXcU-0003l7-FU for emacs-orgmode@gnu.org; Tue, 17 May 2011 23:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMXcT-0007te-46 for emacs-orgmode@gnu.org; Tue, 17 May 2011 23:40:22 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:64890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMXcS-0007tW-Tq for emacs-orgmode@gnu.org; Tue, 17 May 2011 23:40:21 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LLD00L87GUQ8Y90@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 17 May 2011 22:40:08 -0500 (CDT) In-reply-to: Message from Bernt Hansen of "Tue, 17 May 2011 21:39:04 EDT." <8762p8ss7b.fsf@norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode@gnu.org, nicholas.dokos@hp.com, "Mark S." Bernt Hansen wrote: > "Mark S." writes: > > > Hi Bernt, > > > > Thanks for pointing that out. > > > > However, I'm not on an item line nor a header line, so those settings > > should not apply. But even when I changed my line to an item, and then > > tried the settings "t" and "reversed", it still wouldn't hop to the > > end of the line in one go. In fact, if the line is long enough, I may > > have to hit Ctl-E several times. So is something broken, or is there > > some other incantation? > > > > Sorry Mark, I just tried it on a headline only. C-e invokes > end-of-visual-line and there seems to be no way to turn that off as a > option. > > The following patch disables this behaviour permanently but it should > probably be turned into an option in org-mode preserving the current > behaviour as the default. > > Modified lisp/org.el > diff --git a/lisp/org.el b/lisp/org.el > index 975266c..af57d54 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -19495,8 +19495,7 @@ beyond the end of the headline." > (not (org-on-heading-p)) > arg) > (call-interactively > - (cond ((org-bound-and-true-p line-move-visual) 'end-of-visual-line) > - ((fboundp 'move-end-of-line) 'move-end-of-line) > + (cond ((fboundp 'move-end-of-line) 'move-end-of-line) > (t 'end-of-line))) > (let ((pos (point))) > (beginning-of-line 1) > Isn't this the same as setting line-move-visual to nil? Just pretend it's an org-mode option. Nick