aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStephen Berman2016-07-08 17:36:55 +0200
committerStephen Berman2016-07-08 17:36:55 +0200
commitd0c0b71d889ff223d2e5073b733f4047d541343b (patch)
tree30536c1fa00c205a6f462e628c99e313601ee4d2 /doc
parent381c6bbfb3eaa69ece0fce8dd92ccd3a1ef2729f (diff)
downloademacs-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.texi16
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}).
97invoked by clicking with the left mouse button, @kbd{mouse-1}, in the 97invoked by clicking with the left mouse button, @kbd{mouse-1}, in the
98text area of a window. This moves point to the position where you 98text area of a window. This moves point to the position where you
99clicked. If that window was not the selected window, it becomes the 99clicked. If that window was not the selected window, it becomes the
100selected window. 100selected window. You can also activate a region by double-clicking
101mouse-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
218Select the text around the word which you click on. 219Select the text around the word or character which you click on.
219 220
220Double-clicking on a character with symbol syntax (such as 221Double-clicking on a character with symbol syntax (such as
221underscore, in C mode) selects the symbol surrounding that character. 222underscore, in C mode) selects the symbol surrounding that character.
@@ -226,6 +227,17 @@ ends. Double-clicking on a character with string-delimiter syntax
226constant (Emacs uses heuristics to figure out whether that character 227constant (Emacs uses heuristics to figure out whether that character
227is the beginning or the end of it). 228is the beginning or the end of it).
228 229
230Double-clicking on the beginning of a parenthetical grouping or
231beginning string-delimiter moves point to the end of the region,
232scrolling the buffer display forward if necessary to show the new
233location of point. Double-clicking on the end of a parenthetical
234grouping or end string-delimiter keeps point at the end of the region
235by default, so the beginning of the region will not be visible if it
236is above the top of the window; setting the user option
237@code{mouse-select-region-move-to-beginning} to non-nil changes this
238to move point to the beginning of the region, scrolling the display
239backward if necessary.
240
229@item Double-Drag-mouse-1 241@item Double-Drag-mouse-1
230Select the text you drag across, in the form of whole words. 242Select the text you drag across, in the form of whole words.
231 243