aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2008-11-05 22:12:21 +0000
committerJay Belanger2008-11-05 22:12:21 +0000
commita2baa908022e3459e12eb4c7ce701f8391cf06c2 (patch)
treecae74ea2ac8e66eacfabea495b5eac66a703b119
parentd9bf544c71f035dde7522bcc355c63974cd9f5c0 (diff)
downloademacs-a2baa908022e3459e12eb4c7ce701f8391cf06c2.tar.gz
emacs-a2baa908022e3459e12eb4c7ce701f8391cf06c2.zip
(calc-quit): Use `window-full-width-p' to check window width.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calc/calc.el5
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 213b7065c19..029d7375580 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-11-05 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc/calc.el (calc-quit): Use `window-full-width-p' to check
4 window width.
5
12008-11-05 Chong Yidong <cyd@stupidchicken.com> 62008-11-05 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * server.el (server-process-filter): Only default to emacsclient's 8 * server.el (server-process-filter): Only default to emacsclient's
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 4c6375b1183..395ac8fe975 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -1424,9 +1424,12 @@ commands given here will actually operate on the *Calculator* stack."
1424 (win (get-buffer-window (current-buffer))) 1424 (win (get-buffer-window (current-buffer)))
1425 (kbuf (get-buffer "*Calc Keypad*"))) 1425 (kbuf (get-buffer "*Calc Keypad*")))
1426 (delete-windows-on (calc-trail-buffer)) 1426 (delete-windows-on (calc-trail-buffer))
1427 ;; The next few lines will set `calc-window-height' so that the
1428 ;; next time Calc is called, the window will be the same size
1429 ;; as the current window.
1427 (if (and win 1430 (if (and win
1428 (< (window-height win) (1- (frame-height))) 1431 (< (window-height win) (1- (frame-height)))
1429 (= (window-width win) (frame-width)) ; avoid calc-keypad 1432 (window-full-width-p win) ; avoid calc-keypad
1430 (not (get-buffer-window "*Calc Keypad*"))) 1433 (not (get-buffer-window "*Calc Keypad*")))
1431 (setq calc-window-height (- (window-height win) 2))) 1434 (setq calc-window-height (- (window-height win) 2)))
1432 (progn 1435 (progn