# HG changeset patch # User Stefan Monnier # Date 1213459298 0 # Node ID bda6cd3a64770a88012b435d698d25237a3f1b2b # Parent e9cff1f5a026e5bec6c0c9ddd801c664e833615f (Info-insert-breadcrumbs): Don't break in apropos and toc. diff -r e9cff1f5a026 -r bda6cd3a6477 lisp/ChangeLog --- a/lisp/ChangeLog Sat Jun 14 10:11:20 2008 +0000 +++ b/lisp/ChangeLog Sat Jun 14 16:01:38 2008 +0000 @@ -1,3 +1,7 @@ +2008-06-14 Stefan Monnier + + * info.el (Info-insert-breadcrumbs): Don't break in apropos and toc. + 2008-06-14 Martin Rudalics * window.el (window--even-window-heights): Even window heights diff -r e9cff1f5a026 -r bda6cd3a6477 lisp/info.el --- a/lisp/info.el Sat Jun 14 10:11:20 2008 +0000 +++ b/lisp/info.el Sat Jun 14 16:01:38 2008 +0000 @@ -3723,9 +3723,12 @@ (unwind-protect (while (and (not (equal "Top" Info-current-node)) (> depth 0)) (let ((up (Info-extract-pointer "up"))) - (push up crumbs) - (setq depth (1- depth)) - (Info-find-node Info-current-file up 'no-going-back))) + (if (string-match "\\`(.*)" up) + ;; Crossing over to another manual. This is typically (dir). + (setq depth 0) + (push up crumbs) + (setq depth (1- depth)) + (Info-find-node Info-current-file up 'no-going-back)))) (if crumbs ;Do bother going back if we haven't moved. (Info-find-node Info-current-file onode 'no-going-back)) ;; Add bottom node. @@ -3743,7 +3746,10 @@ (let ((text (if (not (equal node "Top")) node (format "(%s)Top" - (file-name-nondirectory Info-current-file))))) + (if (stringp Info-current-file) + (file-name-nondirectory Info-current-file) + ;; Can be `toc', `apropos', or even `history'. + Info-current-file))))) (insert (if (bolp) "> " " > ") (cond ((null node) "...")