From: Nick Dokos <nicholas.dokos@hp.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org, nicholas.dokos@hp.com,
"Mark S." <throaway@yahoo.com>
Subject: Re: Ctl-E doesn't go to end of line?
Date: Tue, 17 May 2011 23:40:02 -0400 [thread overview]
Message-ID: <5308.1305690002@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Bernt Hansen <bernt@norang.ca> of "Tue, 17 May 2011 21:39:04 EDT." <8762p8ss7b.fsf@norang.ca>
Bernt Hansen <bernt@norang.ca> wrote:
> "Mark S." <throaway@yahoo.com> 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
next prev parent reply other threads:[~2011-05-18 3:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-17 23:00 Ctl-E doesn't go to end of line? Mark S.
2011-05-18 0:32 ` Bernt Hansen
2011-05-18 1:26 ` Mark S.
2011-05-18 1:39 ` Bernt Hansen
2011-05-18 3:40 ` Nick Dokos [this message]
2011-05-18 3:45 ` Bernt Hansen
2011-05-18 4:58 ` Nick Dokos
2011-05-18 12:32 ` Mark S.
2011-05-18 2:30 ` Memnon Anon
2011-05-18 3:26 ` Mark S.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5308.1305690002@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=throaway@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).