aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calculator.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/calculator.el b/lisp/calculator.el
index cfe459341f8..ad385a9de4d 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -51,6 +51,7 @@
51(defgroup calculator nil 51(defgroup calculator nil
52 "Simple pocket calculator." 52 "Simple pocket calculator."
53 :prefix "calculator" 53 :prefix "calculator"
54 :version "21.1"
54 :group 'tools 55 :group 'tools
55 :group 'convenience) 56 :group 'convenience)
56 57
@@ -155,8 +156,8 @@ operators. It is probably not a good idea to modify this value with
155 156
156Examples: 157Examples:
157 158
158* A very simple one, adding a postfix \"x-to-y\" convertion keys, using 159* A very simple one, adding a postfix \"x-to-y\" conversion keys, using
159 `t' as a prefix key: 160 t as a prefix key:
160 161
161 (setq calculator-user-operators 162 (setq calculator-user-operators
162 '((\"tf\" cl-to-fr (+ 32 (/ (* X 9) 5)) 1) 163 '((\"tf\" cl-to-fr (+ 32 (/ (* X 9) 5)) 1)
@@ -631,7 +632,14 @@ See the documentation for `calculator-mode' for more information."
631 (let ((split-window-keep-point nil) 632 (let ((split-window-keep-point nil)
632 (window-min-height 2)) 633 (window-min-height 2))
633 (select-window 634 (select-window
634 (split-window-vertically (- (window-height) 2))) 635 ;; Maybe leave two lines for our window because
636 ;; of the normal `raised' modeline in Emacs 21.
637 (split-window-vertically
638 (- (window-height)
639 (if (plist-get (face-attr-construct 'modeline)
640 :box)
641 3
642 2))))
635 (switch-to-buffer 643 (switch-to-buffer
636 (get-buffer-create "*calculator*")))))) 644 (get-buffer-create "*calculator*"))))))
637 (set-buffer calculator-buffer) 645 (set-buffer calculator-buffer)