diff options
author | Po Lu <luangruo@yahoo.com> | 2022-07-15 21:46:55 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-07-15 21:47:09 +0800 |
commit | c96a6a0c9fc44be846834ab1d7d8d527dc8dc5e9 (patch) | |
tree | 1953c18851c3be1a68f4de962e800678860df0e5 /lisp/cus-start.el | |
parent | ed4ba79ea8f2be2d01f6447910e2c8319908d0d6 (diff) | |
download | emacs-c96a6a0c9fc44be846834ab1d7d8d527dc8dc5e9.tar.gz |
Only preserve PRIMARY and CLIPBOARD selection ownership by default
* lisp/cus-start.el (standard): Update defcustom type.
* src/xselect.c (x_should_preserve_selection): New function.
(x_clear_frame_selections): Use it to determine whether or not
to preserve a selection.
* src/xterm.c (x_preserve_selections): Fix tail initialization.
(syms_of_xterm): Update doc string of
`x-auto-preserve-selections'.
Diffstat (limited to 'lisp/cus-start.el')
-rw-r--r-- | lisp/cus-start.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index df919fd7155..0e1cb4589da 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -834,7 +834,10 @@ since it could result in memory overflow and make Emacs crash." (x-scroll-event-delta-factor mouse float "29.1") (x-gtk-use-native-input keyboard boolean "29.1") (x-dnd-disable-motif-drag dnd boolean "29.1") - (x-auto-preserve-selections x boolean "29.1") + (x-auto-preserve-selections x + (choice (const :tag "Always preserve selections" t) + (repeat symbol)) + "29.1") ;; xselect.c (x-select-enable-clipboard-manager killing boolean "24.1") ;; xsettings.c |