diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-10-28 18:35:33 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-10-28 18:35:33 +0000 |
commit | 6df9b6d78f82589af80c70bf1f027a275383a40c (patch) | |
tree | 7f30e3d88edf7d76d68d1fbfb2e6976f9e58f4d4 /lisp/calc/calc-help.el | |
parent | 6e3da0ae024a0ebedc87b511f124f2a975932162 (diff) | |
download | emacs-6df9b6d78f82589af80c70bf1f027a275383a40c.tar.gz |
* calc/calc.el (calc, calc-refresh, calc-trail-buffer, calc-record)
(calcDigit-nondigit):
* calc/calc-yank.el (calc-copy-to-buffer):
* calc/calc-units.el (calc-invalidate-units-table):
* calc/calc-trail.el (calc-trail-yank):
* calc/calc-store.el (calc-insert-variables):
* calc/calc-rewr.el (math-rewrite, math-rewrite-phase):
* calc/calc-prog.el (calc-read-parse-table):
* calc/calc-keypd.el (calc-do-keypad, calc-keypad-right-click):
* calc/calc-help.el (calc-describe-bindings, calc-describe-key):
* calc/calc-graph.el (calc-graph-delete, calc-graph-add-curve)
(calc-graph-juggle, calc-graph-count-curves, calc-graph-plot)
(calc-graph-plot, calc-graph-format-data, calc-graph-set-styles)
(calc-graph-name, calc-graph-find-command, calc-graph-view)
(calc-graph-view, calc-gnuplot-command, calc-graph-init):
* calc/calc-ext.el (calc-realign):
* calc/calc-embed.el (calc-do-embedded, calc-do-embedded)
(calc-embedded-finish-edit, calc-embedded-make-info)
(calc-embedded-finish-command, calc-embedded-stack-change):
* calc/calc-aent.el (calcAlg-enter): Use with-current-buffer.
Diffstat (limited to 'lisp/calc/calc-help.el')
-rw-r--r-- | lisp/calc/calc-help.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el index ced9fbad220..78f45755d93 100644 --- a/lisp/calc/calc-help.el +++ b/lisp/calc/calc-help.el @@ -110,8 +110,7 @@ C-w Describe how there is no warranty for Calc." (defun calc-describe-bindings () (interactive) (describe-bindings) - (save-excursion - (set-buffer "*Help*") + (with-current-buffer "*Help*" (let ((inhibit-read-only t)) (goto-char (point-min)) (when (search-forward "Major Mode Bindings:" nil t) @@ -178,8 +177,7 @@ C-w Describe how there is no warranty for Calc." (if (string-match "\\(DEL\\|\\LFD\\|RET\\|SPC\\|TAB\\)" desc) (setq desc (replace-match "<\\&>" nil nil desc))) (if briefly - (let ((msg (save-excursion - (set-buffer (get-buffer-create "*Calc Summary*")) + (let ((msg (with-current-buffer (get-buffer-create "*Calc Summary*") (if (= (buffer-size) 0) (progn (message "Reading Calc summary from manual...") |