From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6881: 23.2; bookmark-bmenu-search makes menu disappear Date: Thu, 19 Aug 2010 16:47:58 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282230819 32674 80.91.229.12 (19 Aug 2010 15:13:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2010 15:13:39 +0000 (UTC) Cc: 6881@debbugs.gnu.org To: Leo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 19 17:13:35 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Om6o9-0001ev-U7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Aug 2010 17:13:34 +0200 Original-Received: from localhost ([127.0.0.1]:59552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Om6o8-0001cT-AO for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Aug 2010 11:13:32 -0400 Original-Received: from [140.186.70.92] (port=36315 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Om6ns-0001XF-CC for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2010 11:13:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Om6jk-0003s7-PL for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2010 11:09:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47556) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Om6jk-0003s3-Ni for bug-gnu-emacs@gnu.org; Thu, 19 Aug 2010 11:09:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Om6OU-00079s-Cw; Thu, 19 Aug 2010 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Aug 2010 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6881 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6881-submit@debbugs.gnu.org id=B6881.128222921627507 (code B ref 6881); Thu, 19 Aug 2010 14:47:02 +0000 Original-Received: (at 6881) by debbugs.gnu.org; 19 Aug 2010 14:46:56 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Om6ON-00079c-0x for submit@debbugs.gnu.org; Thu, 19 Aug 2010 10:46:55 -0400 Original-Received: from impaqm4.telefonica.net ([213.4.138.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Om6OL-00079V-3F for 6881@debbugs.gnu.org; Thu, 19 Aug 2010 10:46:53 -0400 Original-Received: from IMPmailhost6.adm.correo ([10.20.102.127]) by IMPaqm4.telefonica.net with bizsmtp id wCpy1e0022kvMAa3QEnz0r; Thu, 19 Aug 2010 16:47:59 +0200 Original-Received: from ceviche.home ([83.61.35.93]) by IMPmailhost6.adm.correo with BIZ IMP id wEny1e00E20aCvn1mEnzrn; Thu, 19 Aug 2010 16:47:59 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id CD1E8660E9; Thu, 19 Aug 2010 16:47:58 +0200 (CEST) In-Reply-To: (Leo's message of "Thu, 19 Aug 2010 08:10:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 19 Aug 2010 10:47:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39626 Archived-At: > This is a bug in read-key. > It appears using read-char solve this problem and the key echoing one. I strongly encourage people to switch from read-char to read-key, so if there's a problem with read-key, I'd rather try and fix it rather than return to read-char. I've just installed the patch below into emacs-23 which should fix it. Stefan === modified file 'lisp/subr.el' --- lisp/subr.el 2010-07-10 18:52:53 +0000 +++ lisp/subr.el 2010-08-19 14:25:12 +0000 @@ -1842,7 +1842,12 @@ (throw 'read-key keys))))))) (unwind-protect (progn - (use-global-map read-key-empty-map) + (use-global-map + (let ((map (make-sparse-keymap))) + ;; Don't hide the menu-bar and tool-bar entries. + (define-key map [menu-bar] (lookup-key global-map [menu-bar])) + (define-key map [tool-bar] (lookup-key global-map [tool-bar])) + map)) (aref (catch 'read-key (read-key-sequence-vector prompt nil t)) 0)) (cancel-timer timer) (use-global-map old-global-map))))