]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-following-node-name): Skip trailing period.
authorAndreas Schwab <schwab@suse.de>
Fri, 7 Mar 2003 11:34:40 +0000 (11:34 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 7 Mar 2003 11:34:40 +0000 (11:34 +0000)
(Info-extract-menu-node-name): Allow period in node name.

lisp/info.el

index 2b639be15285576835471645dc3495446113a116..f96098cb550cf707eda98a40d18ee12358ac0fe8 100644 (file)
@@ -1352,6 +1352,9 @@ saying which chars may appear in the node name."
        (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 @@ FOOTNOTENAME may be an abbreviation of the reference name."
          (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.