aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2011-09-18 23:14:16 +0300
committerJuri Linkov2011-09-18 23:14:16 +0300
commitd18b513ba78f152ca7c45cf04153c6868972e45e (patch)
tree521139fef5a9fe0e1a6d6b78aaed084983a1df1f
parent33ed493bca4647ab949193104d7e49c95c095bc8 (diff)
downloademacs-d18b513ba78f152ca7c45cf04153c6868972e45e.tar.gz
emacs-d18b513ba78f152ca7c45cf04153c6868972e45e.zip
* lisp/info.el (Info-extract-menu-node-name): Check the second match
for empty string (second test-case of bug#9528). (Info-last-preorder): Let-bind `Info-history' to nil to not add intermediate nodes to the history (first test-case of bug#9528).
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/info.el25
2 files changed, 21 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cdcd33877f9..b820fc24d51 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,12 @@
12011-09-18 Juri Linkov <juri@jurta.org> 12011-09-18 Juri Linkov <juri@jurta.org>
2 2
3 * info.el (Info-extract-menu-node-name): Check the second match
4 for empty string (second test-case of bug#9528).
5 (Info-last-preorder): Let-bind `Info-history' to nil to not add
6 intermediate nodes to the history (first test-case of bug#9528).
7
82011-09-18 Juri Linkov <juri@jurta.org>
9
3 * info.el (Info-mode-syntax-table): New variable. 10 * info.el (Info-mode-syntax-table): New variable.
4 (Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'. (Bug#3312) 11 (Info-mode): Set `:syntax-table' to `Info-mode-syntax-table'. (Bug#3312)
5 12
diff --git a/lisp/info.el b/lisp/info.el
index eb45bb0bd2f..e79e4b1195e 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -2440,7 +2440,8 @@ Because of ambiguities, this should be concatenated with something like
2440 ) 2440 )
2441 (replace-regexp-in-string 2441 (replace-regexp-in-string
2442 "[ \n]+" " " 2442 "[ \n]+" " "
2443 (or (match-string-no-properties 2) 2443 (or (and (not (equal (match-string-no-properties 2) ""))
2444 (match-string-no-properties 2))
2444 ;; If the node name is the menu entry name (using `entry::'). 2445 ;; If the node name is the menu entry name (using `entry::').
2445 (buffer-substring-no-properties 2446 (buffer-substring-no-properties
2446 (match-beginning 0) (1- (match-beginning 1))))))) 2447 (match-beginning 0) (1- (match-beginning 1)))))))
@@ -2765,22 +2766,24 @@ N is the digit argument used to invoke this command."
2765 ;; so we can scroll back through it. 2766 ;; so we can scroll back through it.
2766 (goto-char (point-max))) 2767 (goto-char (point-max)))
2767 ;; Keep going down, as long as there are nested menu nodes. 2768 ;; Keep going down, as long as there are nested menu nodes.
2768 (while (Info-no-error 2769 (let (Info-history) ; Don't add intermediate nodes to the history.
2769 (Info-last-menu-item) 2770 (while (Info-no-error
2770 ;; If we go down a menu item, go to the end of the node 2771 (Info-last-menu-item)
2771 ;; so we can scroll back through it. 2772 ;; If we go down a menu item, go to the end of the node
2772 (goto-char (point-max)))) 2773 ;; so we can scroll back through it.
2774 (goto-char (point-max)))))
2773 (recenter -1)) 2775 (recenter -1))
2774 ((and (Info-no-error (Info-extract-pointer "prev")) 2776 ((and (Info-no-error (Info-extract-pointer "prev"))
2775 (not (equal (Info-extract-pointer "up") 2777 (not (equal (Info-extract-pointer "up")
2776 (Info-extract-pointer "prev")))) 2778 (Info-extract-pointer "prev"))))
2777 (Info-no-error (Info-prev)) 2779 (Info-no-error (Info-prev))
2778 (goto-char (point-max)) 2780 (goto-char (point-max))
2779 (while (Info-no-error 2781 (let (Info-history) ; Don't add intermediate nodes to the history.
2780 (Info-last-menu-item) 2782 (while (Info-no-error
2781 ;; If we go down a menu item, go to the end of the node 2783 (Info-last-menu-item)
2782 ;; so we can scroll back through it. 2784 ;; If we go down a menu item, go to the end of the node
2783 (goto-char (point-max)))) 2785 ;; so we can scroll back through it.
2786 (goto-char (point-max)))))
2784 (recenter -1)) 2787 (recenter -1))
2785 ((Info-no-error (Info-up t)) 2788 ((Info-no-error (Info-up t))
2786 (goto-char (point-min)) 2789 (goto-char (point-min))