diff etc/NEWS @ 59026:ef5a485f984f

Implement context-sentitive dual behaviour for mouse-1 click.
author Kim F. Storm <storm@cua.dk>
date Fri, 17 Dec 2004 15:19:33 +0000
parents 3b113ec26ed0
children 54f8cd81210b
line wrap: on
line diff
--- a/etc/NEWS	Fri Dec 17 15:18:39 2004 +0000
+++ b/etc/NEWS	Fri Dec 17 15:19:33 2004 +0000
@@ -98,6 +98,35 @@
 
 * Changes in Emacs 21.4
 
+** You can now follow links by clicking mouse-1 on the link.
+
+Traditionally, Emacs uses a mouse-1 click to set point and a mouse-2
+click to follow a link, whereas most other applications use a mouse-1
+click for both purposes, depending on whether you click outside or
+inside a link.  With release 21.4, the behaviour of a mouse-1 click
+has been changed to match this context-sentitive dual behaviour.
+
+Depending on the current mode, a mouse-2 click in Emacs may do much
+more than just follow a link, so the new mouse-1 behaviour is only
+activated for modes which explicitly mark a clickable text as a "link"
+(see the new function `mouse-on-link-p' for details).  The lisp
+packages that are included in release 21.4 have been adapted to do
+this, but external packages may not yet support this.  However, there
+is no risk in using such packages, as the worst thing that could
+happen is that you get the original mouse-1 behaviour when you click
+on a link, which typically means that you set point where you click.
+
+If you want to get the original mouse-1 action also inside a link, you
+just need to press the mouse-1 button a little longer than a normal
+click (i.e. press and hold the mouse-1 button for half a second before
+you release it).
+
+Dragging the mouse-1 inside a link still performs the original
+drag-mouse-1 action, typically copy the text.
+
+You can customize the new mouse-1 behaviour via the new user option
+`mouse-1-click-follows-link'.
+
 ** line-move-ignore-invisible now defaults to t.
 
 ** In Outline mode, hide-body no longer hides lines at the top
@@ -2372,6 +2401,10 @@
 
 * Lisp Changes in Emacs 21.4
 
+** Lisp code can now test if a given buffer position is inside a
+clickable link with the new function `mouse-on-link-p'.  This is the
+function used by the new `mouse-1-click-follows-link' functionality.
+
 ** (while-no-input BODY...) runs BODY, but only so long as no input
 arrives.  If the user types or clicks anything, BODY stops as if a
 quit had occurred.  while-no-input returns the value of BODY, if BODY