Mercurial > emacs
changeset 46216:00a9017b1365
(texinfo-font-lock-keywords): Disable the automatic environment name update.
(texinfo-clone-environment): Fix it not to incorrectly match prefixes.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 07 Jul 2002 20:14:28 +0000 |
parents | 0695dbe46ee5 |
children | 4a0f567d3c5f |
files | lisp/textmodes/texinfo.el |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/textmodes/texinfo.el Sun Jul 07 19:50:56 2002 +0000 +++ b/lisp/textmodes/texinfo.el Sun Jul 07 20:14:28 2002 +0000 @@ -358,8 +358,8 @@ ("@\\(anchor\\){\\([^}]+\\)" 2 font-lock-type-face) ("@\\(dmn\\|acronym\\|value\\){\\([^}]+\\)" 2 font-lock-builtin-face) ("@\\(end\\|itemx?\\) +\\(.+\\)" 2 font-lock-keyword-face keep) - (,texinfo-environment-regexp - 1 (texinfo-clone-environment (match-beginning 1) (match-end 1)) keep) + ;; (,texinfo-environment-regexp + ;; 1 (texinfo-clone-environment (match-beginning 1) (match-end 1)) keep) (,(concat "^@" (regexp-opt (mapcar 'car texinfo-section-list) t) ".*\n") 0 texinfo-heading-face t)) "Additional expressions to highlight in TeXinfo mode.") @@ -377,7 +377,8 @@ (forward-word 1) (texinfo-next-unmatched-end)) (skip-syntax-forward "^w") - (when (looking-at (regexp-quote (buffer-substring start end))) + (when (looking-at + (concat (regexp-quote (buffer-substring start end)) "\\>")) (text-clone-create start end 'spread "\\w*"))))))) (defun texinfo-outline-level ()