summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog83
-rw-r--r--lisp/textmodes/tex-mode.el18
2 files changed, 54 insertions, 47 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 522cb2237c2..e775287018a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-15 Andreas Schwab <schwab@suse.de>
+
+ * textmodes/tex-mode.el (tex-font-lock-keywords-2): Require
+ non-letter after specials.
+
2002-02-12 Eli Zaretskii <eliz@is.elta.co.il>
* window.el (save-selected-window): If the saved window has
@@ -26,7 +31,7 @@
version of rmail-enable-mime.
(rmail-forward): Use it.
-2002-02-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2002-02-06 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* textmodes/sgml-mode.el (sgml-start-tag-regex)
(sgml-font-lock-keywords-1, sgml-mode-common): Allow underscore,
@@ -74,7 +79,7 @@
looking for X-Coding-System header, and restore the pruned state
before returning.
-2002-02-02 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2002-02-02 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* cus-edit.el (customize-save-variable): Fix typo in prompt.
@@ -92,7 +97,7 @@
* hi-lock.el (hi-lock-find-patterns): Save restriction.
-2002-01-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2002-01-29 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* tmm.el (tmm-get-keymap): Honour :visible in `menu-item'.
Add Keywords header. Update Commentary section.
@@ -687,7 +692,7 @@
* pcvs-util.el (cvs-prefix-define): Typo cons->concat.
-2001-10-03 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-10-03 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* emulation/tpu-edt.el: Make messages match original TPU/edt
editor. From riepel@Stanford.EDU (Rob Riepel).
@@ -1073,7 +1078,7 @@
* comint.el (comint-send-input): Handle comint-process-echoes
differently.
-2001-09-07 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-09-07 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* locate.el (locate-insert-header): Remove unnecessary whitespace.
@@ -1184,7 +1189,7 @@
* menu-bar.el (menu-bar-edit-menu) <yank-menu, yank>:
Mention "yank" in the help-echo text.
- Suggested by Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ Suggested by Pavel Jan,Am(Bk <Pavel@Janik.cz>.
2001-09-01 Stefan Monnier <monnier@cs.yale.edu>
@@ -1244,7 +1249,7 @@
* startup.el (fancy-splash-screens): Temporarily set
minor-mode-map-alist to nil while displaying splash screens.
-2001-08-29 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-08-29 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* buff-menu.el: Add Keywords header.
Doc fix (C-x C-b is bound to list-buffers).
@@ -1328,19 +1333,19 @@
2001-08-26 Eli Zaretskii <eliz@is.elta.co.il>
* textmodes/texnfo-upd.el: Remove dots and exclams at end of error
- messages. From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ messages. From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
* emacs-lisp/levents.el: Specify FSF as Maintainer. From Pavel
- Jan,Bm(Bk <Pavel@Janik.cz>.
+ Jan,Am(Bk <Pavel@Janik.cz>.
* emacs-lisp/lselect.el: Ditto.
* hexl.el (hexl-insert-multibyte-char, hexl-insert-char):
Remove periods from the end of error message strings.
- From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
* progmodes/antlr-mode.el: Add Keywords header. From Pavel
- Jan,Bm(Bk <Pavel@Janik.cz>.
+ Jan,Am(Bk <Pavel@Janik.cz>.
* net/telnet.el: Ditto.
@@ -1460,7 +1465,7 @@
2001-08-20 Gerd Moellmann <gerd@gnu.org>
* textmodes/texnfo-upd.el (texinfo-every-node-update): Remove
- some spaces from a message. From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ some spaces from a message. From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
* whitespace.el (whitespace-global-mode): Add autoload cookie.
@@ -1634,7 +1639,7 @@
text files.
(image-jpeg-p): Correct calculation of next field offset.
-2001-08-08 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-08-08 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* battery.el: Fix typo.
@@ -1671,7 +1676,7 @@
* image.el (image-type-regexps): Use `\`' instead of `^' in
most regular expressions.
-2001-08-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-08-06 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* play/animate.el: Re-insert a reference to re-inserted function.
@@ -1685,7 +1690,7 @@
* toolbar/tool-bar.el (tool-bar-add-item-from-menu):
Handle old-style menu definitions.
-2001-08-06 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-08-06 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* textmodes/makeinfo.el, textmodes/page-ext.el, textmodes/page.el,
* textmodes/text-mode.el, textmodes/two-column.el: Keywords added.
@@ -1694,7 +1699,7 @@
* emulation/pc-mode.el, diff.el, textmodes/fill.el, abbrev.el,
* add-log.el, faces.el, mail/sc.el: Specify FSF as Maintainer.
-2001-08-05 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-08-05 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* textmodes/tildify.el: Milan Zamazal has new address.
@@ -2032,7 +2037,7 @@
* mail/mh-utils.el (mh-find-progs): Also search in `lib'.
From Mats Bengtsson <mats.bengtsson@s3.kth.se>,
-2001-07-17 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-17 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* international/iso-transl.el: Fix typo in the header of the file.
@@ -2064,7 +2069,7 @@
* server.el (server-process-filter, server-visit-files):
Add support for +LINE:COLUMN style emacsclient calls.
-2001-07-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-16 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* emacs-lisp/easy-mmode.el: Add Keywords header.
@@ -2117,7 +2122,7 @@
* progmodes/ada-xref.el (ada-xref-initialize): Fix call to add-hook.
-2001-07-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-16 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* ps-print.el: Fix Author: header.
@@ -2130,7 +2135,7 @@
send-invisible, which is already defined in Comint.
(eshell-watch-for-password-prompt): Use it.
-2001-07-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-16 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* which-func.el (which-func-mode): Doc fix.
@@ -2189,7 +2194,7 @@
* simple.el (set-variable): Require 'cus-edit' instead of
`wid-edit', so that the Custom widgets get defined.
-2001-07-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-16 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* allout.el: A fix to follow coding conventions.
@@ -2215,7 +2220,7 @@
* dired.el (dired-insert-set-properties): Fix invalid mouse-face
property.
-2001-07-16 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-16 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* play/5x5.el, play/decipher.el, play/dunnet.el, play/fortune.el,
* play/gamegrid.el, play/handwrite.el, play/landmark.el,
@@ -2237,7 +2242,7 @@
* mail/reporter.el (reporter-submit-bug-report):
Don't abuse make-variable-buffer-local. Fix call to add-hook.
-2001-07-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-15 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* calendar/cal-china.el, calendar/cal-coptic.el,
* calendar/cal-dst.el, calendar/cal-french.el,
@@ -2364,7 +2369,7 @@
* vt100-led.el, window.el: Some fixes to follow coding conventions in
files maintained by FSF.
-2001-07-13 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-13 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* arc-mode.el: A fix to follow coding conventions.
@@ -2395,7 +2400,7 @@
* play/fortune.el: Add types to defcustoms.
-2001-07-12 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+2001-07-12 Pavel Jan,Am(Bk <Pavel@Janik.cz>
* language/czech.el: A fix to follow coding conventions.
@@ -2424,7 +2429,7 @@
2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
* progmodes/ada-prj.el: Say that the file _is_ part of Emacs.
- From Pavel Jan,Bm(Bk <Pavel@Janik.cz>
+ From Pavel Jan,Am(Bk <Pavel@Janik.cz>
* progmodes/ada-mode.el: Ditto.
@@ -2532,10 +2537,10 @@
* calendar/todo-mode.el (todo-top-priorities): Use delete-region
instead of kill-line.
- * play/pong.el: Fix first line. From Pavel Jan,Bm(Bk
+ * play/pong.el: Fix first line. From Pavel Jan,Am(Bk
<Pavel@Janik.cz>.
- * battery.el (battery-update): Add help-echo. From Pavel Jan,Bm(Bk
+ * battery.el (battery-update): Add help-echo. From Pavel Jan,Am(Bk
<Pavel@Janik.cz>.
2001-07-04 Gerd Moellmann <gerd@gnu.org>
@@ -2573,10 +2578,10 @@
2001-07-02 Eli Zaretskii <eliz@is.elta.co.il>
* allout.el: Fix the header line, so that finder.el recognizes it.
- From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
* emacs-lisp/lisp-mnt.el (lm-header-prefix): Doc fix.
- From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
2001-06-29 Eli Zaretskii <eliz@is.elta.co.il>
@@ -2886,7 +2891,7 @@
2001-06-10 Eli Zaretskii <eliz@is.elta.co.il>
* server.el (server-process, server-buffer-clients): Doc fix.
- From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
2001-06-09 John Wiegley <johnw@gnu.org>
@@ -3144,16 +3149,16 @@
2001-05-20 Eli Zaretskii <eliz@is.elta.co.il>
* international/ccl.el (define-ccl-program): Fix a typo.
- From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
* international/mule.el (decode-char): Fix a typo. From Pavel
- Jan,Bm(Bk <Pavel@Janik.cz>.
+ Jan,Am(Bk <Pavel@Janik.cz>.
* textmodes/artist.el (artist-mode): Fix a typo. From Pavel
- Jan,Bm(Bk <Pavel@Janik.cz>.
+ Jan,Am(Bk <Pavel@Janik.cz>.
* frame.el (automatic-hscrolling): Fix a typo. From Pavel
- Jan,Bm(Bk <Pavel@Janik.cz>.
+ Jan,Am(Bk <Pavel@Janik.cz>.
2001-05-18 Sam Steingold <sds@gnu.org>
@@ -3385,7 +3390,7 @@
coding-system-for-read, if it is non-nil.
* calendar/holidays.el (holidays): Add an autoload cookie.
- From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
+ From Pavel Jan,Am(Bk <Pavel@Janik.cz>.
2001-05-08 John Wiegley <johnw@gnu.org>
@@ -4083,10 +4088,10 @@
Add an antry for ``converts''.
* language/slovak.el ("Slovak"): Add documentation string.
- From Pavel@Janik.cz (Pavel Jan,Bm(Bk ml.).
+ From Pavel@Janik.cz (Pavel Jan,Am(Bk ml.).
* language/czech.el ("Czech"): Add documentation string.
- From Pavel@Janik.cz (Pavel Jan,Bm(Bk ml.).
+ From Pavel@Janik.cz (Pavel Jan,Am(Bk ml.).
* ps-mule.el (ps-mule-font-info-database-bdf): Change `isci24-etl.bdf'
to `isci24-mule.bdf'. From: Kenichi Handa <handa@etl.go.jp>.
@@ -4797,7 +4802,7 @@
2001-03-15 Gerd Moellmann <gerd@gnu.org>
* textmodes/ispell.el (ispell-dictionary-alist-6): Add support
- for Slovak. From Pavel.Janik@suse.cz (Pavel Jan,Bm(Bk ml.).
+ for Slovak. From Pavel.Janik@suse.cz (Pavel Jan,Am(Bk ml.).
2001-03-14 Gerd Moellmann <gerd@gnu.org>
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 07dcee289b2..465cb98c047 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1,6 +1,6 @@
;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands
-;; Copyright (C) 1985, 86, 89, 92, 94, 95, 96, 97, 98, 1999
+;; Copyright (C) 1985, 86, 89, 92, 94, 95, 96, 97, 98, 1999, 2002
;; Free Software Foundation, Inc.
;; Maintainer: FSF
@@ -497,12 +497,12 @@ An alternative value is \" . \", if you use a font with a narrow period."
t))
;;
;; Names of commands that should be fontified.
- (specials (regexp-opt
- '("\\" "\\*" ;; "-"
- "linebreak" "nolinebreak" "pagebreak" "nopagebreak"
- "newline" "newpage" "clearpage" "cleardoublepage"
- "displaybreak" "allowdisplaybreaks" "enlargethispage")
- t))
+ (specials-1 (regexp-opt '("\\" "\\*") t)) ;; "-"
+ (specials-2 (regexp-opt
+ '("linebreak" "nolinebreak" "pagebreak" "nopagebreak"
+ "newline" "newpage" "clearpage" "cleardoublepage"
+ "displaybreak" "allowdisplaybreaks"
+ "enlargethispage") t))
(general "\\([a-zA-Z@]+\\**\\|[^ \t\n]\\)")
;;
;; Miscellany.
@@ -521,7 +521,9 @@ An alternative value is \" . \", if you use a font with a narrow period."
'font-lock-string-face)
;;
;; Command names, special and general.
- (cons (concat slash specials) 'font-lock-warning-face)
+ (cons (concat slash specials-1) 'font-lock-warning-face)
+ (list (concat "\\(" slash specials-2 "\\)\\([^a-zA-Z@]\\|\\'\\)")
+ 1 'font-lock-warning-face)
(concat slash general)
;;
;; Font environments. It seems a bit dubious to use `bold' etc. faces