diff options
| author | Stephen Berman | 2016-07-08 17:36:55 +0200 |
|---|---|---|
| committer | Stephen Berman | 2016-07-08 17:36:55 +0200 |
| commit | d0c0b71d889ff223d2e5073b733f4047d541343b (patch) | |
| tree | 30536c1fa00c205a6f462e628c99e313601ee4d2 /doc | |
| parent | 381c6bbfb3eaa69ece0fce8dd92ccd3a1ef2729f (diff) | |
| download | emacs-d0c0b71d889ff223d2e5073b733f4047d541343b.tar.gz emacs-d0c0b71d889ff223d2e5073b733f4047d541343b.zip | |
Allow selecting region with mouse to move point to beginning
* etc/NEWS: Mention new user option
`mouse-select-region-move-to-beginning'.
* doc/emacs/frames.texi (Mouse Commands): Add cross-reference
to the following.
(Word and Line Mouse): Describe how double-clicking mouse-1 to
activate region and `mouse-select-region-move-to-beginning'
affect point.
* lisp/mouse.el (mouse-select-region-move-to-beginning): New defcustom.
(mouse-set-point): Use it. (Bug#23478)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/frames.texi | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index 7e6006262ce..03172b62cf5 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -97,7 +97,8 @@ ring; on a second click, kill it (@code{mouse-save-then-kill}). | |||
| 97 | invoked by clicking with the left mouse button, @kbd{mouse-1}, in the | 97 | invoked by clicking with the left mouse button, @kbd{mouse-1}, in the |
| 98 | text area of a window. This moves point to the position where you | 98 | text area of a window. This moves point to the position where you |
| 99 | clicked. If that window was not the selected window, it becomes the | 99 | clicked. If that window was not the selected window, it becomes the |
| 100 | selected window. | 100 | selected window. You can also activate a region by double-clicking |
| 101 | mouse-1 (@pxref{Word and Line Mouse}). | ||
| 101 | 102 | ||
| 102 | @vindex x-mouse-click-focus-ignore-position | 103 | @vindex x-mouse-click-focus-ignore-position |
| 103 | Normally, if the frame you clicked in was not the selected frame, it | 104 | Normally, if the frame you clicked in was not the selected frame, it |
| @@ -215,7 +216,7 @@ also copied to the kill ring. | |||
| 215 | 216 | ||
| 216 | @table @kbd | 217 | @table @kbd |
| 217 | @item Double-mouse-1 | 218 | @item Double-mouse-1 |
| 218 | Select the text around the word which you click on. | 219 | Select the text around the word or character which you click on. |
| 219 | 220 | ||
| 220 | Double-clicking on a character with symbol syntax (such as | 221 | Double-clicking on a character with symbol syntax (such as |
| 221 | underscore, in C mode) selects the symbol surrounding that character. | 222 | underscore, in C mode) selects the symbol surrounding that character. |
| @@ -226,6 +227,17 @@ ends. Double-clicking on a character with string-delimiter syntax | |||
| 226 | constant (Emacs uses heuristics to figure out whether that character | 227 | constant (Emacs uses heuristics to figure out whether that character |
| 227 | is the beginning or the end of it). | 228 | is the beginning or the end of it). |
| 228 | 229 | ||
| 230 | Double-clicking on the beginning of a parenthetical grouping or | ||
| 231 | beginning string-delimiter moves point to the end of the region, | ||
| 232 | scrolling the buffer display forward if necessary to show the new | ||
| 233 | location of point. Double-clicking on the end of a parenthetical | ||
| 234 | grouping or end string-delimiter keeps point at the end of the region | ||
| 235 | by default, so the beginning of the region will not be visible if it | ||
| 236 | is above the top of the window; setting the user option | ||
| 237 | @code{mouse-select-region-move-to-beginning} to non-nil changes this | ||
| 238 | to move point to the beginning of the region, scrolling the display | ||
| 239 | backward if necessary. | ||
| 240 | |||
| 229 | @item Double-Drag-mouse-1 | 241 | @item Double-Drag-mouse-1 |
| 230 | Select the text you drag across, in the form of whole words. | 242 | Select the text you drag across, in the form of whole words. |
| 231 | 243 | ||