aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2003-03-07 11:34:40 +0000
committerAndreas Schwab2003-03-07 11:34:40 +0000
commit2fb3c00b46da7a18170dff03df6fbb73dadd7322 (patch)
tree5c8ad091e9e7da99c55833e045f9c7622c362197
parented3757393871333ba0b5ef7185e82f589bc0d7b2 (diff)
downloademacs-2fb3c00b46da7a18170dff03df6fbb73dadd7322.tar.gz
emacs-2fb3c00b46da7a18170dff03df6fbb73dadd7322.zip
(Info-following-node-name): Skip trailing period.
(Info-extract-menu-node-name): Allow period in node name.
-rw-r--r--lisp/info.el5
1 files changed, 4 insertions, 1 deletions
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."
1352 (if (looking-at "(") 1352 (if (looking-at "(")
1353 (skip-chars-forward "^)"))) 1353 (skip-chars-forward "^)")))
1354 (skip-chars-backward " ") 1354 (skip-chars-backward " ")
1355 ;; Skip trailing period.
1356 (if (equal (char-before) ?.)
1357 (forward-char -1))
1355 (point)))) 1358 (point))))
1356 1359
1357(defun Info-next () 1360(defun Info-next ()
@@ -1493,7 +1496,7 @@ FOOTNOTENAME may be an abbreviation of the reference name."
1493 (if (looking-at ":") 1496 (if (looking-at ":")
1494 (buffer-substring-no-properties beg (1- (point))) 1497 (buffer-substring-no-properties beg (1- (point)))
1495 (skip-chars-forward " \t\n") 1498 (skip-chars-forward " \t\n")
1496 (Info-following-node-name (if multi-line "^.,\t" "^.,\t\n")))) 1499 (Info-following-node-name (if multi-line "^,\t" "^,\t\n"))))
1497 (replace-regexp-in-string "[ \n]+" " " str))) 1500 (replace-regexp-in-string "[ \n]+" " " str)))
1498 1501
1499;; No one calls this. 1502;; No one calls this.