Commit 5fd72a24 authored by Karl Heuer's avatar Karl Heuer
Browse files

(x-cut-buffer-or-selection-value): Don't print messages

about failure to get selection or cut buffer.
parent f7f78608
......@@ -578,13 +578,13 @@ This is in addition to the primary selection.")
;; Don't die if x-get-selection signals an error.
(condition-case c
(setq text (x-get-selection 'PRIMARY))
(error (message "%s" c)))
(error nil))
(if (string= text "") (setq text nil))
(if x-select-enable-clipboard
(condition-case c
(setq text (x-get-selection 'CLIPBOARD))
(error (message "%s" c))))
(error nil)))
(if (string= text "") (setq text nil))
(or text (setq text (x-get-cut-buffer 0)))
(if (string= text "") (setq text nil))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment