diff options
| author | Richard M. Stallman | 2001-12-24 04:52:54 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-12-24 04:52:54 +0000 |
| commit | ea8d3061370eb3c02cc659eb0b013a358de853b2 (patch) | |
| tree | b974a005e0787dda0878a4855c162df020eeb24c | |
| parent | 67f5954cbd0608a8380a78b4df694d168ce257b4 (diff) | |
| download | emacs-ea8d3061370eb3c02cc659eb0b013a358de853b2.tar.gz emacs-ea8d3061370eb3c02cc659eb0b013a358de853b2.zip | |
(x-handle-geometry): Put height and width on default-frame-alist,
left and top on initial-frame-alist.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/term/w32-win.el | 27 | ||||
| -rw-r--r-- | lisp/term/x-win.el | 27 |
3 files changed, 40 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9fbd1abc8d4..1043fa7b798 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-12-23 Richard M. Stallman <rms@gnu.org> | 1 | 2001-12-23 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * term/x-win.el (x-handle-geometry): Put height and width | ||
| 4 | on default-frame-alist, left and top on initial-frame-alist. | ||
| 5 | * term/w32-win.el (x-handle-geometry): Likewise. | ||
| 6 | |||
| 3 | * sort.el (sort-reorder-buffer): Copy all to a temp buffer first. | 7 | * sort.el (sort-reorder-buffer): Copy all to a temp buffer first. |
| 4 | 8 | ||
| 5 | * play/yow.el (yow): Use an arg to distinguish interactive calls, | 9 | * play/yow.el (yow): Use an arg to distinguish interactive calls, |
diff --git a/lisp/term/w32-win.el b/lisp/term/w32-win.el index 9cc3d2c0b82..64fa5ae47ba 100644 --- a/lisp/term/w32-win.el +++ b/lisp/term/w32-win.el | |||
| @@ -300,15 +300,24 @@ the last file dropped is selected." | |||
| 300 | 300 | ||
| 301 | (defun x-handle-geometry (switch) | 301 | (defun x-handle-geometry (switch) |
| 302 | "Handle the \"-geometry\" SWITCH." | 302 | "Handle the \"-geometry\" SWITCH." |
| 303 | (let ((geo (x-parse-geometry (car x-invocation-args)))) | 303 | (let* ((geo (x-parse-geometry (car x-invocation-args))) |
| 304 | (setq initial-frame-alist | 304 | (left (assq 'left geo)) |
| 305 | (append initial-frame-alist | 305 | (top (assq 'top geo)) |
| 306 | (if (or (assq 'left geo) (assq 'top geo)) | 306 | (height (assq 'height geo)) |
| 307 | '((user-position . t))) | 307 | (width (assq 'width geo))) |
| 308 | (if (or (assq 'height geo) (assq 'width geo)) | 308 | (if (or height width) |
| 309 | '((user-size . t))) | 309 | (setq default-frame-alist |
| 310 | geo) | 310 | (append default-frame-alist |
| 311 | x-invocation-args (cdr x-invocation-args)))) | 311 | '((user-size . t)) |
| 312 | (if height (list height)) | ||
| 313 | (if width (list width))))) | ||
| 314 | (if (or left top) | ||
| 315 | (setq initial-frame-alist | ||
| 316 | (append initial-frame-alist | ||
| 317 | '((user-position . t)) | ||
| 318 | (if left (list left)) | ||
| 319 | (if top (list top))))) | ||
| 320 | (setq x-invocation-args (cdr x-invocation-args)))) | ||
| 312 | 321 | ||
| 313 | (defun x-handle-name-rn-switch (switch) | 322 | (defun x-handle-name-rn-switch (switch) |
| 314 | "Handle a \"-name\" or \"-rn\" SWITCH." | 323 | "Handle a \"-name\" or \"-rn\" SWITCH." |
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index a3e0d94afb3..f161f5cb202 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -127,15 +127,24 @@ | |||
| 127 | 127 | ||
| 128 | ;; Handle the geometry option | 128 | ;; Handle the geometry option |
| 129 | (defun x-handle-geometry (switch) | 129 | (defun x-handle-geometry (switch) |
| 130 | (let ((geo (x-parse-geometry (car x-invocation-args)))) | 130 | (let* ((geo (x-parse-geometry (car x-invocation-args))) |
| 131 | (setq initial-frame-alist | 131 | (left (assq 'left geo)) |
| 132 | (append initial-frame-alist | 132 | (top (assq 'top geo)) |
| 133 | (if (or (assq 'left geo) (assq 'top geo)) | 133 | (height (assq 'height geo)) |
| 134 | '((user-position . t))) | 134 | (width (assq 'width geo))) |
| 135 | (if (or (assq 'height geo) (assq 'width geo)) | 135 | (if (or height width) |
| 136 | '((user-size . t))) | 136 | (setq default-frame-alist |
| 137 | geo) | 137 | (append default-frame-alist |
| 138 | x-invocation-args (cdr x-invocation-args)))) | 138 | '((user-size . t)) |
| 139 | (if height (list height)) | ||
| 140 | (if width (list width))))) | ||
| 141 | (if (or left top) | ||
| 142 | (setq initial-frame-alist | ||
| 143 | (append initial-frame-alist | ||
| 144 | '((user-position . t)) | ||
| 145 | (if left (list left)) | ||
| 146 | (if top (list top))))) | ||
| 147 | (setq x-invocation-args (cdr x-invocation-args)))) | ||
| 139 | 148 | ||
| 140 | ;; Handle the -name option. Set the variable x-resource-name | 149 | ;; Handle the -name option. Set the variable x-resource-name |
| 141 | ;; to the option's operand; set the name of | 150 | ;; to the option's operand; set the name of |