aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-12-13 18:53:37 +0000
committerRichard M. Stallman1994-12-13 18:53:37 +0000
commit6b1e327109cb3593f96dadc115db498b5ffb6c70 (patch)
treef1d48bb778e88c407d68a68752eb2b5e0b0a0d8d
parentf0653de7749c27b8fe6c92c7c72c75ae493b8e73 (diff)
downloademacs-6b1e327109cb3593f96dadc115db498b5ffb6c70.tar.gz
emacs-6b1e327109cb3593f96dadc115db498b5ffb6c70.zip
(Info-tagify): Avoid 1-off error in position of a tag.
-rw-r--r--lisp/informat.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/informat.el b/lisp/informat.el
index 3930378c5df..5a861ed18ba 100644
--- a/lisp/informat.el
+++ b/lisp/informat.el
@@ -48,9 +48,11 @@
48 (case-fold-search t) 48 (case-fold-search t)
49 list) 49 list)
50 (while (search-forward "\n\^_" nil t) 50 (while (search-forward "\n\^_" nil t)
51 (forward-line 1) 51 ;; We want the 0-origin character position of the ^_.
52 (let ((beg (point))) 52 ;; That is the same as the Emacs (1-origin) position
53 (forward-line 1) 53 ;; of the newline before it.
54 (let ((beg (match-beginning 0)))
55 (forward-line 2)
54 (if (re-search-backward regexp beg t) 56 (if (re-search-backward regexp beg t)
55 (setq list 57 (setq list
56 (cons (list (buffer-substring 58 (cons (list (buffer-substring