98 |
|
|
99 |
* Changes in Emacs 21.4 |
* Changes in Emacs 21.4 |
100 |
|
|
101 |
|
** You can now follow links by clicking mouse-1 on the link. |
102 |
|
|
103 |
|
Traditionally, Emacs uses a mouse-1 click to set point and a mouse-2 |
104 |
|
click to follow a link, whereas most other applications use a mouse-1 |
105 |
|
click for both purposes, depending on whether you click outside or |
106 |
|
inside a link. With release 21.4, the behaviour of a mouse-1 click |
107 |
|
has been changed to match this context-sentitive dual behaviour. |
108 |
|
|
109 |
|
Depending on the current mode, a mouse-2 click in Emacs may do much |
110 |
|
more than just follow a link, so the new mouse-1 behaviour is only |
111 |
|
activated for modes which explicitly mark a clickable text as a "link" |
112 |
|
(see the new function `mouse-on-link-p' for details). The lisp |
113 |
|
packages that are included in release 21.4 have been adapted to do |
114 |
|
this, but external packages may not yet support this. However, there |
115 |
|
is no risk in using such packages, as the worst thing that could |
116 |
|
happen is that you get the original mouse-1 behaviour when you click |
117 |
|
on a link, which typically means that you set point where you click. |
118 |
|
|
119 |
|
If you want to get the original mouse-1 action also inside a link, you |
120 |
|
just need to press the mouse-1 button a little longer than a normal |
121 |
|
click (i.e. press and hold the mouse-1 button for half a second before |
122 |
|
you release it). |
123 |
|
|
124 |
|
Dragging the mouse-1 inside a link still performs the original |
125 |
|
drag-mouse-1 action, typically copy the text. |
126 |
|
|
127 |
|
You can customize the new mouse-1 behaviour via the new user option |
128 |
|
`mouse-1-click-follows-link'. |
129 |
|
|
130 |
** line-move-ignore-invisible now defaults to t. |
** line-move-ignore-invisible now defaults to t. |
131 |
|
|
132 |
** In Outline mode, hide-body no longer hides lines at the top |
** In Outline mode, hide-body no longer hides lines at the top |
2401 |
|
|
2402 |
* Lisp Changes in Emacs 21.4 |
* Lisp Changes in Emacs 21.4 |
2403 |
|
|
2404 |
|
** Lisp code can now test if a given buffer position is inside a |
2405 |
|
clickable link with the new function `mouse-on-link-p'. This is the |
2406 |
|
function used by the new `mouse-1-click-follows-link' functionality. |
2407 |
|
|
2408 |
** (while-no-input BODY...) runs BODY, but only so long as no input |
** (while-no-input BODY...) runs BODY, but only so long as no input |
2409 |
arrives. If the user types or clicks anything, BODY stops as if a |
arrives. If the user types or clicks anything, BODY stops as if a |
2410 |
quit had occurred. while-no-input returns the value of BODY, if BODY |
quit had occurred. while-no-input returns the value of BODY, if BODY |