emacs-devel
[Top][All Lists]
Advanced

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

Re: master 050b830 3/3: Do interactive mode tagging for finder.el


From: Eli Zaretskii
Subject: Re: master 050b830 3/3: Do interactive mode tagging for finder.el
Date: Fri, 19 Mar 2021 10:15:17 +0200

> @@ -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.



reply via email to

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