diff options
| author | Jan Djärv | 2006-10-18 14:05:16 +0000 |
|---|---|---|
| committer | Jan Djärv | 2006-10-18 14:05:16 +0000 |
| commit | 26e328390177d7fe19b764a55ff1beb01296bd94 (patch) | |
| tree | 016b1191b1330851b4c94ba90d73268110c1c467 | |
| parent | 5a05106b0b900be135e0173740a56e68beab1ac4 (diff) | |
| download | emacs-26e328390177d7fe19b764a55ff1beb01296bd94.tar.gz emacs-26e328390177d7fe19b764a55ff1beb01296bd94.zip | |
* term/x-win.el (res-geometry): Don't set geometry from Xresources
to default-frame-alist if default-frame-alist already contains
widht/height.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ec8bc9368b6..bba8f8689ea 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2006-10-18 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * term/x-win.el (res-geometry): Don't set geometry from Xresources | ||
| 4 | to default-frame-alist if default-frame-alist already contains | ||
| 5 | widht/height. | ||
| 6 | |||
| 1 | 2006-10-18 Richard Stallman <rms@gnu.org> | 7 | 2006-10-18 Richard Stallman <rms@gnu.org> |
| 2 | 8 | ||
| 3 | * emacs-lisp/pp.el (pp-eval-expression): Use `X' to read value. | 9 | * emacs-lisp/pp.el (pp-eval-expression): Use `X' to read value. |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 8123d509f1c..69bc9b10d78 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -2448,12 +2448,15 @@ order until succeed.") | |||
| 2448 | (cons '(user-size . t) parsed)))) | 2448 | (cons '(user-size . t) parsed)))) |
| 2449 | ;; All geometry parms apply to the initial frame. | 2449 | ;; All geometry parms apply to the initial frame. |
| 2450 | (setq initial-frame-alist (append initial-frame-alist parsed)) | 2450 | (setq initial-frame-alist (append initial-frame-alist parsed)) |
| 2451 | ;; The size parms apply to all frames. | 2451 | ;; The size parms apply to all frames. Don't set it if there are |
| 2452 | (if (assq 'height parsed) | 2452 | ;; sizes there already (from command line). |
| 2453 | (if (and (assq 'height parsed) | ||
| 2454 | (not (assq 'height default-frame-alist))) | ||
| 2453 | (setq default-frame-alist | 2455 | (setq default-frame-alist |
| 2454 | (cons (cons 'height (cdr (assq 'height parsed))) | 2456 | (cons (cons 'height (cdr (assq 'height parsed))) |
| 2455 | default-frame-alist))) | 2457 | default-frame-alist))) |
| 2456 | (if (assq 'width parsed) | 2458 | (if (and (assq 'width parsed) |
| 2459 | (not (assq 'width default-frame-alist))) | ||
| 2457 | (setq default-frame-alist | 2460 | (setq default-frame-alist |
| 2458 | (cons (cons 'width (cdr (assq 'width parsed))) | 2461 | (cons (cons 'width (cdr (assq 'width parsed))) |
| 2459 | default-frame-alist)))))) | 2462 | default-frame-alist)))))) |