aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2009-04-26 01:39:48 +0000
committerJay Belanger2009-04-26 01:39:48 +0000
commit26361eae762d5e9daf5a88f286a57d26f2b8b614 (patch)
treea37d10579d1a51ff6036a7ad434e8585d6837520
parent6347c602f2b1d1d48d342dbf540beb215bd64b0c (diff)
downloademacs-26361eae762d5e9daf5a88f286a57d26f2b8b614.tar.gz
emacs-26361eae762d5e9daf5a88f286a57d26f2b8b614.zip
(calc-set-mode-line): Check to make sure that the correct Calc buffer
gets "Embed" in the mode line. (calc-mode): Copy stack list for additional Calc buffers.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/calc/calc.el5
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e77abd01379..646bb06fed2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12009-04-26 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc/calc.el (calc-set-mode-line): Check to make sure that the
4 correct Calc buffer gets "Embed" in the mode line.
5 (calc-mode): Copy stack list for additional Calc buffers.
6
12009-04-25 Chong Yidong <cyd@stupidchicken.com> 72009-04-25 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * simple.el (line-move-visual): If point is stuck moving backwards 9 * simple.el (line-move-visual): If point is stuck moving backwards
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index e1496da8d62..00a33f59374 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -1335,6 +1335,7 @@ Notations: 3.14e6 3.14 * 10^6
1335 (calc-refresh t) 1335 (calc-refresh t)
1336 (calc-set-mode-line) 1336 (calc-set-mode-line)
1337 (calc-check-defines) 1337 (calc-check-defines)
1338 (if calc-buffer-list (setq calc-stack (copy-list calc-stack)))
1338 (add-to-list 'calc-buffer-list (current-buffer) t)) 1339 (add-to-list 'calc-buffer-list (current-buffer) t))
1339 1340
1340(defvar calc-check-defines 'calc-check-defines) ; suitable for run-hooks 1341(defvar calc-check-defines 'calc-check-defines) ; suitable for run-hooks
@@ -1657,7 +1658,9 @@ See calc-keypad for details."
1657 (figs (nth 1 calc-float-format)) 1658 (figs (nth 1 calc-float-format))
1658 (new-mode-string 1659 (new-mode-string
1659 (format "Calc%s%s: %d %s %-14s" 1660 (format "Calc%s%s: %d %s %-14s"
1660 (if calc-embedded-info "Embed" "") 1661 (if (and calc-embedded-info
1662 (eq (aref calc-embedded-info 1) (current-buffer)))
1663 "Embed" "")
1661 (if (and (> (length (buffer-name)) 12) 1664 (if (and (> (length (buffer-name)) 12)
1662 (equal (substring (buffer-name) 0 12) 1665 (equal (substring (buffer-name) 0 12)
1663 "*Calculator*")) 1666 "*Calculator*"))