]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix info mode fontification of built-in (*note Built-ins::)
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Dec 2020 15:07:50 +0000 (16:07 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 9 Dec 2020 15:07:54 +0000 (16:07 +0100)
* lisp/info.el (Info-fontify-node): Don't interpret things like
"built-in" as being the word "in" (bug#34661).

lisp/info.el

index c3684deb96bffadec102566acf214686d1a7188a..203f5db96d2a2498141bc939cbe6663d5f6169f4 100644 (file)
@@ -4790,10 +4790,10 @@ first line or header line, and for breadcrumb links.")
                    ;; an end of sentence
                    (skip-syntax-backward " ("))
                   (setq other-tag
-                       (cond ((save-match-data (looking-back "\\<see"
+                       (cond ((save-match-data (looking-back "\\(^\\| \\)see"
                                                               (- (point) 3)))
                               "")
-                             ((save-match-data (looking-back "\\<in"
+                             ((save-match-data (looking-back "\\(^\\| \\)in"
                                                               (- (point) 2)))
                               "")
                              ((memq (char-before) '(nil ?\. ?! ??))