emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master a2ee819: Let delete-selection-mode work with po


From: Noam Postavsky
Subject: Re: [Emacs-diffs] master a2ee819: Let delete-selection-mode work with popup-menu commands (Bug#27569)
Date: Tue, 18 Jul 2017 18:45:56 -0400

On Tue, Jul 18, 2017 at 2:14 PM, Stefan Monnier
<address@hidden> wrote:
>> Actually, now that I think more on this, could `popup-menu' behave
>> more like `universal-argument' (apart from actually setting any prefix
>> arg)? It feels kind of prefixy.
>
> Not sure exactly what you have in mind,

Yes, that idea was rather vague and half-baked. While looking at other
mouse menus, I found this alternate solution to Bug#27569 (following
the technique used for C-down-mouse-3):

(define-key global-map [mouse-3]
  `(menu-item "Edit menu" menu-bar-edit-menu
          :filter ,(lambda (_) menu-bar-edit-menu)))
;; delete-selection now works correctly with yank invoked via the mouse-3 menu
(delete-selection-mode +1)

So perhaps my change to popup-menu isn't really needed...



reply via email to

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