aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-02-25 18:31:16 +0000
committerRichard M. Stallman1996-02-25 18:31:16 +0000
commit81e14cb260ca7e4dc57bfa329ffce274db0d7e94 (patch)
tree4d79fe1fbc34abc7afb50ce4fbee460976f0f318
parentc17d59fcd2ba238f4929755788585f5538190744 (diff)
downloademacs-81e14cb260ca7e4dc57bfa329ffce274db0d7e94.tar.gz
emacs-81e14cb260ca7e4dc57bfa329ffce274db0d7e94.zip
(Info-index): If fail, go back to original node.
(Info-find-node): Make error messages consistent. (Info-insert-dir): Fix error message.
-rw-r--r--lisp/info.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/info.el b/lisp/info.el
index a99463c3254..bf55202f501 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -375,7 +375,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
375 (if (not (eq (current-buffer) (get-buffer "*info*"))) 375 (if (not (eq (current-buffer) (get-buffer "*info*")))
376 (setq guesspos 376 (setq guesspos
377 (Info-read-subfile guesspos)))) 377 (Info-read-subfile guesspos))))
378 (error "No such node: `%s'" nodename)))) 378 (error "No such node: %s" nodename))))
379 (goto-char (max (point-min) (- guesspos 1000))) 379 (goto-char (max (point-min) (- guesspos 1000)))
380 ;; Now search from our advised position (or from beg of buffer) 380 ;; Now search from our advised position (or from beg of buffer)
381 ;; to find the actual node. 381 ;; to find the actual node.
@@ -466,7 +466,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
466 (setq dirs (cdr dirs)))) 466 (setq dirs (cdr dirs))))
467 467
468 (or buffers 468 (or buffers
469 (error "Can't find the info directory node")) 469 (error "Can't find the Info directory node"))
470 ;; Distinguish the dir file that comes with Emacs from all the 470 ;; Distinguish the dir file that comes with Emacs from all the
471 ;; others. Yes, that is really what this is supposed to do. 471 ;; others. Yes, that is really what this is supposed to do.
472 ;; If it doesn't work, fix it. 472 ;; If it doesn't work, fix it.
@@ -1328,7 +1328,7 @@ Give a blank topic name to go to the Index node itself."
1328 (Info-goto-node node)) 1328 (Info-goto-node node))
1329 (or matches 1329 (or matches
1330 (progn 1330 (progn
1331 (Info-last) 1331 (Info-goto-node orignode)
1332 (error "No `%s' in index" topic))) 1332 (error "No `%s' in index" topic)))
1333 ;; Here it is a feature that assoc is case-sensitive. 1333 ;; Here it is a feature that assoc is case-sensitive.
1334 (while (setq found (assoc topic matches)) 1334 (while (setq found (assoc topic matches))