1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

(Info-following-node-name): Skip trailing period.

(Info-extract-menu-node-name): Allow period in node name.
This commit is contained in:
Andreas Schwab 2003-03-07 11:34:40 +00:00
parent ed37573938
commit 2fb3c00b46

View 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.