emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Eric Hanchrow <eric.hanchrow@gmail.com>
Cc: 9809@debbugs.gnu.org
Subject: bug#9809: 24.0.90; flyspell-auto-correct-word hard to access in org-mode
Date: Thu, 22 Mar 2012 20:33:53 -0400	[thread overview]
Message-ID: <80aa389mvi.fsf__7788.77714551545$1332462927$gmane$org@fencepost.gnu.org> (raw)
In-Reply-To: <CAHZoxq8t3b7XUwt3zrh+iPYxCp9sQ-yAOrj1H2Y8UoEuB5sgVQ@mail.gmail.com> (Eric Hanchrow's message of "Thu, 20 Oct 2011 08:51:55 -0700")

Eric Hanchrow wrote:

> I started emacs with "emacs -Q".  Then I typed
>
>     M-x o r g - m o d e <return> M-x f l y s p e l l -
>     m o d e <return> C-h c <M-tab> C-h c M-TAB
>
> C-h c <M-tab> showed me "<M-tab> runs the command pcomplete".
> C-h c  M-TAB (which I typed via Ctrl+Alt+i) showed me "M-TAB runs the
> command flyspell-auto-correct-word".
>
> I expected _both_ key events -- <M-tab> and M-TAB -- to show me
> flyspell-auto-correct-word.

This occurs because org.el for some reason tries to define the M-TAB key
3 different ways:

(org-defkey org-mode-map [(meta tab)] 'pcomplete)
(org-defkey org-mode-map "\M-\t" 'pcomplete)
(org-defkey org-mode-map "\M-\C-i"      'pcomplete)

Removing all but the second definition would fix this.

Ref "Named ASCII Control Characters" in the lispref.

    If you do not want to distinguish between (for example) <TAB> and
    `C-i', make just one binding, for the ASCII character <TAB> (octal
    code 011). If you do want to distinguish, make one binding for this
    ASCII character, and another for the "function key" `tab'.

       reply	other threads:[~2012-03-23  0:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHZoxq8t3b7XUwt3zrh+iPYxCp9sQ-yAOrj1H2Y8UoEuB5sgVQ@mail.gmail.com>
2012-03-23  0:33 ` Glenn Morris [this message]
     [not found] ` <80aa389mvi.fsf@fencepost.gnu.org>
2012-03-23 22:31   ` Bastien Guerry
2012-03-23 23:28     ` Lennart Borgman
     [not found]     ` <CANbX3664-BAqs7KK39__UM_Y8k_U0P-4TXfypoFLhow3evg9OA@mail.gmail.com>
2012-03-24  2:00       ` Stefan Monnier
     [not found]   ` <87pqc3x83n.fsf__44728.201654698$1332541889$gmane$org@altern.org>
2012-04-01 10:00     ` Bastien

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='80aa389mvi.fsf__7788.77714551545$1332462927$gmane$org@fencepost.gnu.org' \
    --to=rgm@gnu.org \
    --cc=9809@debbugs.gnu.org \
    --cc=eric.hanchrow@gmail.com \
    --subject='Re: bug#9809: 24.0.90; flyspell-auto-correct-word hard to access in org-mode' \
    /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

Code repositories for project(s) associated with this 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).