diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-09 15:57:04 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-09 15:58:28 +0200 |
commit | 8cb7682e885c943228299c4e6b7adb6a398c8aae (patch) | |
tree | be5338c4308f5ba4890cc39d04221a471100fb2c /doc/emacs/frames.texi | |
parent | e99f41f03a97641ee05ba4a27f8b91c190f55df1 (diff) | |
download | emacs-8cb7682e885c943228299c4e6b7adb6a398c8aae.tar.gz emacs-8cb7682e885c943228299c4e6b7adb6a398c8aae.tar.bz2 emacs-8cb7682e885c943228299c4e6b7adb6a398c8aae.zip |
New setting for mouse-drag-copy-region to not put "" onto kill ring
* doc/emacs/frames.texi (Mouse Commands): Document it.
* lisp/mouse.el (mouse-drag-copy-region): Add value (bug#17211)
for not putting "" strings onto the kill ring.
(mouse-set-region, mouse-save-then-kill): Use the new value.
Diffstat (limited to 'doc/emacs/frames.texi')
-rw-r--r-- | doc/emacs/frames.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index a853c9a228b..fa248c1a586 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi @@ -128,6 +128,12 @@ In addition, the text in the region becomes the primary selection non-@code{nil} value, dragging the mouse over a stretch of text also adds the text to the kill ring. The default is @code{nil}. + If this variable is @code{non-empty}, only copy to the kill ring if +the region is non-empty. For instance, if you mouse drag an area that +is less than a half a character, you'd normally get the empty string +in your kill ring, but with @code{non-empty}, this short mouse drag +won't affect the kill ring. + @vindex mouse-scroll-min-lines If you move the mouse off the top or bottom of the window while dragging, the window scrolls at a steady rate until you move the mouse |