changeset 50052:69409ac4ac20

(Info-following-node-name): Skip trailing period. (Info-extract-menu-node-name): Allow period in node name.
author Andreas Schwab <schwab@suse.de>
date Fri, 07 Mar 2003 11:34:40 +0000
parents 7563bb4f1f97
children b0e77003c980
files lisp/info.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/info.el	Fri Mar 07 09:10:09 2003 +0000
+++ b/lisp/info.el	Fri Mar 07 11:34:40 2003 +0000
@@ -1352,6 +1352,9 @@
        (if (looking-at "(")
 	   (skip-chars-forward "^)")))
      (skip-chars-backward " ")
+     ;; Skip trailing period.
+     (if (equal (char-before) ?.)
+	 (forward-char -1))
      (point))))
 
 (defun Info-next ()
@@ -1493,7 +1496,7 @@
 	  (if (looking-at ":")
 	      (buffer-substring-no-properties beg (1- (point)))
 	    (skip-chars-forward " \t\n")
-	    (Info-following-node-name (if multi-line "^.,\t" "^.,\t\n"))))
+	    (Info-following-node-name (if multi-line "^,\t" "^,\t\n"))))
     (replace-regexp-in-string "[ \n]+" " " str)))
 
 ;; No one calls this.