From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1332545424 4194 80.91.229.3 (23 Mar 2012 23:30:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2012 23:30:24 +0000 (UTC) Cc: 9809@debbugs.gnu.org, Eric Hanchrow To: Bastien Guerry Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 24 00:30:21 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SBDw1-0007o6-AH for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Mar 2012 00:30:17 +0100 Original-Received: from localhost ([::1]:51642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBDw0-00005p-Ev for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Mar 2012 19:30:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBDvx-0008Qn-DG for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 19:30:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SBDvv-0001s1-My for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 19:30:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SBDvs-0001rB-39; Fri, 23 Mar 2012 19:30:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SBEPm-0000yt-L4; Fri, 23 Mar 2012 20:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Sat, 24 Mar 2012 00:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9809 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: Original-Received: via spool by 9809-submit@debbugs.gnu.org id=B9809.13325472133711 (code B ref 9809); Sat, 24 Mar 2012 00:01:02 +0000 Original-Received: (at 9809) by debbugs.gnu.org; 24 Mar 2012 00:00:13 +0000 Original-Received: from localhost ([127.0.0.1]:35928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBEOx-0000xm-6E for submit@debbugs.gnu.org; Fri, 23 Mar 2012 20:00:13 -0400 Original-Received: from mail-lb0-f172.google.com ([209.85.217.172]:42298) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SBEOg-0000wJ-5W for 9809@debbugs.gnu.org; Fri, 23 Mar 2012 20:00:09 -0400 Original-Received: by lbol12 with SMTP id l12so2727137lbo.3 for <9809@debbugs.gnu.org>; Fri, 23 Mar 2012 16:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=yyaSp3AM6wBOxw9P+yV+xwIDhhAURbCwmHzNSb2wwPg=; b=UoXA3HIokjJ/rJBZO5O4j04LIJzeNwxiY1iMmtgooYzoJPYqnOfqzsR5ZKARqlz+rh unxpIbIdYF5Q9cqOQC/a8sONTbAX8xPOMCqCRKegSzWEsVmTo/k1YL4hhxhh/VE+VpMp 0ii8ODQIREW+mVQH9Rcyh0ayx4p0Y33McsqQ1okXqA8RhwjIFi/2rGX1aVVExAIojBUs EeJpqN7SLfk8ol2kaPGeC9SP5yM7cgcw+622cTEw91tuhT1RExkmr8XfNqwVA0IF8cz6 gdGKIa73nQC/tL+x3lcBr430m3i7CMS1ko5ctafjMWhAlIwJ4ybWXThGLYM9ZKOW49b7 84/w== Original-Received: by 10.112.103.8 with SMTP id fs8mr5282858lbb.29.1332545337851; Fri, 23 Mar 2012 16:28:57 -0700 (PDT) Original-Received: by 10.112.2.200 with HTTP; Fri, 23 Mar 2012 16:28:37 -0700 (PDT) In-Reply-To: <87pqc3x83n.fsf@altern.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58055 Archived-At: 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)?