1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00
Commit Graph

86 Commits

Author SHA1 Message Date
Simon Marshall
b34aa0a311 Cleaned up custom support. 1997-04-18 07:08:56 +00:00
Simon Marshall
55015061f5 Customise. And a few code cleanups. 1997-04-17 07:29:13 +00:00
Richard M. Stallman
815eae1d27 (font-lock-fontify-syntactically-region): Use new
features of parse-partial-sexp instead of doing regexp search.
1997-04-15 05:00:36 +00:00
Simon Marshall
2d63aa6734 Allow arbitrary regexps in *-font-lock-extra-types. 1997-03-15 13:19:12 +00:00
Simon Marshall
56fcbd7e9d 1. If PRE-MATCH-FORM returns a suitable number, use that as a value for LIMIT.
2.  Commented out menu code.
1997-02-21 09:36:18 +00:00
Simon Marshall
1c626aaf74 Fix additional text prop fns to behave as proposed builtins.
Undo previous font-lock-after-change-function as that works better albeit not perfectly.
1997-01-09 10:08:58 +00:00
Simon Marshall
c1f2ffc8f9 (a) add font-lock-keywords-alist, (b) fix compilation of quoted conses in keyword form, (c) make simple font-lock-match-c-style-declaration-item-and-skip-to-next and more complex font-lock-match-c++-style-declaration-item-and-skip-to-next. 1996-11-16 13:27:49 +00:00
Simon Marshall
2e6a15fce5 Changes to font-lock-fontify-syntactically-region: (a) the cache position must be a marker, (b) use a loop to look for comment start, some speedups.
Two new faces, two new modes.
1996-10-23 11:21:05 +00:00
Richard M. Stallman
7ca7485a8a (font-lock-inhibit-modes): Deleted.
(turn-on-font-lock-if-enabled): Deleted.
1996-08-01 21:45:04 +00:00
Richard M. Stallman
00ddb61e2e (font-lock-mode): Don't add to after-change-functions
if font-lock-fontify-region-function is `ignore'.

(font-lock-inhibit-modes): New variable.
(turn-on-font-lock-if-enabled): Test it.
1996-07-27 20:23:55 +00:00
Simon Marshall
56a2f57a0d Make sure font-lock-match-c++-style-declaration-item-and-skip-to-next only skips commas. 1996-07-13 11:12:25 +00:00
Simon Marshall
98f84f52d4 1. Use new font-lock-comment-start-regexp for matching a comment---it can be faster than comment-start-skip.
2.  Don't treat ; as an item separator.
1996-07-12 07:27:55 +00:00
Simon Marshall
fd23afbeb4 Put fewer conditions in turn-on-font-lock and more in turn-on-font-lock-if-enabled, so a user can put the former on hooks. 1996-06-24 08:06:51 +00:00
Richard M. Stallman
5aa29679e1 (font-lock-verbose): Default to 0. Doc fix.
(font-lock-default-fontify-buffer): Interpret numeric value.
(font-lock-fontified): Don't make it permanent-local.
(font-lock-mode): Remove before-revert-hook and after-revert-hook code.
Call font-lock-turn-on-thing-lock before font-lock-mode-hook.  Doc fix.
(font-lock-revert-setup, font-lock-revert-cleanup): Deleted.
(font-lock-support-mode): New variable.
(font-lock-turn-on-thing-lock): New function.  Use it.
(font-lock-turn-off-thing-lock): Renamed font-lock-thing-lock-cleanup.
(font-lock-change-major-mode): Turn off Font Lock mode if it is on.
Add font-lock-change-major-mode to change-major-mode-hook at top level.
1996-06-23 18:36:01 +00:00
Richard M. Stallman
f42b62e4b8 (font-lock-make-faces): Set threshold for "light color"
at .6 of the total for white.
1996-06-22 16:51:43 +00:00
Richard M. Stallman
6c0fc42885 (global-font-lock-mode): Set up find-file-hooks.
(font-lock-default-fontify-buffer, font-lock-fontify-block)
(font-lock-mode): Fix syntax of msgs such as Fontifying...done.
1996-06-17 00:06:46 +00:00
Simon Marshall
2d9cdda805 Treat font-lock-keywords of (t) the same as nil.
xvc
1996-03-07 13:47:46 +00:00
Richard M. Stallman
94de9afef1 (font-lock-fontify-block): Use facemenu-keymap to make the binding. 1996-03-07 07:11:03 +00:00
Richard M. Stallman
7e47f20bba (global-map): Change C-M-g to M-g M-g. 1996-03-02 21:09:04 +00:00
Simon Marshall
343204bdd1 Make global-font-lock-mode show status messages, and fontification interruptable. 1996-02-28 09:53:39 +00:00
Simon Marshall
a465832f09 Moved `supported' from turn-on-font-lock-if-supported to turn-on-font-lock. 1996-02-08 10:08:08 +00:00
Simon Marshall
a078558d78 Correct specialised fontification and associated stuff. 1996-02-02 10:37:39 +00:00
Simon Marshall
271c888a35 Support for local fontification. 1996-01-26 08:26:58 +00:00
Simon Marshall
a2b8e66b8e Support for buffer local fontification functions.
Global Font Lock mode.
Support for `eval' keywords.
1996-01-25 10:38:39 +00:00
Richard M. Stallman
2346238d0a (turn-on-font-lock): Test window-system. 1996-01-24 05:40:21 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
d9f7b2d33c (font-lock-keywords): Doc fix. 1996-01-04 23:35:58 +00:00
Simon Marshall
7d7d915a20 Don't turn on in any buffer with a leading space in its name.
When (un)fontifying, make sure we're doing it in the whole buffer.
Make a command to refontify the window.
1995-12-09 16:35:57 +00:00
Richard M. Stallman
03a84c34c2 (font-lock-make-faces): Add special code for ms-dos. 1995-11-25 00:19:25 +00:00
Simon Marshall
e595fa354d Oops; left a note in a doc-string. 1995-11-10 08:42:45 +00:00
Simon Marshall
876f2438f3 1. Use local hooks, not local variables.
2.  Wrap font-lock-fontify-region, not called fns.
3.  Guarantee anchored keywords don't span lines.
1995-11-09 08:26:32 +00:00
Richard M. Stallman
be01074898 Comment change. 1995-10-30 17:35:01 +00:00
Simon Marshall
9bfbb130d9 General reorganisation; moving and renaming etc.
Addition to font-lock-keywords; MATCH-ANCHORED structure and OVERRIDE values.
font-lock-fontify-anchored-keywords written to use the former,
font-lock-apply-highlight modified to use the latter.
1995-10-26 13:27:36 +00:00
Simon Marshall
d46c21ecae Functionality for font-lock-beginning-of-syntax-function to be used by font-lock-fontify-region when calculating the cache state. Also wrap value of buffer-file-truename to guard against clash detection. Also add scheme-font-lock-keywords. 1995-08-10 13:57:18 +00:00
Richard M. Stallman
acedc3e30b (font-lock-make-faces): Redo logic for whether
to call font-lock-make-face for a given face.
1995-07-21 05:05:49 +00:00
Simon Marshall
bda609416b Do all cleanups in font-lock-fontify-region and font-lock-hack-keywords inside
their unwind-protect UNWINDFORMS.  Also eval inside font-lock-set-defaults, not
font-lock-choose-keywords.
1995-07-09 13:26:41 +00:00
Richard M. Stallman
4d8765a2dd (font-lock-make-faces): On grayscale screen,
use grays for background, not foreground.
1995-07-07 13:27:15 +00:00
Simon Marshall
fb512de99a Specify in font-lock-defaults/font-lock-defaults-alist which keywords we can
use based on font-lock-maximum-decoration.
1995-06-26 11:55:25 +00:00
Simon Marshall
8862b0db81 Change so font-lock-make-faces doesn't stomp all over user Font Lock faces. 1995-06-16 07:47:09 +00:00
Simon Marshall
52436656c3 Made font-lock-compile-keywords not compile if it looks like it already has. 1995-06-01 09:08:29 +00:00
Karl Heuer
800479f5fd (font-lock-revert-cleanup): Always turn font lock on.
(font-lock-mode): When turning mode off, always take out
the revert hooks.
1995-05-29 06:59:49 +00:00
Simon Marshall
826b2925cb Make font-lock.el use compiled keywords; added FN as possible matcher.
Use font-lock-syntax-table for syntactic fontification.
Use font-lock-after-fontify-buffer not font-lock-after-fontify-buffer-hook.
1995-04-24 10:49:03 +00:00
Richard M. Stallman
61392e7b04 (font-lock-make-faces): Determine font-lock-background-mode from color
values of background color.

(font-lock-make-faces-done): New variable.
(font-lock-make-faces): Set font-lock-make-faces-done to t.
Don't call it when loading the file.
(font-lock-mode): Call font-lock-make-faces if not yet done.
1995-04-16 05:41:53 +00:00
Simon Marshall
799761f0c1 Added font-lock-maximum-decoration; use it to set lisp-font-lock-keywords, and
C and C++ ones.
Added font-lock-after-fontify-buffer-hook; font-lock-fontify-buffer runs it.
Added font-lock-thing-lock-cleanup; font-lock-mode runs it when turning off.
Fixed font-lock-fontify-region so it uses forward-comment from comment-start,
rather than searching for comment-end.
Mods to lisp-font-lock-keywords-1 and 2.
1995-03-02 10:57:07 +00:00
Richard M. Stallman
3de76c480c (font-lock-fontify-region): Bind inhibit-read-only. Also buffer-file-name.
(font-lock-hack-keywords, font-lock-unfontify-region): Likewise.
1995-01-25 00:43:25 +00:00
Richard M. Stallman
e547d71e2c (font-lock-hack-keywords): Turn off undo generation.
(font-lock-unfontify-region. font-lock-fontify-region): Likewise.
1994-12-15 16:30:39 +00:00
Simon Marshall
9e116f87ad Comment out Oct 18 change to font-lock-after-change-function 1994-12-05 13:38:11 +00:00
Simon Marshall
0caef3e3b7 Added defaults for grayscale font-lock-reference-face. 1994-12-01 14:00:16 +00:00
Simon Marshall
5c06a8eb15 Add scheme-mode to font-lock-defaults-alist using lisp-font-lock-keywords. 1994-11-14 08:03:41 +00:00
Simon Marshall
2f12628e08 Wrap font-lock-fontify-region's string-match with save-match-data. 1994-11-03 15:30:39 +00:00