aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2005-11-23 17:57:46 +0000
committerChong Yidong2005-11-23 17:57:46 +0000
commit98b37eab5d4dc8efb5be6d8ccce43785059ed82b (patch)
tree149772e8b5fb595756e0f9df54eaf6dcff644442
parent9c03d4785841ccfddedbf59bd56c790f8c6c1e5a (diff)
downloademacs-98b37eab5d4dc8efb5be6d8ccce43785059ed82b.tar.gz
emacs-98b37eab5d4dc8efb5be6d8ccce43785059ed82b.zip
* info.el (Info-fontify-node): Handle the case where
Info-current-file is t.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info.el27
2 files changed, 24 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8d21025acd2..4d4cf40ebc7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12005-11-23 Chong Yidong <cyd@stupidchicken.com>
2
3 * info.el (Info-fontify-node): Handle the case where
4 Info-current-file is t.
5
12005-11-23 Stefan Monnier <monnier@iro.umontreal.ca> 62005-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * simple.el (blink-matching-open): Fix off-by-one in last change. 8 * simple.el (blink-matching-open): Fix off-by-one in last change.
diff --git a/lisp/info.el b/lisp/info.el
index 84c83bd419b..48e933711cf 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -3805,7 +3805,10 @@ the variable `Info-file-list-for-emacs'."
3805 (match-string 4)) 3805 (match-string 4))
3806 (match-string 2))))) 3806 (match-string 2)))))
3807 (file (file-name-nondirectory 3807 (file (file-name-nondirectory
3808 Info-current-file)) 3808 (if Info-current-file
3809 (if (stringp Info-current-file)
3810 Info-current-file
3811 (buffer-file-name)))))
3809 (hl Info-history-list) 3812 (hl Info-history-list)
3810 res) 3813 res)
3811 (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node) 3814 (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node)
@@ -3816,9 +3819,11 @@ the variable `Info-file-list-for-emacs'."
3816 (match-string 2 node)))) 3819 (match-string 2 node))))
3817 (while hl 3820 (while hl
3818 (if (and (string-equal node (nth 1 (car hl))) 3821 (if (and (string-equal node (nth 1 (car hl)))
3819 (string-equal file 3822 (or (and (eq t Info-current-file)
3820 (file-name-nondirectory 3823 (eq t (nth 0 (car hl))))
3821 (nth 0 (car hl))))) 3824 (string-equal file
3825 (file-name-nondirectory
3826 (nth 0 (car hl))))))
3822 (setq res (car hl) hl nil) 3827 (setq res (car hl) hl nil)
3823 (setq hl (cdr hl)))) 3828 (setq hl (cdr hl))))
3824 res))) 'info-xref-visited 'info-xref)) 3829 res))) 'info-xref-visited 'info-xref))
@@ -3913,7 +3918,11 @@ the variable `Info-file-list-for-emacs'."
3913 (let ((node (if (equal (match-string 3) "") 3918 (let ((node (if (equal (match-string 3) "")
3914 (match-string 1) 3919 (match-string 1)
3915 (match-string 3))) 3920 (match-string 3)))
3916 (file (file-name-nondirectory Info-current-file)) 3921 (file (file-name-nondirectory
3922 (if Info-current-file
3923 (if (stringp Info-current-file)
3924 Info-current-file
3925 (buffer-file-name)))))
3917 (hl Info-history-list) 3926 (hl Info-history-list)
3918 res) 3927 res)
3919 (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node) 3928 (if (string-match "(\\([^)]+\\))\\([^)]*\\)" node)
@@ -3924,9 +3933,11 @@ the variable `Info-file-list-for-emacs'."
3924 (match-string 2 node)))) 3933 (match-string 2 node))))
3925 (while hl 3934 (while hl
3926 (if (and (string-equal node (nth 1 (car hl))) 3935 (if (and (string-equal node (nth 1 (car hl)))
3927 (string-equal file 3936 (or (and (eq t Info-current-file)
3928 (file-name-nondirectory 3937 (eq t (nth 0 (car hl))))
3929 (nth 0 (car hl))))) 3938 (string-equal file
3939 (file-name-nondirectory
3940 (nth 0 (car hl))))))
3930 (setq res (car hl) hl nil) 3941 (setq res (car hl) hl nil)
3931 (setq hl (cdr hl)))) 3942 (setq hl (cdr hl))))
3932 res))) 'info-xref-visited 'info-xref))) 3943 res))) 'info-xref-visited 'info-xref)))