unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master 050b830 3/3: Do interactive mode tagging for finder.el
@ 2021-03-19  8:15 Eli Zaretskii
  2021-03-19  8:28 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2021-03-19  8:15 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: emacs-devel

> @@ -423,7 +423,7 @@ FILE should be in a form suitable for passing to `locate-library'."
>  
>  (defun finder-mouse-select (event)
>    "Select item in a Finder buffer with the mouse."
> -  (interactive "e")
> +  (interactive "e" finder-mode)
>    (with-current-buffer (window-buffer (posn-window (event-start event)))
>      (goto-char (posn-point (event-start event)))
>      (finder-select)))

I think this part is dangerous: mouse commands are not necessarily
issued with the buffer on which they operate being current, so
conditioning such commands on the mode of the current buffer is
ill-advised.  Even if currently this marking doesn't produce any
visible problems (does it?), it could do so in the future, if and when
we decide to base more on this tagging than we do now.

I think this part should be reverted, and in the future commands bound
to mouse clicks should not be tagged with any major mode.

Thanks.



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-03-21  7:47 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-19  8:15 master 050b830 3/3: Do interactive mode tagging for finder.el Eli Zaretskii
2021-03-19  8:28 ` Lars Ingebrigtsen
2021-03-19  8:37   ` Eli Zaretskii
2021-03-19 16:23     ` Stefan Kangas
2021-03-19 16:35       ` Eli Zaretskii
2021-03-19 17:08         ` Stefan Kangas
2021-03-19 19:39           ` Eli Zaretskii
2021-03-19 19:55             ` [External] : " Drew Adams
2021-03-20  7:51         ` Lars Ingebrigtsen
2021-03-20  8:15           ` Lars Ingebrigtsen
2021-03-20  9:02           ` Eli Zaretskii
2021-03-20  9:05             ` Lars Ingebrigtsen
2021-03-20  9:23               ` Eli Zaretskii
2021-03-21  7:47                 ` Lars Ingebrigtsen
2021-03-19 17:22       ` Dmitry Gutov
2021-03-19 17:47         ` 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).