emacs-devel
[Top][All Lists]
Advanced

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

Re: master 2d15641: * lisp/mouse.el (context-menu-map): Fix when menu is


From: Stefan Monnier
Subject: Re: master 2d15641: * lisp/mouse.el (context-menu-map): Fix when menu is a command (bug#50851)
Date: Tue, 28 Sep 2021 15:29:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> -      (defn (key-binding key t)))
> +      (defn (save-excursion (mouse-set-point event) (key-binding key t))))

Could you add a comment explaining why it is safe to do that even though
it can mess with the selected window(&frame)?

[ IIRC you used a similar chunk of code recently in that vicinity, so
  I guess my question applies to that as well.  ]


        Stefan




reply via email to

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