diff options
| author | Karl Heuer | 1994-10-24 23:30:14 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-24 23:30:14 +0000 |
| commit | f1b648d6d0a8a9a26a50d077715689430f3bb8a7 (patch) | |
| tree | 7e41e8ca3aeceedee0e01c49d50c817190b9c646 | |
| parent | b8c70430de7dada8e7e18c4f56fd983cb9f25d41 (diff) | |
| download | emacs-f1b648d6d0a8a9a26a50d077715689430f3bb8a7.tar.gz emacs-f1b648d6d0a8a9a26a50d077715689430f3bb8a7.zip | |
Make previous change conditional.
| -rw-r--r-- | lisp/term/x-win.el | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 07db0c5aa65..9752dc16364 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -624,11 +624,18 @@ This is in addition to the primary selection.") | |||
| 624 | (while (setq i (string-match "[.*]" x-resource-name)) | 624 | (while (setq i (string-match "[.*]" x-resource-name)) |
| 625 | (aset x-resource-name i ?-)))) | 625 | (aset x-resource-name i ?-)))) |
| 626 | 626 | ||
| 627 | (x-open-connection (or x-display-name | 627 | ;; For the benefit of older Emacses (19.27 and earlier) that are sharing |
| 628 | (setq x-display-name (getenv "DISPLAY"))) | 628 | ;; the same lisp directory, don't pass the third argument unless we seem |
| 629 | x-command-line-resources | 629 | ;; to have the multi-display support. |
| 630 | ;; Exit Emacs with fatal error if this fails. | 630 | (if (fboundp 'x-close-connection) |
| 631 | t) | 631 | (x-open-connection (or x-display-name |
| 632 | (setq x-display-name (getenv "DISPLAY"))) | ||
| 633 | x-command-line-resources | ||
| 634 | ;; Exit Emacs with fatal error if this fails. | ||
| 635 | t) | ||
| 636 | (x-open-connection (or x-display-name | ||
| 637 | (setq x-display-name (getenv "DISPLAY"))) | ||
| 638 | x-command-line-resources)) | ||
| 632 | 639 | ||
| 633 | (setq frame-creation-function 'x-create-frame-with-faces) | 640 | (setq frame-creation-function 'x-create-frame-with-faces) |
| 634 | 641 | ||