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: Wed, 19 Jul 2017 07:26:05 -0400

On Tue, Jul 18, 2017 at 11:18 PM, Tak Kunihiro
<address@hidden> wrote:
>
> I want to construct edit-menu dynamically depending on event.
> Using the technique, code will look:

I think that should be

> (defun my-edit-map (start-event)
>   ; ...
>   menu-bar-edit-menu)

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

>
> CONCLUSION:
> [...] your change [...] is needed.

Still?



reply via email to

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