aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2004-10-11 03:29:45 +0000
committerJay Belanger2004-10-11 03:29:45 +0000
commit749dadb57d149fc5ca708e404e8d806ee25dddb6 (patch)
tree2b373a11b9a171b6df793d2ac3265a467d8901e8
parent65ce291b9c10b634e82552c0bd53d87283665b39 (diff)
downloademacs-749dadb57d149fc5ca708e404e8d806ee25dddb6.tar.gz
emacs-749dadb57d149fc5ca708e404e8d806ee25dddb6.zip
(calc-describe-copying, calc-describe-distribution, calc-describe-thing,
calc-describe-no-warranty, calc-describe-key): Go to appropriate info node in one step.
-rw-r--r--lisp/calc/calc-help.el21
1 files changed, 9 insertions, 12 deletions
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el
index e66f50bd40c..32f86d6f750 100644
--- a/lisp/calc/calc-help.el
+++ b/lisp/calc/calc-help.el
@@ -93,18 +93,15 @@ C-w Describe how there is no warranty for Calc."
93 93
94(defun calc-describe-copying () 94(defun calc-describe-copying ()
95 (interactive) 95 (interactive)
96 (calc-info) 96 (calc-info-goto-node "Copying"))
97 (Info-goto-node "Copying"))
98 97
99(defun calc-describe-distribution () 98(defun calc-describe-distribution ()
100 (interactive) 99 (interactive)
101 (calc-info) 100 (calc-info-goto-node "Reporting Bugs"))
102 (Info-goto-node "Reporting Bugs"))
103 101
104(defun calc-describe-no-warranty () 102(defun calc-describe-no-warranty ()
105 (interactive) 103 (interactive)
106 (calc-info) 104 (calc-info-goto-node "Copying")
107 (Info-goto-node "Copying")
108 (let ((case-fold-search nil)) 105 (let ((case-fold-search nil))
109 (search-forward " NO WARRANTY")) 106 (search-forward " NO WARRANTY"))
110 (beginning-of-line) 107 (beginning-of-line)
@@ -190,13 +187,13 @@ C-w Describe how there is no warranty for Calc."
190 (message "Reading Calc summary from manual...") 187 (message "Reading Calc summary from manual...")
191 (save-window-excursion 188 (save-window-excursion
192 (save-excursion 189 (save-excursion
193 (calc-info) 190 (calc-info-goto-node "Summary")
194 (Info-goto-node "Summary")
195 (goto-char (point-min)) 191 (goto-char (point-min))
196 (forward-line 1) 192 (forward-line 1)
197 (copy-to-buffer "*Calc Summary*" 193 (copy-to-buffer "*Calc Summary*"
198 (point) (point-max)) 194 (point) (point-max))
199 (Info-last))) 195 (if Info-history
196 (Info-last))))
200 (setq case-fold-search nil) 197 (setq case-fold-search nil)
201 (re-search-forward "^\\(.*\\)\\[\\.\\. a b") 198 (re-search-forward "^\\(.*\\)\\[\\.\\. a b")
202 (setq calc-summary-indentation 199 (setq calc-summary-indentation
@@ -326,8 +323,7 @@ C-w Describe how there is no warranty for Calc."
326(defun calc-describe-thing (thing where &optional target not-quoted) 323(defun calc-describe-thing (thing where &optional target not-quoted)
327 (message "Looking for `%s' in %s..." thing where) 324 (message "Looking for `%s' in %s..." thing where)
328 (let ((savewin (current-window-configuration))) 325 (let ((savewin (current-window-configuration)))
329 (calc-info) 326 (calc-info-goto-node where)
330 (Info-goto-node where)
331 (or (let ((case-fold-search nil)) 327 (or (let ((case-fold-search nil))
332 (re-search-forward (format "\n\\* +%s: \\(.*\\)\\." 328 (re-search-forward (format "\n\\* +%s: \\(.*\\)\\."
333 (regexp-quote thing)) 329 (regexp-quote thing))
@@ -338,7 +334,8 @@ C-w Describe how there is no warranty for Calc."
338 nil t) 334 nil t)
339 (setq thing (format "%s9" (substring thing 0 -1)))) 335 (setq thing (format "%s9" (substring thing 0 -1))))
340 (progn 336 (progn
341 (Info-last) 337 (if Info-history
338 (Info-last))
342 (set-window-configuration savewin) 339 (set-window-configuration savewin)
343 (error "Can't find `%s' in %s" thing where))) 340 (error "Can't find `%s' in %s" thing where)))
344 (let (Info-history) 341 (let (Info-history)