]> git.eshelyaron.com Git - emacs.git/commitdiff
(math-stack-value-offset): Replace variables c, wid and off with
authorJay Belanger <jay.p.belanger@gmail.com>
Wed, 24 Nov 2004 06:01:45 +0000 (06:01 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Wed, 24 Nov 2004 06:01:45 +0000 (06:01 +0000)
math-svo-c, math-svo-wid and math-svo-off.

lisp/calc/calc.el

index 6480b1960a5337562026cfe6eac8a7e673524291..89329e89f5cc31a5ed89f81ac13a8c100093daf7 100644 (file)
@@ -3016,19 +3016,23 @@ See calc-keypad for details."
     (setcar (cdr entry) (calc-count-lines s))
     s))
 
-(defun math-stack-value-offset (c)
+;; The variables math-svo-c, math-svo-wid and math-svo-off are local
+;; to math-stack-value-offset, but are used by math-stack-value-offset-fancy
+;; in calccomp.el.
+
+(defun math-stack-value-offset (math-svo-c)
   (let* ((num (if calc-line-numbering 4 0))
-        (wid (calc-window-width))
-        off)
+        (math-svo-wid (calc-window-width))
+        math-svo-off)
     (if calc-display-just
        (progn
          (calc-extensions)
          (math-stack-value-offset-fancy))
-      (setq off (or calc-display-origin 0))
+      (setq math-svo-off (or calc-display-origin 0))
       (when (integerp calc-line-breaking)
-       (setq wid calc-line-breaking)))
-    (cons (max (- off (length calc-left-label)) 0)
-         (+ wid num))))
+       (setq math-svo-wid calc-line-breaking)))
+    (cons (max (- math-svo-off (length calc-left-label)) 0)
+         (+ math-svo-wid num))))
 
 (defun calc-count-lines (s)
   (let ((pos 0)