]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-quit): Use `window-full-width-p' to check window width.
authorJay Belanger <jay.p.belanger@gmail.com>
Wed, 5 Nov 2008 22:12:21 +0000 (22:12 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Wed, 5 Nov 2008 22:12:21 +0000 (22:12 +0000)
lisp/ChangeLog
lisp/calc/calc.el

index 213b7065c19d62a64cd48dd7bf96dfb70a45c534..029d73755800941afc96706dd73feaf7f06e1587 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-05  Jay Belanger  <jay.p.belanger@gmail.com>
+
+       * calc/calc.el (calc-quit): Use `window-full-width-p' to check
+       window width.
+
 2008-11-05  Chong Yidong  <cyd@stupidchicken.com>
 
        * server.el (server-process-filter): Only default to emacsclient's
index 4c6375b11833e8acdb4909c505d12bf63e796d6c..395ac8fe975ebfc0d84e463905f745f5eb9ea5b1 100644 (file)
@@ -1424,9 +1424,12 @@ commands given here will actually operate on the *Calculator* stack."
             (win (get-buffer-window (current-buffer)))
             (kbuf (get-buffer "*Calc Keypad*")))
         (delete-windows-on (calc-trail-buffer))
+        ;; The next few lines will set `calc-window-height' so that the
+        ;; next time Calc is called, the window will be the same size
+        ;; as the current window.
         (if (and win
                  (< (window-height win) (1- (frame-height)))
-                 (= (window-width win) (frame-width))  ; avoid calc-keypad
+                 (window-full-width-p win) ; avoid calc-keypad
                  (not (get-buffer-window "*Calc Keypad*")))
             (setq calc-window-height (- (window-height win) 2)))
         (progn