From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lennart Borgman Subject: bug#9809: 24.0.90; flyspell-auto-correct-word hard to access in org-mode Date: Sat, 24 Mar 2012 00:28:37 +0100 Message-ID: References: <80aa389mvi.fsf@fencepost.gnu.org> <87pqc3x83n.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBDvu-0008Np-4w for emacs-orgmode@gnu.org; Fri, 23 Mar 2012 19:30:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBDvs-0001rN-8S for emacs-orgmode@gnu.org; Fri, 23 Mar 2012 19:30:09 -0400 Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-Message-ID: In-Reply-To: <87pqc3x83n.fsf@altern.org> 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: Bastien Guerry Cc: Glenn Morris , 9809@debbugs.gnu.org, Eric Hanchrow On Fri, Mar 23, 2012 at 23:31, Bastien Guerry wrote: > > Hi Glenn, > > Glenn Morris writes: > > > Eric Hanchrow wrote: > > > >> I started emacs with "emacs -Q". =C2=A0Then I typed > >> > >> =C2=A0 =C2=A0 M-x o r g - m o d e M-x f l y s p e l l - > >> =C2=A0 =C2=A0 m o d e C-h c C-h c M-TAB > >> > >> C-h c showed me " runs the command pcomplete". > >> C-h c =C2=A0M-TAB (which I typed via Ctrl+Alt+i) showed me "M-TAB runs= the > >> command flyspell-auto-correct-word". > >> > >> I expected _both_ key events -- and M-TAB -- to show me > >> flyspell-auto-correct-word. > > > > This occurs because org.el for some reason tries to define the M-TAB ke= y > > 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" =C2=A0 =C2=A0 =C2=A0'pcomplete) > > > > Removing all but the second definition would fix this. > > > > Ref "Named ASCII Control Characters" in the lispref. > > > > =C2=A0 =C2=A0 If you do not want to distinguish between (for example) <= TAB> and > > =C2=A0 =C2=A0 `C-i', make just one binding, for the ASCII character (octal > > =C2=A0 =C2=A0 code 011). If you do want to distinguish, make one bindin= g for this > > =C2=A0 =C2=A0 ASCII character, and another for the "function key" `tab'= . > > Thanks. =C2=A0This is now fixing in Org repo, I'll close the bug when > this goes into Emacs. Isn't there an underlying bug in Emacs here? Should not the flyspell binding have overrided the org-mode-map binding from the beginning (since org-mode-map is a major mode map)?