diff options
| author | Juri Linkov | 2011-09-20 19:28:07 +0300 |
|---|---|---|
| committer | Juri Linkov | 2011-09-20 19:28:07 +0300 |
| commit | 5147931d624ce62d2382398859a06fa1f334fd56 (patch) | |
| tree | 7089a400197a796b216ad11af599de4aaf1c6ec3 /lisp | |
| parent | cf499a1a42695fb0ce3aee0b1e6b48a3078ddca3 (diff) | |
| download | emacs-5147931d624ce62d2382398859a06fa1f334fd56.tar.gz emacs-5147931d624ce62d2382398859a06fa1f334fd56.zip | |
* lisp/info.el (Info-last-preorder): Visit last menu item only when
`Info-scroll-prefer-subnodes' is non-nil (third test-case of bug#9528).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/info.el | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a1289fb7750..7e0da8727e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-09-20 Juri Linkov <juri@jurta.org> | ||
| 2 | |||
| 3 | * info.el (Info-last-preorder): Visit last menu item only when | ||
| 4 | `Info-scroll-prefer-subnodes' is non-nil (third test-case of bug#9528). | ||
| 5 | |||
| 1 | 2011-09-20 Julien Danjou <julien@danjou.info> | 6 | 2011-09-20 Julien Danjou <julien@danjou.info> |
| 2 | 7 | ||
| 3 | * password-cache.el (password-cache-remove): Remove entries even if the | 8 | * password-cache.el (password-cache-remove): Remove entries even if the |
diff --git a/lisp/info.el b/lisp/info.el index e79e4b1195e..3fa35bb4d03 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -2760,11 +2760,12 @@ N is the digit argument used to invoke this command." | |||
| 2760 | (defun Info-last-preorder () | 2760 | (defun Info-last-preorder () |
| 2761 | "Go to the last node, popping up a level if there is none." | 2761 | "Go to the last node, popping up a level if there is none." |
| 2762 | (interactive) | 2762 | (interactive) |
| 2763 | (cond ((Info-no-error | 2763 | (cond ((and Info-scroll-prefer-subnodes |
| 2764 | (Info-last-menu-item) | 2764 | (Info-no-error |
| 2765 | ;; If we go down a menu item, go to the end of the node | 2765 | (Info-last-menu-item) |
| 2766 | ;; so we can scroll back through it. | 2766 | ;; If we go down a menu item, go to the end of the node |
| 2767 | (goto-char (point-max))) | 2767 | ;; so we can scroll back through it. |
| 2768 | (goto-char (point-max)))) | ||
| 2768 | ;; Keep going down, as long as there are nested menu nodes. | 2769 | ;; Keep going down, as long as there are nested menu nodes. |
| 2769 | (let (Info-history) ; Don't add intermediate nodes to the history. | 2770 | (let (Info-history) ; Don't add intermediate nodes to the history. |
| 2770 | (while (Info-no-error | 2771 | (while (Info-no-error |