From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: no local map in minibuffer Date: Mon, 23 Jan 2006 05:16:20 +0900 (JST) Message-ID: <20060123.051620.66352581.jet@gyve.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137968510 23494 80.91.229.2 (22 Jan 2006 22:21:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2006 22:21:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 23:21:48 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F0nal-000614-VG for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2006 23:21:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0ndN-0007Qn-Lv for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2006 17:24:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F0li2-0007PM-0w for emacs-devel@gnu.org; Sun, 22 Jan 2006 15:21:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F0lgN-0005ID-GM for emacs-devel@gnu.org; Sun, 22 Jan 2006 15:19:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F0lg4-0004nL-Of for emacs-devel@gnu.org; Sun, 22 Jan 2006 15:19:09 -0500 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1F0lkg-0006Dh-Km for emacs-devel@gnu.org; Sun, 22 Jan 2006 15:23:55 -0500 Original-Received: from localhost (h219-110-075-123.catv01.itscom.jp [219.110.75.123]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id k0MKGKV01383 for ; Mon, 23 Jan 2006 05:16:22 +0900 (JST) Original-To: emacs-devel@gnu.org X-Mailer: Mew version 4.2.53 on Emacs 22.0.51 / Mule 5.0 (SAKAKI) 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:49414 Archived-At: 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