unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why does where-is-internal return nil?
@ 2004-04-24 22:13 Juanma Barranquero
  2004-04-25  0:10 ` Andreas Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Juanma Barranquero @ 2004-04-24 22:13 UTC (permalink / raw)


A question about where-is-internal and keymaps.

I'm trying to do the following:

;;;; .emacs.el contains:

(global-set-key [f12] 'ielm)
(add-hook 'ielm-mode-hook
	  (lambda ()
	    (define-key ielm-map
                        (where-is-internal 'ielm nil t)
                        'ignore)))

;;; end of .emacs.el

According to docs, `where-is-internal' should be searching in "all the
currently active keymaps", because KEYMAP is nil.

Now:

  emacs     => we're on *scratch*
  f12       => ielm starts
  C-x k RET => ielm buffer deleted, we're back on *scratch*
  f12       => "Wrong type argument: arrayp, nil"

Somehow, on the second call, `where-is-internal' is returning nil. It
doesn't happen if I pass `global-map' to KEYMAP instead of nil, but that
means that, on the second call, `where-is-internal' is looking... where?

                                                           /L/e/k/t/u

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

end of thread, other threads:[~2004-08-20 22:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-24 22:13 Why does where-is-internal return nil? Juanma Barranquero
2004-04-25  0:10 ` Andreas Schwab
2004-04-25  0:44   ` Juanma Barranquero
2004-08-20 22:18   ` Stefan Monnier

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