diff options
| author | Gerd Moellmann | 2001-03-06 14:02:02 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-03-06 14:02:02 +0000 |
| commit | 2025ddca1589b0dc84e1e06c0d2622fcbe2c7d79 (patch) | |
| tree | 769c8ff39d696b7573edca13397a736b6da11109 | |
| parent | 6961e0c1c8e194c1403cbb6c64eec7a56f4d19d8 (diff) | |
| download | emacs-2025ddca1589b0dc84e1e06c0d2622fcbe2c7d79.tar.gz emacs-2025ddca1589b0dc84e1e06c0d2622fcbe2c7d79.zip | |
(x-handle-xrm-switch): Accept more than one -xrm
switch, like xterm, and concat resource strings, with a newline
between them.
| -rw-r--r-- | lisp/term/x-win.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index dd792a93e0f..13228d96a5d 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; x-win.el --- parse switches controlling interface with X window system | 1 | ;;; x-win.el --- parse switches controlling interface with X window system |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: FSF | 5 | ;; Author: FSF |
| 6 | ;; Keywords: terminals | 6 | ;; Keywords: terminals |
| @@ -117,9 +117,12 @@ | |||
| 117 | 117 | ||
| 118 | ;; Handle the -xrm option. | 118 | ;; Handle the -xrm option. |
| 119 | (defun x-handle-xrm-switch (switch) | 119 | (defun x-handle-xrm-switch (switch) |
| 120 | (or (consp x-invocation-args) | 120 | (unless (consp x-invocation-args) |
| 121 | (error "%s: missing argument to `%s' option" (invocation-name) switch)) | 121 | (error "%s: missing argument to `%s' option" (invocation-name) switch)) |
| 122 | (setq x-command-line-resources (car x-invocation-args)) | 122 | (setq x-command-line-resources |
| 123 | (if (null x-command-line-resources) | ||
| 124 | (car x-invocation-args) | ||
| 125 | (concat x-command-line-resources "\n" (car x-invocation-args)))) | ||
| 123 | (setq x-invocation-args (cdr x-invocation-args))) | 126 | (setq x-invocation-args (cdr x-invocation-args))) |
| 124 | 127 | ||
| 125 | ;; Handle the geometry option | 128 | ;; Handle the geometry option |