# HG changeset patch # User Jay Belanger # Date 1105540312 0 # Node ID 766a3686c3aeae1576e61f65085b7c026379b4c0 # Parent e7064c8273f51327cb0a497ad6e59e05b5f15a9b (calc-describe-key): Use temporary info buffer to create a Calc summary. diff -r e7064c8273f5 -r 766a3686c3ae lisp/calc/calc-help.el --- a/lisp/calc/calc-help.el Wed Jan 12 10:54:02 2005 +0000 +++ b/lisp/calc/calc-help.el Wed Jan 12 14:31:52 2005 +0000 @@ -178,15 +178,15 @@ (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")