1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00
Commit Graph

229 Commits

Author SHA1 Message Date
Stefan Monnier
7ae3cc71e1 (font-lock-fontify-syntactically-region):
Don't forget to highlight the last char when we hit `end'.
2004-11-12 00:00:59 +00:00
Stefan Monnier
a5f48305f1 (font-lock-apply-highlight): Fix last change. 2004-10-11 14:56:50 +00:00
Stefan Monnier
6b7f34912c (font-lock-apply-highlight): Explicitly check the case
where the face expression evals to nil.
2004-10-10 01:54:12 +00:00
Richard M. Stallman
7ea820e985 (font-lock-set-defaults): Use with-no-warnings. 2004-08-22 16:53:44 +00:00
Stefan Monnier
f9c0bc2e73 (font-lock-keywords): Docstring improvement. 2004-07-27 18:45:41 +00:00
Richard M. Stallman
5ac714934d (font-lock-add-keywords, font-lock-remove-keywords):
Compile font-lock-keywords, not KEYWORDS.
(lisp-font-lock-keywords-2): Add multiple-value-prog1, go.
Add warn, check-type.  Handle cerror like error.
2004-07-17 14:30:33 +00:00
Richard M. Stallman
0715d1a4a8 (font-lock-fontify-syntactic-keywords-region):
More changes to go with previous change.
2004-06-28 02:45:01 +00:00
Richard M. Stallman
e2850f3f85 (font-lock-set-defaults): Fix previous change. 2004-06-24 23:30:50 +00:00
Richard M. Stallman
69968400c3 (font-lock-keywords): Change format of compiled values. Document it.
(font-lock-add-keywords): If font-lock-keywords is compiled,
extract the uncompiled version, modify, then recompile.
(font-lock-remove-keywords): Likewise.
(font-lock-fontify-keywords-region): Handle changed format.
(font-lock-compile-keywords): Handle changed format.
(font-lock-set-defaults): Compile the keywords explicitly here.
2004-06-24 20:29:41 +00:00
Richard M. Stallman
5af26250be (lisp-font-lock-keywords-2): Add multiple-value-bind. 2004-05-30 13:33:03 +00:00
Juanma Barranquero
c9341aa0fb (font-lock-preprocessor-face): Remove spurious quote.
(font-lock-warning-face): Fix spacing.
2004-04-21 21:00:33 +00:00
Juri Linkov
894325b1ef * font-lock.el (fast-lock, lazy-lock): Remove links to removed
Support Modes Info node.
2004-03-25 10:44:30 +00:00
Richard M. Stallman
e6bdd6abe3 (lisp-font-lock-keywords-2):
Turn off the CL with-... and do-... general patterns.
Instead, recognize several specific with... and do... constructs.
2004-03-04 16:52:00 +00:00
Eli Zaretskii
97cc3d15d4 Fix copyright years. 2004-02-27 17:30:23 +00:00
Eli Zaretskii
a12d182ade (font-lock-comment-face, font-lock-string-face,
font-lock-keyword-face, font-lock-function-name-face,
font-lock-variable-name-face, font-lock-constant-face): Use
`min-colors`.
2004-02-27 17:01:55 +00:00
Stefan Monnier
6497a8f888 (font-lock): Add jit-lock as explicit group member.
(jit-lock): Group declaration moved to jit-lock.el.
(toplevel): Don't explicitly require jit-lock, since it's autoloaded
when necessary.
2004-01-26 23:06:20 +00:00
Richard M. Stallman
14e2791a5a (font-lock-after-change-function): Bind inhibit-quit. 2003-12-29 19:16:05 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
1fed50c4b4 (font-lock-extra-types-widget)
(c-font-lock-extra-types, c++-font-lock-extra-types)
(objc-font-lock-extra-types, java-font-lock-extra-types)
(c-font-lock-keywords-1, c-font-lock-keywords-2, c-font-lock-keywords)
(c-font-lock-keywords-3, c-font-lock-syntactic-face-function)
(font-lock-match-c++-style-declaration-item-and-skip-to-next)
(font-lock-match-c++-structor-declaration)
(c++-font-lock-keywords-1, c++-font-lock-keywords-2)
(c++-font-lock-keywords-3, c++-font-lock-keywords)
(objc-font-lock-keywords-1, objc-font-lock-keywords-2)
(objc-font-lock-keywords-3, objc-font-lock-keywords)
(java-font-lock-keywords-1, java-font-lock-keywords-2)
(java-font-lock-keywords-3, java-font-lock-keywords)
(java-font-lock-syntactic-face-function): Remove obsolete code
and constants.  It's all in cc-fonts.el now.
2003-07-04 18:29:49 +00:00
Stefan Monnier
f8115798d7 (font-lock-multiline, font-lock-fontified)
(font-lock-set-defaults): Move back from font-core.el and merge
it back with font-lock-set-defaults-1.
(font-lock-mode-internal): New function (basically the body of
the old font-lock-mode minor mode).
2003-04-14 23:07:39 +00:00
Stefan Monnier
d654cab8f8 (font-lock-preprocessor-face): New var and face. 2003-04-14 15:04:16 +00:00
Juanma Barranquero
9087b27168 (font-lock-reference-face): Add obsolescence declaration and remove redundant
info from docstring.
2003-02-05 23:09:58 +00:00
Andreas Schwab
4cac2fc3fa (font-lock-match-c-style-declaration-item-and-skip-to-next):
Don't require underscore in word before double open-paren.
2003-02-02 17:31:49 +00:00
John Paul Wallington
e2cd29bdb4 * font-lock.el (lisp-font-lock-keywords-1): Match `deftheme'.
* emacs-lisp/lisp-mode.el (toplevel): Define docstring offset for
`deftheme'.  Fix docstring offsets for `define-ibuffer-filter' and
`define-ibuffer-sorter'.
(lisp-imenu-generic-expression): Add `deftheme' to types.

