[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New Context Menu

From: Juri Linkov
Subject: Re: New Context Menu
Date: Thu, 19 Aug 2021 10:05:12 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> down-mouse-3 is used for convenience - you need only one click
>> to select a menu item, not two.
> But that's different from other popup menus, for example C-mouse-3 and
> mouse-1 or mouse-3 on the mode-line's major/minor mode parts.

All menus were always bound to down-events
C-down-mouse-1, S-down-mouse-1, C-down-mouse-2, C-down-mouse-3:

  (global-set-key [C-down-mouse-1] 'mouse-buffer-menu)
  (if (not (eq system-type 'ms-dos))
      (global-set-key [S-down-mouse-1] 'mouse-appearance-menu))
  ;; C-down-mouse-2 is bound in facemenu.el.
  (global-set-key [C-down-mouse-3]
    `(menu-item ,(purecopy "Menu Bar") ignore
      :filter (lambda (_)
                (if (zerop (or (frame-parameter nil 'menu-bar-lines) 0))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]