aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-07-07 20:14:28 +0000
committerStefan Monnier2002-07-07 20:14:28 +0000
commit287360825e6a069702170e38ff64e33846ebdabf (patch)
tree0315c6cada7ff7b76d15ccbe31bc1580d633a01f
parent867357fb211e8b4a18555026d65f4e266d4f2470 (diff)
downloademacs-287360825e6a069702170e38ff64e33846ebdabf.tar.gz
emacs-287360825e6a069702170e38ff64e33846ebdabf.zip
(texinfo-font-lock-keywords): Disable the automatic environment name update.
(texinfo-clone-environment): Fix it not to incorrectly match prefixes.
-rw-r--r--lisp/textmodes/texinfo.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el
index d31bae4a0dd..18d0e614f11 100644
--- a/lisp/textmodes/texinfo.el
+++ b/lisp/textmodes/texinfo.el
@@ -358,8 +358,8 @@ Subexpression 1 is what goes into the corresponding `@end' statement.")
358 ("@\\(anchor\\){\\([^}]+\\)" 2 font-lock-type-face) 358 ("@\\(anchor\\){\\([^}]+\\)" 2 font-lock-type-face)
359 ("@\\(dmn\\|acronym\\|value\\){\\([^}]+\\)" 2 font-lock-builtin-face) 359 ("@\\(dmn\\|acronym\\|value\\){\\([^}]+\\)" 2 font-lock-builtin-face)
360 ("@\\(end\\|itemx?\\) +\\(.+\\)" 2 font-lock-keyword-face keep) 360 ("@\\(end\\|itemx?\\) +\\(.+\\)" 2 font-lock-keyword-face keep)
361 (,texinfo-environment-regexp 361 ;; (,texinfo-environment-regexp
362 1 (texinfo-clone-environment (match-beginning 1) (match-end 1)) keep) 362 ;; 1 (texinfo-clone-environment (match-beginning 1) (match-end 1)) keep)
363 (,(concat "^@" (regexp-opt (mapcar 'car texinfo-section-list) t) 363 (,(concat "^@" (regexp-opt (mapcar 'car texinfo-section-list) t)
364 ".*\n") 0 texinfo-heading-face t)) 364 ".*\n") 0 texinfo-heading-face t))
365 "Additional expressions to highlight in TeXinfo mode.") 365 "Additional expressions to highlight in TeXinfo mode.")
@@ -377,7 +377,8 @@ Subexpression 1 is what goes into the corresponding `@end' statement.")
377 (forward-word 1) 377 (forward-word 1)
378 (texinfo-next-unmatched-end)) 378 (texinfo-next-unmatched-end))
379 (skip-syntax-forward "^w") 379 (skip-syntax-forward "^w")
380 (when (looking-at (regexp-quote (buffer-substring start end))) 380 (when (looking-at
381 (concat (regexp-quote (buffer-substring start end)) "\\>"))
381 (text-clone-create start end 'spread "\\w*"))))))) 382 (text-clone-create start end 'spread "\\w*")))))))
382 383
383(defun texinfo-outline-level () 384(defun texinfo-outline-level ()