From: Andreas Schwab Date: Fri, 7 Mar 2003 11:34:40 +0000 (+0000) Subject: (Info-following-node-name): Skip trailing period. X-Git-Tag: ttn-vms-21-2-B4~10972 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2fb3c00b46da7a18170dff03df6fbb73dadd7322;p=emacs.git (Info-following-node-name): Skip trailing period. (Info-extract-menu-node-name): Allow period in node name. --- diff --git a/lisp/info.el b/lisp/info.el index 2b639be1528..f96098cb550 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -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.