From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Why does where-is-internal return nil? Date: Sun, 25 Apr 2004 00:13:43 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040424234835.516C.LEKTU@mi.madritel.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082845053 9107 80.91.224.253 (24 Apr 2004 22:17:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Apr 2004 22:17:33 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Apr 25 00:17:23 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHVSd-0004Ys-00 for ; Sun, 25 Apr 2004 00:17:23 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHVSd-0003be-00 for ; Sun, 25 Apr 2004 00:17:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHVPg-0004PB-O2 for emacs-devel@quimby.gnus.org; Sat, 24 Apr 2004 18:14:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHVPc-0004P5-Ku for emacs-devel@gnu.org; Sat, 24 Apr 2004 18:14:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHVP6-0004LX-Mq for emacs-devel@gnu.org; Sat, 24 Apr 2004 18:14:15 -0400 Original-Received: from [62.81.186.16] (helo=smtp06.retemail.es) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHVP6-0004L8-7R for emacs-devel@gnu.org; Sat, 24 Apr 2004 18:13:44 -0400 Original-Received: from [127.0.0.1] ([213.37.34.45]) by smtp06.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20040424221318.NRRW8269.smtp06.retemail.es@[127.0.0.1]> for ; Sun, 25 Apr 2004 00:13:18 +0200 Original-To: emacs-devel@gnu.org X-Mailer: Becky! ver. 2.09.01 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22105 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22105 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