Skip to main content

Questions tagged [easy-menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

How to fully and completely remove a menu defined by easy-menu-define

Given an example menu created via easy-menu: (easy-menu-define my-example-menu-map java-mode-map "My example menu" `("ExampleMenu" ["Hello World" 'ignore] ; ... more ...
David's user avatar
  • 138
0 votes
1 answer
19 views

Maintaining prefix argument sensitivity: wrapping functions in emacs minor mode menus

I have a set of functions, some of which accept a prefix argument: (defun prefix-arg-test (&optional prefix) (interactive "P") (if prefix (message "prefix") (...
Gabriele's user avatar
  • 1,660
0 votes
0 answers
44 views

Eager macro-expansion failure: (wrong-type-argument integer-or-marker-p nil)

I have this code: (defun make-search-sensitive-to-ifpmod-advice (orig-fun &rest args) "Temporary advice the search functions to make them sensitive to `isearch-filter-predicate'" (...
Gabriele's user avatar
  • 1,660
1 vote
2 answers
37 views

Temporary Inhibition of Mouse Events in Windows During Menu Opening

I'm facing an issue (Unwanted Focus Shift when Clicking Menu Functions in Emacs Mode Line) regarding mouse event handling in buffer windows during menus opening. To address this, I'm attempting to ...
Gabriele's user avatar
  • 1,660
0 votes
1 answer
43 views

Reusing a code block to define a sub-menu with easy-menu-define [duplicate]

I'm trying to reuse a code block to define a sub-menu to be used in different parts (minor mode menus) of my code. I've attempted to define a variable to hold the sub-menu code block and then use it ...
Gabriele's user avatar
  • 1,660
2 votes
1 answer
89 views

Unwanted Focus Shift when Clicking Menu Functions in Emacs Mode Line

I am experiencing an issue in Emacs where clicking on a function name in a menu displayed on the mode line not only triggers the desired function but also has an unintended effect on the window or ...
Gabriele's user avatar
  • 1,660
0 votes
1 answer
49 views

easy-menu-define: how to display menu only in mode-line

I'm using easy-menu-define to diplay a menu in the mode-line on the activation of a minor-mode: (if biblio-editing-min-mode (easy-menu-define biblio-edit-menu biblio-editing-min-mode-map &...
Gabriele's user avatar
  • 1,660
1 vote
1 answer
51 views

Getting easy-menu to display a submenu

I am using easy-menu but cannot get the submenu to work (defvar mcp-outl-subm '("Outl" ["Hide Direct Body" outline-hide-entry :help "Hide Entry"] [&...
Dilna's user avatar
  • 1
-1 votes
1 answer
38 views

Submenus with easy-menu

Can easy-menu-define defined sub-menus that can be activated with the mouse?
Dilna's user avatar
  • 1
0 votes
0 answers
36 views

default menu-bar :enable functions -- what are they for?

In the default Emacs menubar (menu-bar.el), a lot of menu items are defined the following way: [...] '(menu-item "Menu item" foo :enable (and (menu-bar-menu-frame-live-and-visible-p) ...
GrB's user avatar
  • 217
3 votes
1 answer
161 views

How to remove menu with easymenu?

Easymenu is great for creating menus, but how can you remove a top-level menu that was created with it? Here's an example. A minor mode might create the following menu: (easy-menu-define some-minor-...
GrB's user avatar
  • 217
1 vote
0 answers
146 views

easy-menu primary menu separator problem

I really like easy-menu but have discovered an item separator problem; a minimum working example is given below. When I hybrid define-key-after with easy-menu-add-item, the item separators in the &...
zugzwang's user avatar
  • 319