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: Tak Kunihiro
Subject: Re: [Emacs-diffs] master a2ee819: Let delete-selection-mode work with popup-menu commands (Bug#27569)
Date: Thu, 20 Jul 2017 09:14:54 +0900 (JST)

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

That works.  Thank you for the revision.

I want to call flyspell-correct-word when word under event is
flyspell-incorrect (mouse-2 is too hard to access).  When not, then
the dynamic edit menu.

This technique binds a keymap.  I cannot find a way to call
flyspell-correct-word.

CONCLUSION:
Still your change is needed.



reply via email to

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