aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/term/x-win.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 2a09302e19b..1557a6dd5bf 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -592,20 +592,20 @@ This is in addition to the primary selection.")
592 (condition-case c 592 (condition-case c
593 (setq text (x-get-selection 'PRIMARY 'COMPOUND_TEXT)) 593 (setq text (x-get-selection 'PRIMARY 'COMPOUND_TEXT))
594 (error nil)) 594 (error nil))
595 (if (null text)
596 (condition-case c
597 (setq text (x-get-selection 'PRIMARY 'STRING))
598 (error nil)))
595 (if (string= text "") (setq text nil)) 599 (if (string= text "") (setq text nil))
596 (condition-case c
597 (setq text (x-get-selection 'PRIMARY 'STRING))
598 (error nil))
599 (if (string= text "") (setq text nil))
600
601 (when x-select-enable-clipboard 600 (when x-select-enable-clipboard
602 (condition-case c 601 (if (null text)
603 (setq text (x-get-selection 'CLIPBOARD 'COMPOUND_TEXT)) 602 (condition-case c
604 (error nil)) 603 (setq text (x-get-selection 'CLIPBOARD 'COMPOUND_TEXT))
605 (if (string= text "") (setq text nil)) 604 (error nil)))
606 (condition-case c 605 (if (null text)
607 (setq text (x-get-selection 'CLIPBOARD 'STRING)) 606 (condition-case c
608 (error nil)) 607 (setq text (x-get-selection 'CLIPBOARD 'STRING))
608 (error nil)))
609 (if (string= text "") (setq text nil))) 609 (if (string= text "") (setq text nil)))
610 610
611 (or text (setq text (x-get-cut-buffer 0))) 611 (or text (setq text (x-get-cut-buffer 0)))