* custom.el (customize-mark-to-save, customize-mark-as-set)
(custom-remove-theme): Doc fixes.
2003-01-29 21:45:56 +00:00
Richard M. Stallman
0179b84651 (c++-font-lock-extra-types): Fix previous change. 2002-12-02 16:17:29 +00:00
Richard M. Stallman
633d0ba56a (c++-font-lock-extra-types): Add various STL classes. 2002-11-24 18:59:48 +00:00
Richard M. Stallman
fa9a2537ae (c++-font-lock-keywords...): Add `restrict' keyword. 2002-10-26 22:36:09 +00:00
Stefan Monnier
7f0d55f29e (fast-lock-mode, lazy-lock-mode, jit-lock-mode): Don't bind them variables.
(font-lock-turn-off-thing-lock, font-lock-after-fontify-buffer)
(font-lock-after-unfontify-buffer): Check that the vars are bound.
(font-lock-dont-widen): New var.
(font-lock-default-fontify-region): Use it.
2002-09-25 19:34:07 +00:00
Juanma Barranquero
8c2d6a44a2 (font-lock-add-keywords): Fix typo. 2002-08-30 11:01:07 +00:00
Stefan Monnier
4c02ca4625 (font-lock-default-unfontify-region): Use remove-list-of-text-properties.
(font-lock-extra-managed-props): Doc fix.
2002-07-08 01:30:44 +00:00
Richard M. Stallman
fc896a928c (font-lock-beginning-of-syntax-function): Doc fix. 2002-06-12 12:16:08 +00:00
Colin Walters
93e5c2b583 (font-lock-set-defaults-1): Set variable alist here. 2002-06-12 04:54:41 +00:00
Colin Walters
e9476ca8e2 (font-lock-set-defaults-1): Variable alist is now set in
`font-lock-set-defaults'.
2002-06-09 00:40:25 +00:00
Colin Walters
53785d2b31 (font-lock-defaults, font-lock-defaults-alist)
(font-lock-multiline, font-lock-fontified, font-lock-mode)
(turn-on-font-lock, font-lock-add-keywords, global-font-lock-mode)
(font-lock-global-modes): Moved to font-core.el.
(font-lock-set-defaults-1): Partially moved to font-core.el.
2002-05-21 21:01:35 +00:00
Eli Zaretskii
886c13f11c (save-buffer-state): Fix last change. 2002-03-30 08:08:54 +00:00
Eli Zaretskii
7b7a23f49b (save-buffer-state): Use make-symbol to bind `modified'. 2002-03-29 13:31:19 +00:00
Pavel Janík
b3f1e48a47 (java-font-lock-extra-types): Add "URL" as separate item. Doc fix. 2002-03-11 13:39:02 +00:00
Gerd Moellmann
6c4bb7f652 (lisp-font-lock-keywords-2): Highlight keywords of
the form `:x'.
2002-03-06 16:58:35 +00:00
Stefan Monnier
8e12e2759c Doc fix. 2002-03-05 19:00:35 +00:00
Richard M. Stallman
a7b93e4cd9 (java-font-lock-extra-types): Match java.net.URL, etc. 2002-03-01 00:31:26 +00:00
Stefan Monnier
ba46000855 (save-buffer-state): Use restore-buffer-modified-p.
(c-font-lock-syntactic-face-function): Accept doxygen-style comments.
2002-02-08 16:50:05 +00:00
Richard M. Stallman
0cccb49d7a (initializing from font-lock-face-attributes):
Use :weight and :slant, not :bold and :italic.
(various face definitions): Likewise.
2001-12-31 20:16:46 +00:00
Richard M. Stallman
9dd481237a (font-lock-mode): Put our function at the end of after-change-functions. 2001-12-11 06:05:12 +00:00
Stefan Monnier
47fc2db3eb (font-lock-cache-state, font-lock-cache-position)
(font-lock-ppss-stats, font-lock-ppss): Remove.
(font-lock-fontify-syntactically-region): Remove tuning code.
(font-lock-compile-keywords): Fix off-by-one bug.
(font-lock-set-defaults): Don't set removed vars.
(c-keywords): Add `inline'.
(c-type-names): Add `_Complex', `_Imaginary' and `_Bool'.
2001-11-25 22:01:15 +00:00
Stefan Monnier
2d5eba0eb7 (font-lock-compile-keywords): New arg `regexp'.
If set and if applicable, add a regexp to highlight defun-like
text inside comments and strings.
(font-lock-fontify-keywords-region): Pass that new arg.
(font-lock-set-defaults): Move the code to set `font-lock-keywords'
to the end and pass that new arg.
(c-font-lock-keywords-2): Fix regex for labels.
(font-lock-match-c++-style-declaration-item-and-skip-to-next):
Make it work when LIMIT is several lines further.
(c-font-lock-keywords-3, c++-font-lock-keywords-3)
(objc-font-lock-keywords-3, java-font-lock-keywords-3):
Use backquote and make the regexes for `int a, b, c;' work on
multiple lines.
2001-11-18 02:10:01 +00:00
Stefan Monnier
c1966bb444 (font-lock-match-c-style-declaration-item-and-skip-to-next):
Also work when LIMIT is further than the end of line.
2001-11-06 17:01:58 +00:00
Stefan Monnier
9aa4040191 (java-font-lock-syntactic-face-function): New fun.
(font-lock-defaults-alist): Use it.  From David Ponce <david.ponce@wanadoo.fr>
2001-10-31 02:54:06 +00:00
Stefan Monnier
8259bf101d Require `syntax'.
(font-lock-defaults-alist): Don't define keywords for lisp languages.
Use `c-font-lock-syntactic-face-function' for c languages.
(font-lock-mode): Don't unset vars when turning the mode off.
(font-lock-default-fontify-buffer): Don't unset vars at the end.
(font-lock-extra-managed-props): New var.
(font-lock-default-unfontify-region): Use it.
(font-lock-apply-syntactic-highlight): Flush the syntax cache.
Don't eval the value when there's no match.
(font-lock-ppss-stats): New var.
(font-lock-ppss): New fun.
(font-lock-fontify-syntactically-region): Use it and syntax.ppss.
(font-lock-apply-highlight): Allow `highlight' to set several props.
(font-lock-set-defaults): Use dolist.
(font-lock-unset-defaults): Remove.
(font-lock-match-c-style-declaration-item-and-skip-to-next):
Try to recognize prototypes using `foo P_ ((args))'.
({c,c++,java,objc}-font-lock-keywords-{1,2,3}): Don't setq a defconst.
(c-font-lock-keywords-2): Fix last change to still use Anders' trick.
(c-font-lock-syntactic-face-function): New function.
(font-lock-match-c++-style-declaration-item-and-skip-to-next)
(c++-keywords): Use a more sophisticated regexp to handle
shallowly nested templates.
2001-10-28 04:48:16 +00:00
Sam Steingold
07fedaed79 (c-font-lock-keywords-2): Do not require labels to be alone on the line. 2001-10-26 15:04:58 +00:00
Gerd Moellmann
54f73af324 (toplevel): Require `jit-lock' only if
font-lock-support-mode is set to jit-lock-mode.
2001-09-05 13:38:49 +00:00