unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Bastien <bzg@altern.org>
To: drain <aeuster@gmail.com>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: org-mode keybinding
Date: Wed, 22 Aug 2012 18:21:12 +0200	[thread overview]
Message-ID: <878vd6vqx3.fsf@altern.org> (raw)
In-Reply-To: <1345376934090-261815.post@n5.nabble.com> (drain's message of "Sun, 19 Aug 2012 04:48:54 -0700 (PDT)")

drain <aeuster@gmail.com> writes:

> Now the code loads without error, just like the first two variations I
> listed, but the remapped command is still functioning like
> beginning-of-line, rather than org-beginning-of-line.
>
> Perhaps to be clearer, if this is my heading, and point starts at P, right
> after the last dot of the ellipsis:
>
> *Movies...P
>
> and I press C-q, point moves on top of the first dot of the ellipsis. I
> Press C-q again, point moves on top of the asterisk.
>
> C-a, however, which is mapped to org-beginning-of-line in org.el, moves
> point from the last ellipsis dot to the asterisk immediately.

I cannot reproduce or understand the problem.

If you have

  (require 'org)
  (define-key org-mode-map "\C-q" 'org-beginning-of-line)

then C-q will call `org-beginning-of-line'.

Perhaps you can instrument `org-beginning-of-line' ?

C-h f org-beginning-of-line RET to find the function and
C-u C-M-x at the end of the function to "edebug" it.

Then C-q again to see what happens.

-- 
 Bastien



  reply	other threads:[~2012-08-22 16:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18  7:55 org-mode keybinding drain
2012-08-18 16:08 ` Bastien
2012-08-19 10:41   ` drain
2012-08-19 11:18     ` Peter Dyballa
2012-08-19 11:48       ` drain
2012-08-22 16:21         ` Bastien [this message]
2012-08-23  5:46           ` drain
     [not found] <mailman.7187.1345276544.855.help-gnu-emacs@gnu.org>
2012-08-22 14:56 ` Stefan Monnier

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vd6vqx3.fsf@altern.org \
    --to=bzg@altern.org \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=aeuster@gmail.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.
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).