diff options
| author | Richard M. Stallman | 2003-12-29 19:17:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-12-29 19:17:24 +0000 |
| commit | 7f18ce220c404f8003ea2c6a7fb51573b8d5b67c (patch) | |
| tree | e340d3a062f9bba1bc586259a2c0e8ce3da3adde | |
| parent | 14e2791a5a0c78903d1cb841b04166198f0b523d (diff) | |
| download | emacs-7f18ce220c404f8003ea2c6a7fb51573b8d5b67c.tar.gz emacs-7f18ce220c404f8003ea2c6a7fb51573b8d5b67c.zip | |
(pop-up-frame-function): Use quote, not `function'.
(frame-notice-user-settings): Calculate ADJUSTED-TOP
copying with lists as coordinate values.
| -rw-r--r-- | lisp/frame.el | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 367f40d6f8e..a470fbc0f97 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -85,8 +85,9 @@ for pop-up frames." | |||
| 85 | :group 'frames) | 85 | :group 'frames) |
| 86 | 86 | ||
| 87 | (setq pop-up-frame-function | 87 | (setq pop-up-frame-function |
| 88 | (function (lambda () | 88 | ;; Using `function' here caused some sort of problem. |
| 89 | (make-frame pop-up-frame-alist)))) | 89 | '(lambda () |
| 90 | (make-frame pop-up-frame-alist))) | ||
| 90 | 91 | ||
| 91 | (defcustom special-display-frame-alist | 92 | (defcustom special-display-frame-alist |
| 92 | '((height . 14) (width . 80) (unsplittable . t)) | 93 | '((height . 14) (width . 80) (unsplittable . t)) |
| @@ -335,10 +336,22 @@ React to settings of `default-frame-alist', `initial-frame-alist' there." | |||
| 335 | frame-initial-geometry-arguments))) | 336 | frame-initial-geometry-arguments))) |
| 336 | (top (frame-parameter frame-initial-frame 'top))) | 337 | (top (frame-parameter frame-initial-frame 'top))) |
| 337 | (when (and (consp initial-top) (eq '- (car initial-top))) | 338 | (when (and (consp initial-top) (eq '- (car initial-top))) |
| 338 | (setq newparms | 339 | (let ((adjusted-top |
| 339 | (append newparms | 340 | (cond ((and (consp top) |
| 340 | `((top . ,(+ top (* lines char-height)))) | 341 | (eq '+ (car top))) |
| 341 | nil))) | 342 | (list '+ |
| 343 | (+ (cadr top) | ||
| 344 | (* lines char-height)))) | ||
| 345 | ((and (consp top) | ||
| 346 | (eq '- (car top))) | ||
| 347 | (list '- | ||
| 348 | (- (cadr top) | ||
| 349 | (* lines char-height)))) | ||
| 350 | (t (+ top (* lines char-height)))))) | ||
| 351 | (setq newparms | ||
| 352 | (append newparms | ||
| 353 | `((top . ,adjusted-top)) | ||
| 354 | nil)))) | ||
| 342 | (modify-frame-parameters frame-initial-frame newparms) | 355 | (modify-frame-parameters frame-initial-frame newparms) |
| 343 | (tool-bar-mode -1))))) | 356 | (tool-bar-mode -1))))) |
| 344 | 357 | ||