aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChen Bin <chenbin.sh@gmail.com>2021-11-06 16:57:20 +1100
committerTom Dalziel <33435574+tomdl89@users.noreply.github.com>2021-11-16 21:58:25 +0100
commit564cac7233d0000e51def7608f60d1dd14811c16 (patch)
tree115bbe56f93b383eb1d0589bce22b3ed9a74cb38 /doc
parente90aebc4d0d03b308213d3fc39c660e706ace081 (diff)
Add option to stop updating X PRIMARY selection with the current visual region
Vim user can select a region in visual mode and press the key `p` to replace the selected text. But in GUI Emacs, the selected text might not be replaced when: - `select-enable-primary` is `t` - Third plugins override `interprogram-paste-function` (xclip.el, for example) - Clipboard managers syncronise data between PRIMARY and CLIPBOARD selection It's because the visual commands automatically insert the content of visually selected region into X PRIMARY selection. But paste commands call the api `current-kill` which calls `interprogram-paste-function`. Value of `interprogram-paste-function` is `gui-selection-value` which might return CLIPBOARD or PRIMARY selection.
Diffstat (limited to 'doc')
-rw-r--r--doc/docstringdb.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/docstringdb.json b/doc/docstringdb.json
index 96695ec..466ef38 100644
--- a/doc/docstringdb.json
+++ b/doc/docstringdb.json
@@ -17052,5 +17052,16 @@
"functionp": true,
"macrop": null,
"keymap-inv": null
+ },
+ "evil-visual-update-x-selection-p": {
+ "default": "t",
+ "local": false,
+ "default-type": "symbol",
+ "var-docstring": "Whether to update the X PRIMARY selection with the current visual region automatically.",
+ "fn-docstring": null,
+ "arglist": true,
+ "functionp": null,
+ "macrop": null,
+ "keymap-inv": null
}
} \ No newline at end of file