diff options
| author | Richard M. Stallman | 1997-08-05 22:03:07 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-05 22:03:07 +0000 |
| commit | dc64c73985460065cc9fdb607cfec25530755009 (patch) | |
| tree | dc3a0657bbd9c9db1648d45065e8b278785529c3 | |
| parent | ba27415c3ed5992d98bff31e30785f61972ee14c (diff) | |
| download | emacs-dc64c73985460065cc9fdb607cfec25530755009.tar.gz emacs-dc64c73985460065cc9fdb607cfec25530755009.zip | |
(x-cut-buffer-or-selection-value): Fix previous change.
| -rw-r--r-- | lisp/term/x-win.el | 24 |
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))) |