]> git.eshelyaron.com Git - emacs.git/commitdiff
Re-fix previous Info-fontify-node change
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 11 Mar 2021 16:50:02 +0000 (17:50 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 11 Mar 2021 16:50:02 +0000 (17:50 +0100)
* lisp/info.el (Info-fontify-node): Re-fix previous fix here
(bug#34661) by fixing an off-by-one error in the `looking-back'.

lisp/info.el

index e7324efa2f9ecba92546276194058e73ef4da812..dd7e16f870436b8f3c0fb812bf91ba15b09659ab 100644 (file)
@@ -4797,10 +4797,10 @@ first line or header line, and for breadcrumb links.")
                    (skip-syntax-backward " ("))
                   (setq other-tag
                        (cond ((save-match-data (looking-back "\\(^\\| \\)see"
-                                                              (- (point) 3)))
+                                                              (- (point) 4)))
                               "")
                              ((save-match-data (looking-back "\\(^\\| \\)in"
-                                                              (- (point) 2)))
+                                                              (- (point) 3)))
                               "")
                              ((memq (char-before) '(nil ?\. ?! ??))
                                "See ")