summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-12-29 19:17:24 +0000
committerRichard M. Stallman <rms@gnu.org>2003-12-29 19:17:24 +0000
commite6fc5ef4ddf50f9240c9bc5a245757e0d9bec18b (patch)
treeac13fbd1830ffe1633d3e1198f2c629d4a802fdb
parentfd824cb66de55c4572870c7b2e0215973c36f3b5 (diff)
downloademacs-e6fc5ef4ddf50f9240c9bc5a245757e0d9bec18b.tar.gz
(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.el25
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."
:group 'frames)
(setq pop-up-frame-function
- (function (lambda ()
- (make-frame pop-up-frame-alist))))
+ ;; Using `function' here caused some sort of problem.
+ '(lambda ()
+ (make-frame pop-up-frame-alist)))
(defcustom special-display-frame-alist
'((height . 14) (width . 80) (unsplittable . t))
@@ -335,10 +336,22 @@ React to settings of `default-frame-alist', `initial-frame-alist' there."
frame-initial-geometry-arguments)))
(top (frame-parameter frame-initial-frame 'top)))
(when (and (consp initial-top) (eq '- (car initial-top)))
- (setq newparms
- (append newparms
- `((top . ,(+ top (* lines char-height))))
- nil)))
+ (let ((adjusted-top
+ (cond ((and (consp top)
+ (eq '+ (car top)))
+ (list '+
+ (+ (cadr top)
+ (* lines char-height))))
+ ((and (consp top)
+ (eq '- (car top)))
+ (list '-
+ (- (cadr top)
+ (* lines char-height))))
+ (t (+ top (* lines char-height))))))
+ (setq newparms
+ (append newparms
+ `((top . ,adjusted-top))
+ nil))))
(modify-frame-parameters frame-initial-frame newparms)
(tool-bar-mode -1)))))