unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7554: 24.0.50; hi-lock-unface-buffer: incorrect `interactive' spec - never pops up menu
@ 2010-12-04 18:07 Drew Adams
  2011-08-09 21:56 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2010-12-04 18:07 UTC (permalink / raw)
  To: 7554

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'
 






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

* bug#7554: 24.0.50; hi-lock-unface-buffer: incorrect `interactive' spec - never pops up menu
  2010-12-04 18:07 bug#7554: 24.0.50; hi-lock-unface-buffer: incorrect `interactive' spec - never pops up menu Drew Adams
@ 2011-08-09 21:56 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2011-08-09 21:56 UTC (permalink / raw)
  To: Drew Adams; +Cc: 7554

"Drew Adams" <drew.adams@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.





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

end of thread, other threads:[~2011-08-09 21:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-04 18:07 bug#7554: 24.0.50; hi-lock-unface-buffer: incorrect `interactive' spec - never pops up menu Drew Adams
2011-08-09 21:56 ` Chong Yidong

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