Mercurial > emacs
comparison lisp/calc/calc-help.el @ 105792:2c12fbae77c2
* 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.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 28 Oct 2009 18:35:33 +0000 |
parents | 2e0765155e47 |
children | e3602466755b |
comparison
equal
deleted
inserted
replaced
105791:84d7bc7104ac | 105792:2c12fbae77c2 |
---|---|
108 (recenter 0)) | 108 (recenter 0)) |
109 | 109 |
110 (defun calc-describe-bindings () | 110 (defun calc-describe-bindings () |
111 (interactive) | 111 (interactive) |
112 (describe-bindings) | 112 (describe-bindings) |
113 (save-excursion | 113 (with-current-buffer "*Help*" |
114 (set-buffer "*Help*") | |
115 (let ((inhibit-read-only t)) | 114 (let ((inhibit-read-only t)) |
116 (goto-char (point-min)) | 115 (goto-char (point-min)) |
117 (when (search-forward "Major Mode Bindings:" nil t) | 116 (when (search-forward "Major Mode Bindings:" nil t) |
118 (delete-region (point-min) (point)) | 117 (delete-region (point-min) (point)) |
119 (insert "Calc Mode Bindings:")) | 118 (insert "Calc Mode Bindings:")) |
176 (while (string-match "^M-# \\(ESC \\|C-\\)" desc) | 175 (while (string-match "^M-# \\(ESC \\|C-\\)" desc) |
177 (setq desc (concat "M-# " (substring desc (match-end 0))))) | 176 (setq desc (concat "M-# " (substring desc (match-end 0))))) |
178 (if (string-match "\\(DEL\\|\\LFD\\|RET\\|SPC\\|TAB\\)" desc) | 177 (if (string-match "\\(DEL\\|\\LFD\\|RET\\|SPC\\|TAB\\)" desc) |
179 (setq desc (replace-match "<\\&>" nil nil desc))) | 178 (setq desc (replace-match "<\\&>" nil nil desc))) |
180 (if briefly | 179 (if briefly |
181 (let ((msg (save-excursion | 180 (let ((msg (with-current-buffer (get-buffer-create "*Calc Summary*") |
182 (set-buffer (get-buffer-create "*Calc Summary*")) | |
183 (if (= (buffer-size) 0) | 181 (if (= (buffer-size) 0) |
184 (progn | 182 (progn |
185 (message "Reading Calc summary from manual...") | 183 (message "Reading Calc summary from manual...") |
186 (require 'info nil t) | 184 (require 'info nil t) |
187 (with-temp-buffer | 185 (with-temp-buffer |