comparison lisp/info.el @ 6716:9ce2d1a2c155

(Info-find-node): Don't try to backstep if no history. (Info-insert-dir): Print sensible error message if no dir node.
author Karl Heuer <kwzh@gnu.org>
date Thu, 07 Apr 1994 03:11:50 +0000
parents ca39bae3744d
children 52b0ebfd3191
comparison
equal deleted inserted replaced
6715:3864d274a56c 6716:9ce2d1a2c155
302 (throw 'foo t)))) 302 (throw 'foo t))))
303 (error "No such node: %s" nodename))) 303 (error "No such node: %s" nodename)))
304 (Info-select-node))) 304 (Info-select-node)))
305 ;; If we did not finish finding the specified node, 305 ;; If we did not finish finding the specified node,
306 ;; go back to the previous one. 306 ;; go back to the previous one.
307 (or Info-current-node no-going-back 307 (or Info-current-node no-going-back (null Info-history)
308 (let ((hist (car Info-history))) 308 (let ((hist (car Info-history)))
309 (setq Info-history (cdr Info-history)) 309 (setq Info-history (cdr Info-history))
310 (Info-find-node (nth 0 hist) (nth 1 hist) t) 310 (Info-find-node (nth 0 hist) (nth 1 hist) t)
311 (goto-char (nth 2 hist))))) 311 (goto-char (nth 2 hist)))))
312 (goto-char (point-min))) 312 (goto-char (point-min)))
371 (cons (cons (buffer-file-name buffer) 371 (cons (cons (buffer-file-name buffer)
372 (file-attributes (buffer-file-name buffer))) 372 (file-attributes (buffer-file-name buffer)))
373 Info-dir-file-attributes)))))) 373 Info-dir-file-attributes))))))
374 (setq dirs (cdr dirs))) 374 (setq dirs (cdr dirs)))
375 375
376 (or buffers
377 (error "Can't find the info directory node"))
376 ;; Distinguish the dir file that comes with Emacs from all the 378 ;; Distinguish the dir file that comes with Emacs from all the
377 ;; others. Yes, that is really what this is supposed to do. 379 ;; others. Yes, that is really what this is supposed to do.
378 ;; If it doesn't work, fix it. 380 ;; If it doesn't work, fix it.
379 (setq buffer (car buffers) 381 (setq buffer (car buffers)
380 others (cdr buffers)) 382 others (cdr buffers))