From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
I applied the patch, and the paste-on-click behavi= or is gone.However, if you try your original example ag= ain, you'll find that nothing happens at all, when we're expecting = an "a" to be inserted.As the documentation of mouse-on= -link-p says, a string or vector return value indicates the event to transl= ate the original mouse-1 click into. In emacs24, that translation was done = in mouse-drag-track:=(let (on-link (and mouse-1-click-follow= s-link=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Use start-point before the intangibility=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0;; treatment, in case we click on a link inside=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0;; intangible text.= =C2=A0 (mouse-on-link-p start-posn)))=C2=A0 (if (or (vec= torp on-link) (stringp on-link))=C2=A0(setq event (aref on-link 0))(select-window original-window)<= span style=3D"white-space:pre-wrap"> (setcar event 'mouse-2);; If this mouse clic= k has never been done by the;; user, it doesn't have the necessary property to be;; interpreted correctly.<= /div> (put 'mouse-2 &= #39;event-kind 'mouse-click)))(abridged= from mouse.el:791/901 in Emacs 24.3.1)I think mo= use--down-1-maybe-follows-link should do something similar.Agreed.=C2=A0https://debbugs.gnu.org/cgi/bugreport.= cgi?bug=3D17887=C2=A0might also be related.