[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Ctl-E doesn't go to end of line?
From: |
Bernt Hansen |
Subject: |
Re: [O] Ctl-E doesn't go to end of line? |
Date: |
Tue, 17 May 2011 23:45:20 -0400 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> Bernt Hansen <address@hidden> wrote:
>
>> "Mark S." <address@hidden> 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.
Could be :) I didn't find any details about that var when I looked at
the docstrings for the functions involved.
Thanks for pointing that out.
-Bernt
Re: [O] Ctl-E doesn't go to end of line?, Memnon Anon, 2011/05/17