Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
59025:ad6398d47add | 59026:ef5a485f984f |
---|---|
95 ** Building with -DENABLE_CHECKING does not automatically build with union | 95 ** Building with -DENABLE_CHECKING does not automatically build with union |
96 types any more. Add -DUSE_LISP_UNION_TYPE if you want union types. | 96 types any more. Add -DUSE_LISP_UNION_TYPE if you want union types. |
97 | 97 |
98 | 98 |
99 * Changes in Emacs 21.4 | 99 * 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'. | |
100 | 129 |
101 ** line-move-ignore-invisible now defaults to t. | 130 ** line-move-ignore-invisible now defaults to t. |
102 | 131 |
103 ** In Outline mode, hide-body no longer hides lines at the top | 132 ** In Outline mode, hide-body no longer hides lines at the top |
104 of the file that precede the first header line. | 133 of the file that precede the first header line. |
2369 | 2398 |
2370 ** `cfengine-mode' is a major mode for editing GNU Cfengine | 2399 ** `cfengine-mode' is a major mode for editing GNU Cfengine |
2371 configuration files. | 2400 configuration files. |
2372 | 2401 |
2373 * Lisp Changes in Emacs 21.4 | 2402 * 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. | |
2374 | 2407 |
2375 ** (while-no-input BODY...) runs BODY, but only so long as no input | 2408 ** (while-no-input BODY...) runs BODY, but only so long as no input |
2376 arrives. If the user types or clicks anything, BODY stops as if a | 2409 arrives. If the user types or clicks anything, BODY stops as if a |
2377 quit had occurred. while-no-input returns the value of BODY, if BODY | 2410 quit had occurred. while-no-input returns the value of BODY, if BODY |
2378 finishes. It returns nil if BODY was aborted. | 2411 finishes. It returns nil if BODY was aborted. |