summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
Commit message (Collapse)AuthorAgeFilesLines
* (global-map): Change C-M-g to M-g M-g.Richard M. Stallman1996-03-021-1/+1
|
* Make global-font-lock-mode show status messages, and fontification ↵Simon Marshall1996-02-281-34/+43
| | | | interruptable.
* Moved `supported' from turn-on-font-lock-if-supported to turn-on-font-lock.Simon Marshall1996-02-081-27/+23
|
* Correct specialised fontification and associated stuff.Simon Marshall1996-02-021-161/+189
|
* Support for local fontification.Simon Marshall1996-01-261-3/+11
|
* Support for buffer local fontification functions.Simon Marshall1996-01-251-87/+286
| | | | | Global Font Lock mode. Support for `eval' keywords.
* (turn-on-font-lock): Test window-system.Richard M. Stallman1996-01-241-2/+3
|
* Update FSF's address.Erik Naggum1996-01-141-2/+3
|
* (font-lock-keywords): Doc fix.Karl Heuer1996-01-041-2/+2
|
* Don't turn on in any buffer with a leading space in its name.Simon Marshall1995-12-091-33/+65
| | | | | When (un)fontifying, make sure we're doing it in the whole buffer. Make a command to refontify the window.
* (font-lock-make-faces): Add special code for ms-dos.Richard M. Stallman1995-11-251-0/+5
|
* Oops; left a note in a doc-string.Simon Marshall1995-11-101-1/+1
|
* 1. Use local hooks, not local variables.Simon Marshall1995-11-091-187/+178
| | | | | 2. Wrap font-lock-fontify-region, not called fns. 3. Guarantee anchored keywords don't span lines.
* Comment change.Richard M. Stallman1995-10-301-1/+1
|
* General reorganisation; moving and renaming etc.Simon Marshall1995-10-261-635/+944
| | | | | | 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.
* Functionality for font-lock-beginning-of-syntax-function to be used by ↵Simon Marshall1995-08-101-128/+262
| | | | 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.
* (font-lock-make-faces): Redo logic for whetherRichard M. Stallman1995-07-211-6/+6
| | | | to call font-lock-make-face for a given face.
* Do all cleanups in font-lock-fontify-region and font-lock-hack-keywords insideSimon Marshall1995-07-091-38/+35
| | | | | their unwind-protect UNWINDFORMS. Also eval inside font-lock-set-defaults, not font-lock-choose-keywords.
* (font-lock-make-faces): On grayscale screen,Richard M. Stallman1995-07-071-6/+6
| | | | use grays for background, not foreground.
* Specify in font-lock-defaults/font-lock-defaults-alist which keywords we canSimon Marshall1995-06-261-55/+59
| | | | use based on font-lock-maximum-decoration.
* Change so font-lock-make-faces doesn't stomp all over user Font Lock faces.Simon Marshall1995-06-161-8/+13
|
* Made font-lock-compile-keywords not compile if it looks like it already has.Simon Marshall1995-06-011-17/+19
|
* (font-lock-revert-cleanup): Always turn font lock on.Karl Heuer1995-05-291-7/+9
| | | | | (font-lock-mode): When turning mode off, always take out the revert hooks.
* Make font-lock.el use compiled keywords; added FN as possible matcher.Simon Marshall1995-04-241-198/+224
| | | | | Use font-lock-syntax-table for syntactic fontification. Use font-lock-after-fontify-buffer not font-lock-after-fontify-buffer-hook.
* (font-lock-make-faces): Determine font-lock-background-mode from colorRichard M. Stallman1995-04-161-9/+12
| | | | | | | | | 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.
* Added font-lock-maximum-decoration; use it to set lisp-font-lock-keywords, andSimon Marshall1995-03-021-117/+106
| | | | | | | | | 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.
* (font-lock-fontify-region): Bind inhibit-read-only. Also buffer-file-name.Richard M. Stallman1995-01-251-3/+9
| | | | (font-lock-hack-keywords, font-lock-unfontify-region): Likewise.
* (font-lock-hack-keywords): Turn off undo generation.Richard M. Stallman1994-12-151-0/+4
| | | | (font-lock-unfontify-region. font-lock-fontify-region): Likewise.
* Comment out Oct 18 change to font-lock-after-change-functionSimon Marshall1994-12-051-7/+9
|
* Added defaults for grayscale font-lock-reference-face.Simon Marshall1994-12-011-1/+3
|
* Add scheme-mode to font-lock-defaults-alist using lisp-font-lock-keywords.Simon Marshall1994-11-141-0/+1
|
* Wrap font-lock-fontify-region's string-match with save-match-data.Simon Marshall1994-11-031-3/+4
|
* (font-lock-after-change-function): If inside a comment,Richard M. Stallman1994-10-181-3/+15
| | | | | | don't scan for keywords. (font-lock-fontify-region): Discard leading spaces from comment-end.
* Use purify-flag not noninteractive.Simon Marshall1994-10-131-1/+1
|
* * font-lock.el: To make font-lock.el dumpable: (font-lock-display-type,Simon Marshall1994-10-121-178/+251
| | | | | | | | | | | | | font-lock-background-mode, font-lock-face-attributes): Default to nil. (font-lock-make-faces): New function. Set them. (font-lock.el): Add to after-init-hook if noninteractive or use it. (font-lock-maximum-size): New variable. (font-lock-mode): Use it to fontify only if buffer is within it. (font-lock-defaults, font-lock-defaults-alist): Item for syntax table. (font-lock-set-defaults): Set font-lock-syntax-table too. (lisp-font-lock-keywords-2): Fix CLisp end-of-keyword in regexp. (c-font-lock-keywords-*): Specific to ANSI C. (c++-font-lock-keywords-*): Specific to ANSI C++.
* (font-lock-set-defaults): Do nothing if font-lock-keywords already non-nil.Richard M. Stallman1994-10-111-19/+25
| | | | | Use font-lock-defaults. (font-lock-defaults): New variable.
* Re-delete code deleted in rms's Oct 5 change.Richard M. Stallman1994-10-071-2/+0
|
* (compilation-mode-font-lock-keywords,Richard M. Stallman1994-10-071-450/+557
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rmail-summary-font-lock-keywords, dired-font-lock-keywords, shell-font-lock-keywords, texi-font-lock-keywords, perl-font-lock-keywords): Deleted. (font-lock-mode): Doc fix; use add/remove-hook, not setq; removed make-local-variable of font-lock-no-comments. (font-lock-set-defaults): Do it there, and use: (font-lock-defaults-alist): Use it to set font-lock-keywords, font-lock-keywords-case-fold-search and font-lock-no-comments. (turn-on-font-lock): New function. (font-lock-fontify-buffer): Made interruptible; deleted messages. (font-lock-fontify-region): Made syntax state reliable by widening within new restriction; let cstart and cend for speed; outputs message. (font-lock-after-change-function): Remove spurious goto-char and use forward-line, not 1+ end-of-line, for end of fontification region. (font-lock-any-properties-p): Removed, use text-property-not-all. (font-lock-*-face): facename values are themselves. (font-lock-variable-name-face, font-lock-reference-face): New vars. (font-lock-doc-string-face): Removed. (font-lock-keywords): Extended value syntax. (font-lock-hack-keywords): Cope with it; outputs initial message. Merged in face-lock.el: (font-lock-display-type, font-lock-background-mode) (font-lock-face-attributes): New variables, use it. (font-lock-make-face): New function, use them.
* Delete the error when no window system.Richard M. Stallman1994-10-061-3/+0
|
* (font-lock-hack-keywords): Delete debugging code.Richard M. Stallman1994-08-061-1/+0
|
* (font-lock-syntax-table): New syntax table.Richard M. Stallman1994-08-051-44/+65
| | | | | (font-lock-hack-keywords): Use it temporarily here. (font-lock-set-defaults): Set up special syntax table for C and C++.
* Don't alter the underline face.Richard M. Stallman1994-06-151-16/+15
| | | | | | | | | (font-lock-hack-keywords, font-lock-fontify-region): Don't call set-buffer-modified-p if no change in its value. (font-lock-hack-keywords): Avoid changing the narrowing. (c-font-lock-keywords-2): Insist on whitespace before a label.
* (tex-font-lock-keywords): Make the pattern forRichard M. Stallman1994-06-111-2/+4
| | | | | | | macros respect TeX's idea of identifiers. (font-lock-set-defaults): Don't check for 'tex-mode, but instead for 'plain-tex-mode, 'latex-mode, and 'slitex-mode which is what tex-mode.el uses.
* (shell-font-lock-keywords): Removed regexp for commands.Richard M. Stallman1994-05-301-2/+7
| | | | | (rmail-summary-font-lock-keywords): New variable. (font-lock-set-defaults): Use it.
* (font-lock-after-change-function): Fix typo in prev chg.Richard M. Stallman1994-05-181-6/+9
| | | | (font-lock-mode): Use after-change-functions not after-change-function.
* (font-lock-no-comments): New variable.Richard M. Stallman1994-05-131-24/+32
| | | | | | | | | | | | | (font-lock-after-change-function): Test it. (font-lock-fontify-buffer): Test it. (font-lock-set-defaults): Set it. (font-lock-mode): Make font-lock-no-comments local. (font-lock-after-change-function): If we don't call font-lock-fontify-region, clear out face props instead. (font-lock-fontify-buffer): Don't give "syntactically" message if we aren't doing that part.
* Update copyright.Karl Heuer1994-05-031-1/+1
|
* (rmail-font-lock-keywords): New variable.Richard M. Stallman1994-04-221-0/+15
| | | | | (compilation-mode-font-lock-keywords): New variable. (font-lock-set-defaults): Use those vars in those modes.
* Check for existence of windowing system.Karl Heuer1994-03-301-0/+3
|
* (c++-font-lock-keywords-1, c++-font-lock-keywords-2): New variables.Richard M. Stallman1994-03-051-4/+23
| | | | (c++-font-lock-keywords): Use c++-font-lock-keywords-1.