aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2003-03-07 11:34:40 +0000
committerAndreas Schwab <[email protected]>2003-03-07 11:34:40 +0000
commit2fb3c00b46da7a18170dff03df6fbb73dadd7322 (patch)
tree5c8ad091e9e7da99c55833e045f9c7622c362197 /lisp/info.el
parented3757393871333ba0b5ef7185e82f589bc0d7b2 (diff)
(Info-following-node-name): Skip trailing period.
(Info-extract-menu-node-name): Allow period in node name.
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 2b639be152..f96098cb55 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.