From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Christoph Scholtes <cschol2112@googlemail.com>
Cc: emacs-devel@gnu.org
Subject: Re: completion-list-mode-map
Date: Wed, 16 Mar 2011 22:22:31 -0400 [thread overview]
Message-ID: <jwvzkoulcbp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <86sjumznt9.fsf@gmail.com> (Christoph Scholtes's message of "Wed, 16 Mar 2011 16:46:10 -0600")
> 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
next prev parent reply other threads:[~2011-03-17 2:22 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 22:46 completion-list-mode-map Christoph Scholtes
2011-03-17 2:22 ` Stefan Monnier [this message]
2011-03-17 5:00 ` completion-list-mode-map Christoph Scholtes
2011-03-17 12:53 ` completion-list-mode-map Wojciech Meyer
-- strict thread matches above, loose matches on Subject: below --
2011-06-04 14:20 completion-list-mode-map Christoph Scholtes
2011-06-06 15:31 ` completion-list-mode-map Stefan Monnier
2011-06-26 23:00 ` completion-list-mode-map Christoph Scholtes
2011-06-29 3:04 ` completion-list-mode-map Stefan Monnier
2011-07-02 16:00 ` completion-list-mode-map Christoph Scholtes
2011-07-02 22:30 ` completion-list-mode-map Stefan Monnier
2011-07-03 0:18 ` completion-list-mode-map Christoph Scholtes
2011-07-03 5:38 ` completion-list-mode-map Stefan Monnier
2011-07-06 1:37 ` completion-list-mode-map Christoph Scholtes
2011-07-06 12:49 ` completion-list-mode-map Stefan Monnier
2011-07-10 2:41 ` completion-list-mode-map Christoph Scholtes
2011-07-12 3:20 ` completion-list-mode-map Stefan Monnier
2011-07-12 4:20 ` completion-list-mode-map Christoph Scholtes
2011-07-14 2:19 ` completion-list-mode-map Christoph Scholtes
2011-07-12 11:29 ` completion-list-mode-map Juanma Barranquero
2011-07-13 3:57 ` completion-list-mode-map Stefan Monnier
2011-08-02 1:59 ` completion-list-mode-map Christoph Scholtes
2011-08-14 17:34 ` completion-list-mode-map Chong Yidong
2011-08-15 2:11 ` completion-list-mode-map Stefan Monnier
2011-08-15 4:48 ` completion-list-mode-map Thierry Volpiatto
2011-08-15 15:12 ` completion-list-mode-map Chong Yidong
2011-08-16 16:54 ` completion-list-mode-map Stefan Monnier
2011-08-16 18:53 ` completion-list-mode-map martin rudalics
2011-08-16 20:29 ` completion-list-mode-map Stefan Monnier
2011-08-16 20:54 ` completion-list-mode-map martin rudalics
2011-08-16 22:06 ` completion-list-mode-map Chong Yidong
2011-08-17 9:06 ` completion-list-mode-map martin rudalics
2011-08-17 20:39 ` completion-list-mode-map Chong Yidong
2011-08-18 6:57 ` completion-list-mode-map martin rudalics
2011-08-18 22:46 ` completion-list-mode-map Chong Yidong
2011-08-19 7:13 ` completion-list-mode-map martin rudalics
2011-08-20 19:20 ` completion-list-mode-map Chong Yidong
2011-08-21 8:45 ` completion-list-mode-map martin rudalics
2011-08-21 20:26 ` completion-list-mode-map Chong Yidong
2011-08-22 9:00 ` completion-list-mode-map Juri Linkov
2011-08-22 10:05 ` completion-list-mode-map Štěpán Němec
2011-08-22 19:52 ` completion-list-mode-map Stefan Monnier
2011-08-22 15:00 ` completion-list-mode-map Chong Yidong
2011-08-23 9:44 ` completion-list-mode-map martin rudalics
2011-09-03 17:19 ` completion-list-mode-map Christoph Scholtes
2011-09-03 18:33 ` completion-list-mode-map Chong Yidong
2011-09-03 20:01 ` completion-list-mode-map Christoph Scholtes
2011-09-05 14:40 ` completion-list-mode-map Chong Yidong
2011-09-05 18:02 ` completion-list-mode-map Andreas Schwab
2011-08-17 1:19 ` completion-list-mode-map Stefan Monnier
2011-08-17 9:06 ` completion-list-mode-map martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvzkoulcbp.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cschol2112@googlemail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).