aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2004-11-24 06:01:45 +0000
committerJay Belanger2004-11-24 06:01:45 +0000
commitf0a35df4eaf3699fb034f12b212edf298bf7d432 (patch)
tree47fb65035e105b3b1b58f88e58a5ffa654325fbf
parent1c80b98b612800b72cc76eb4c91c80e22fc3e61c (diff)
downloademacs-f0a35df4eaf3699fb034f12b212edf298bf7d432.tar.gz
emacs-f0a35df4eaf3699fb034f12b212edf298bf7d432.zip
(math-stack-value-offset): Replace variables c, wid and off with
math-svo-c, math-svo-wid and math-svo-off.
-rw-r--r--lisp/calc/calc.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 6480b1960a5..89329e89f5c 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -3016,19 +3016,23 @@ See calc-keypad for details."
3016 (setcar (cdr entry) (calc-count-lines s)) 3016 (setcar (cdr entry) (calc-count-lines s))
3017 s)) 3017 s))
3018 3018
3019(defun math-stack-value-offset (c) 3019;; The variables math-svo-c, math-svo-wid and math-svo-off are local
3020;; to math-stack-value-offset, but are used by math-stack-value-offset-fancy
3021;; in calccomp.el.
3022
3023(defun math-stack-value-offset (math-svo-c)
3020 (let* ((num (if calc-line-numbering 4 0)) 3024 (let* ((num (if calc-line-numbering 4 0))
3021 (wid (calc-window-width)) 3025 (math-svo-wid (calc-window-width))
3022 off) 3026 math-svo-off)
3023 (if calc-display-just 3027 (if calc-display-just
3024 (progn 3028 (progn
3025 (calc-extensions) 3029 (calc-extensions)
3026 (math-stack-value-offset-fancy)) 3030 (math-stack-value-offset-fancy))
3027 (setq off (or calc-display-origin 0)) 3031 (setq math-svo-off (or calc-display-origin 0))
3028 (when (integerp calc-line-breaking) 3032 (when (integerp calc-line-breaking)
3029 (setq wid calc-line-breaking))) 3033 (setq math-svo-wid calc-line-breaking)))
3030 (cons (max (- off (length calc-left-label)) 0) 3034 (cons (max (- math-svo-off (length calc-left-label)) 0)
3031 (+ wid num)))) 3035 (+ math-svo-wid num))))
3032 3036
3033(defun calc-count-lines (s) 3037(defun calc-count-lines (s)
3034 (let ((pos 0) 3038 (let ((pos 0)