diff options
| author | Stefan Monnier | 2008-06-14 16:01:38 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-14 16:01:38 +0000 |
| commit | 508021c76d19608339c44aca2dbd48856dbde313 (patch) | |
| tree | 1a963b4fdfdd2ce8672a47935e94b966acad5e3a | |
| parent | d176d8c6e8bd7d7f283d3b4b7bb53104b6ada534 (diff) | |
| download | emacs-508021c76d19608339c44aca2dbd48856dbde313.tar.gz emacs-508021c76d19608339c44aca2dbd48856dbde313.zip | |
(Info-insert-breadcrumbs): Don't break in apropos and toc.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/info.el | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d6fbb22e0c6..f686fb60322 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * info.el (Info-insert-breadcrumbs): Don't break in apropos and toc. | ||
| 4 | |||
| 1 | 2008-06-14 Martin Rudalics <rudalics@gmx.at> | 5 | 2008-06-14 Martin Rudalics <rudalics@gmx.at> |
| 2 | 6 | ||
| 3 | * window.el (window--even-window-heights): Even window heights | 7 | * window.el (window--even-window-heights): Even window heights |
diff --git a/lisp/info.el b/lisp/info.el index b274c8258a4..fcdee4b660f 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -3723,9 +3723,12 @@ the variable `Info-file-list-for-emacs'." | |||
| 3723 | (unwind-protect | 3723 | (unwind-protect |
| 3724 | (while (and (not (equal "Top" Info-current-node)) (> depth 0)) | 3724 | (while (and (not (equal "Top" Info-current-node)) (> depth 0)) |
| 3725 | (let ((up (Info-extract-pointer "up"))) | 3725 | (let ((up (Info-extract-pointer "up"))) |
| 3726 | (push up crumbs) | 3726 | (if (string-match "\\`(.*)" up) |
| 3727 | (setq depth (1- depth)) | 3727 | ;; Crossing over to another manual. This is typically (dir). |
| 3728 | (Info-find-node Info-current-file up 'no-going-back))) | 3728 | (setq depth 0) |
| 3729 | (push up crumbs) | ||
| 3730 | (setq depth (1- depth)) | ||
| 3731 | (Info-find-node Info-current-file up 'no-going-back)))) | ||
| 3729 | (if crumbs ;Do bother going back if we haven't moved. | 3732 | (if crumbs ;Do bother going back if we haven't moved. |
| 3730 | (Info-find-node Info-current-file onode 'no-going-back)) | 3733 | (Info-find-node Info-current-file onode 'no-going-back)) |
| 3731 | ;; Add bottom node. | 3734 | ;; Add bottom node. |
| @@ -3743,7 +3746,10 @@ the variable `Info-file-list-for-emacs'." | |||
| 3743 | (let ((text | 3746 | (let ((text |
| 3744 | (if (not (equal node "Top")) node | 3747 | (if (not (equal node "Top")) node |
| 3745 | (format "(%s)Top" | 3748 | (format "(%s)Top" |
| 3746 | (file-name-nondirectory Info-current-file))))) | 3749 | (if (stringp Info-current-file) |
| 3750 | (file-name-nondirectory Info-current-file) | ||
| 3751 | ;; Can be `toc', `apropos', or even `history'. | ||
| 3752 | Info-current-file))))) | ||
| 3747 | (insert (if (bolp) "> " " > ") | 3753 | (insert (if (bolp) "> " " > ") |
| 3748 | (cond | 3754 | (cond |
| 3749 | ((null node) "...") | 3755 | ((null node) "...") |