GNU bug report logs - #7554
24.0.50; hi-lock-unface-buffer: incorrect `interactive' spec - never pops up menu

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sat, 4 Dec 2010 18:05:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7554 in the body.
You can then email your comments to 7554 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7554; Package emacs. (Sat, 04 Dec 2010 18:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 04 Dec 2010 18:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.50;
	hi-lock-unface-buffer: incorrect `interactive' spec - never pops up
	menu
Date: Sat, 4 Dec 2010 10:07:56 -0800
emacs -Q
 
Load hi-lock.el.
 
Choose from the menu-bar menu: Edit > Regexp Highlighting > Highlight
Regexp...
 
Finish the dialog, so that some pattern is highlighted.
 
Choose from the menu-bar menu: Edit > Regexp Highlighting > Unhighlight
Regexp...
 
You are prompted to enter the pattern in the minibuffer, instead of
being asked to choose it from a popup menu.
 
The problem is this code in the `interactive' spec:
 
 (and (display-popup-menus-p) (not last-nonmenu-event))
 
Assume the first conjunct is true.  The second ends up being this: (not
'(menu-bar)), so it is never true.  The first part of the `if' is never
executed.  `x-popup-menu' is never called.
 
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-11-30 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7554; Package emacs. (Tue, 09 Aug 2011 21:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 7554 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 7554 <at> debbugs.gnu.org
Subject: Re: bug#7554: 24.0.50;
	hi-lock-unface-buffer: incorrect `interactive' spec - never pops up
	menu
Date: Tue, 09 Aug 2011 17:56:22 -0400
"Drew Adams" <drew.adams <at> oracle.com> writes:

> Choose from the menu-bar menu: Edit > Regexp Highlighting > Unhighlight
> Regexp...
>
> You are prompted to enter the pattern in the minibuffer, instead of
> being asked to choose it from a popup menu.
>
> The problem is this code in the `interactive' spec:
>
>  (and (display-popup-menus-p) (not last-nonmenu-event))

Fixed, thanks.




bug closed, send any further explanations to 7554 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Tue, 09 Aug 2011 21:58:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Sep 2011 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 347 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.