From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Patch to fix error in Emacs-Lisp Reference Manual Date: Thu, 13 Jan 2005 09:01:38 -0600 (CST) Message-ID: <200501131501.j0DF1c312385@raven.dms.auburn.edu> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1105628785 9575 80.91.229.6 (13 Jan 2005 15:06:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2005 15:06:25 +0000 (UTC) Cc: franl@world.std.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 13 16:06:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cp6Y5-0001m5-00 for ; Thu, 13 Jan 2005 16:06:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cp6jj-0001Dw-KJ for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2005 10:18:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cp6ia-0000xs-QN for emacs-devel@gnu.org; Thu, 13 Jan 2005 10:17:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cp6iU-0000uh-If for emacs-devel@gnu.org; Thu, 13 Jan 2005 10:16:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cp6iU-0000tD-8Q for emacs-devel@gnu.org; Thu, 13 Jan 2005 10:16:54 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cp6Ul-0001K9-8s for emacs-devel@gnu.org; Thu, 13 Jan 2005 10:02:43 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j0DF1x9N010801; Thu, 13 Jan 2005 09:01:59 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j0DF1c312385; Thu, 13 Jan 2005 09:01:38 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: ttn@glug.org In-reply-to: (message from Thien-Thi Nguyen on Thu, 13 Jan 2005 03:08:04 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32196 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32196 Francis Litterio wrote: --- keymaps.texi 10 Aug 2004 11:40:14 -0400 1.53 +++ keymaps.texi 12 Jan 2005 14:14:34 -0500 @@ -566,7 +566,7 @@ supply a binding for the key, Emacs searches the local map; if that too has no binding, Emacs then searches the global map. However, if @code{overriding-local-map} is non-@code{nil}, Emacs searches that map -first, before the global map. +first, before the minor mode maps. and Thien-Thi Nguyen wrote: thanks, installed. Sorry, for not noticing this thread before. This change is wrong. A little bit earlier in `(elisp)Active Keymaps' we see: The variable `overriding-local-map', if non-`nil', specifies another local keymap that overrides the buffer's local map and all the minor mode keymaps. and a little bit later: -- Variable: overriding-local-map If non-`nil', this variable holds a keymap to use instead of the buffer's local keymap, text property or overlay keymaps, and instead of all the minor mode keymaps. This keymap, if any, overrides all other maps that would have been active, except for the current global map. In other words, `overriding-local-map' _overrides_ the minor mode keymaps and the local map. If it is non-nil, it is called before the _global_ map, and _not_ before the minor mode maps, which are not called at all. The easiest fix would be to just revert the change. Alternatively, one could clarify the sentence, as in the patch below, even though it gets rather repetitive, because exactly the same thing is already pointed out a little bit earlier and a little bit later. ===File ~/keymaps.texi-diff================================= *** keymaps.texi 13 Jan 2005 07:53:17 -0600 1.54 --- keymaps.texi 13 Jan 2005 08:33:29 -0600 *************** *** 566,572 **** supply a binding for the key, Emacs searches the local map; if that too has no binding, Emacs then searches the global map. However, if @code{overriding-local-map} is non-@code{nil}, Emacs searches that map ! first, before the minor mode maps. @cindex major mode keymap Since every buffer that uses the same major mode normally uses the --- 566,573 ---- supply a binding for the key, Emacs searches the local map; if that too has no binding, Emacs then searches the global map. However, if @code{overriding-local-map} is non-@code{nil}, Emacs searches that map ! first, before the before the global map and ignores the minor mode ! maps and the local map. @cindex major mode keymap Since every buffer that uses the same major mode normally uses the ============================================================