unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* no local map in minibuffer
@ 2006-01-22 20:16 Masatake YAMATO
  2006-01-24 16:47 ` Richard M. Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Masatake YAMATO @ 2006-01-22 20:16 UTC (permalink / raw)


I found a situation where (current-local-map) returns nil in minibuffer.
I'll tell how to reproduce it here. Could you tell me this is the expected
behavior or not(bug)?
I tested this example with 
GNU Emacs 22.0.51.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars, multi-tty) of 2006-01-20 on localhost.localdomain.

1. Run emacs with -Q 
2. Evaluate following code:

   (defun my-report-if-no-keymap ()
      (unless (current-local-map)
         (error "No local keymap"))) 
   (add-hook 'minibuffer-exit-hook 'my-report-if-no-keymap)

3. Type just M-x (here I expect the minibuffer history is empty.)
4. Type M-r
5. Give a something string to prompt, "Previous element matching (regexp): ".

   Previous element matching (regexp): foo

6. Type return key.

7. Emacs reports "No local keymap".
   I expect (current-local-map) returns a keymap but it returns nil.

Masatake YAMATO

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: no local map in minibuffer
  2006-01-22 20:16 no local map in minibuffer Masatake YAMATO
@ 2006-01-24 16:47 ` Richard M. Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard M. Stallman @ 2006-01-24 16:47 UTC (permalink / raw)
  Cc: emacs-devel

    I found a situation where (current-local-map) returns nil in minibuffer.

If it happens on exiting from the minibuffer, it may not have
any significance.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-24 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-22 20:16 no local map in minibuffer Masatake YAMATO
2006-01-24 16:47 ` Richard M. Stallman

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).