diff options
| author | Jay Belanger <jay.p.belanger@gmail.com> | 2005-01-12 14:31:52 +0000 |
|---|---|---|
| committer | Jay Belanger <jay.p.belanger@gmail.com> | 2005-01-12 14:31:52 +0000 |
| commit | fcda5138f2d4af0eb142c5c27c61d2364f3e3222 (patch) | |
| tree | f4e741f7e1005df56221f67bb3732d3b4a5abc0a /lisp/calc | |
| parent | b41a40196b340cd97700dacbdfc90d7c8393eb38 (diff) | |
| download | emacs-fcda5138f2d4af0eb142c5c27c61d2364f3e3222.tar.gz | |
(calc-describe-key): Use temporary info buffer to create a Calc
summary.
Diffstat (limited to 'lisp/calc')
| -rw-r--r-- | lisp/calc/calc-help.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el index 087c42d295c..eb0cba79cd8 100644 --- a/lisp/calc/calc-help.el +++ b/lisp/calc/calc-help.el @@ -178,15 +178,15 @@ C-w Describe how there is no warranty for Calc." (if (= (buffer-size) 0) (progn (message "Reading Calc summary from manual...") - (save-window-excursion - (save-excursion - (calc-info-goto-node "Summary") - (goto-char (point-min)) - (forward-line 1) - (copy-to-buffer "*Calc Summary*" - (point) (point-max)) - (if Info-history - (Info-last)))))) + (require 'info nil t) + (with-temp-buffer + (Info-mode) + (Info-goto-node "(Calc)Summary") + (goto-char (point-min)) + (forward-line 1) + (copy-to-buffer "*Calc Summary*" + (point) (point-max))) + (setq buffer-read-only t))) (goto-char (point-min)) (setq case-fold-search nil) (re-search-forward "^\\(.*\\)\\[\\.\\. a b") |
