unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: emacs-28 9ed53b0: * lisp/help.el (help--analyze-key): Avoid mouse-set-point for non-mouse events
       [not found] ` <20211013191755.EEBB520B28@vcs0.savannah.gnu.org>
@ 2021-10-13 20:05   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2021-10-13 20:05 UTC (permalink / raw)
  To: emacs-devel; +Cc: Juri Linkov

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

`mouse-set-point` is an interactive function which comes with side
effects like checking `mouse-minibuffer-check` and such.
e should use `posn-set-point` instead.


        Stefan




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-13 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20211013191754.19534.25784@vcs0.savannah.gnu.org>
     [not found] ` <20211013191755.EEBB520B28@vcs0.savannah.gnu.org>
2021-10-13 20:05   ` emacs-28 9ed53b0: * lisp/help.el (help--analyze-key): Avoid mouse-set-point for non-mouse events Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).