From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: completion-list-mode-map Date: Wed, 16 Mar 2011 22:22:31 -0400 Message-ID: References: <86sjumznt9.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300328575 4726 80.91.229.12 (17 Mar 2011 02:22:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2011 02:22:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Christoph Scholtes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 17 03:22:51 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q02rS-0001Up-Ea for ged-emacs-devel@m.gmane.org; Thu, 17 Mar 2011 03:22:50 +0100 Original-Received: from localhost ([127.0.0.1]:51731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q02rR-0005Kw-PO for ged-emacs-devel@m.gmane.org; Wed, 16 Mar 2011 22:22:49 -0400 Original-Received: from [140.186.70.92] (port=43615 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q02rB-0005CU-Ns for emacs-devel@gnu.org; Wed, 16 Mar 2011 22:22:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q02rA-00007s-Kv for emacs-devel@gnu.org; Wed, 16 Mar 2011 22:22:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40102 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q02rA-00007k-Fi for emacs-devel@gnu.org; Wed, 16 Mar 2011 22:22:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGMNgU1MCqJN/2dsb2JhbAClUHjCb4VjBJVa X-IronPort-AV: E=Sophos;i="4.63,197,1299474000"; d="scan'208";a="96930171" Original-Received: from 76-10-162-77.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.77]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 16 Mar 2011 22:22:31 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 90F0F660BB; Wed, 16 Mar 2011 22:22:31 -0400 (EDT) In-Reply-To: <86sjumznt9.fsf@gmail.com> (Christoph Scholtes's message of "Wed, 16 Mar 2011 16:46:10 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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: news.gmane.org gmane.emacs.devel:137326 Archived-At: > Is there a specific reason why `completion-list-mode-map' does not have > the parent map `special-mode-map'? Mostly that special-mode-map is "recent" and we haven't changed all the code to use it yet. > It seems a little inconsistent that other command like `h' or `?' are > not available in a completion-list buffer and `z' and `q' are redefined > in `completion-list-mode-map'. > Also, I changed the definition of `completion-list-mode-map' as follows: > (defvar completion-list-mode-map > (let ((map (make-sparse-keymap))) > (set-keymap-parent map special-mode-map) > (define-key map [mouse-2] 'mouse-choose-completion) > [...] You might instead define completion-list-mode to derive from special-mode rather than nil. > and reloaded, even byte-recompiled simple.el, and ultimately restarted > Emacs but for some reason Emacs would still show the old version of the > map with `C-h v completion-list-mode-map'. Any idea why? Reloading simple.el doesn't do it, because `defvar' has no effect if the variable is already defined (hitting C-M-x with point inside the defvar OTOH has special code to redefine the variable). Recompiling simple.el and restarting Emacs doesn't make a difference betwen simple.elc is preloaded in the `emacs' executable, so you'd then need to rebuild `emacs' (which is built by running `temacs', loading some files and then "dumping" the result to the `emacs' file). Stefan