From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glenn Morris 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 Message-ID: <80aa389mvi.fsf__7788.77714551545$1332462927$gmane$org@fencepost.gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAsTL-00063R-7b for emacs-orgmode@gnu.org; Thu, 22 Mar 2012 20:35:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAsTJ-0005NR-HQ for emacs-orgmode@gnu.org; Thu, 22 Mar 2012 20:35:14 -0400 Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-Message-ID: In-Reply-To: (Eric Hanchrow's message of "Thu, 20 Oct 2011 08:51:55 -0700") 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: Eric Hanchrow Cc: 9809@debbugs.gnu.org Eric Hanchrow wrote: > I started emacs with "emacs -Q". Then I typed > > M-x o r g - m o d e M-x f l y s p e l l - > m o d e C-h c C-h c M-TAB > > C-h c showed me " 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 -- 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) and `C-i', make just one binding, for the ASCII character (octal code 011). If you do want to distinguish, make one binding for this ASCII character, and another for the "function key" `tab'.