]> code.delx.au - gnu-emacs/blobdiff - lisp/calc/calccomp.el
Move window resize code from window.c to window.el.
[gnu-emacs] / lisp / calc / calccomp.el
index fa910ce2568fcbcd6d9c790f01b7ca92a74c5f81..906517ac5031c6176a0c902adb01124bc9914634 100644 (file)
                 (let ((prefix "") mrg wid)
                   (setq mrg (aref math-comp-buf-margin i))
                   (if (> mrg 12)  ; indenting too far, go back to far left
-                      (let ((j i) (new (if calc-line-numbering 5 1)))
-                        '(while (<= j math-comp-level)
-                          (aset math-comp-buf-margin j
-                                (+ (aref math-comp-buf-margin j) (- new mrg)))
-                          (setq j (1+ j)))
-                        (setq mrg new)))
+                      (setq mrg (if calc-line-numbering 5 1)))
                   (setq wid (+ (length str) math-comp-margin))
                   (and (> (length str) 0) (= (aref str 0) ? )
                        (> (length math-comp-buf) 0)