summaryrefslogtreecommitdiff
path: root/lisp/font-lock.el
Commit message (Collapse)AuthorAgeFilesLines
* lisp/font-lock.el: Remove obsolete code.Juanma Barranquero2011-04-051-2/+1
| | | | | | * font-lock.el (font-lock-refresh-defaults): Don't bind `hi-lock--inhibit-font-lock-hook', removed in 2010-10-09T04:09:19Z!cyd@stupidchicken.com and 2010-10-11T23:57:49Z!lekktu@gmail.com
* font-lock.el tweak for bug#2159.Glenn Morris2011-03-071-1/+1
| | | | | * lisp/font-lock.el (lisp-font-lock-keywords-1): Don't highlight `)' in some setf expressions.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-3/+1
|
* Refill some copyright headers.Glenn Morris2011-01-151-2/+2
|
* Merge from emacs-23Stefan Monnier2011-01-141-2/+2
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | * font-lock.el (font-lock-verbose): Default to nil.Chong Yidong2011-01-121-2/+3
| |
* | Remove obsolete variable font-lock-defaults-alist.Glenn Morris2010-10-051-18/+11
| | | | | | | | | | | | | | | | | | | | | | * lisp/font-core.el (font-lock-defaults-alist): Remove variable. (font-lock-mode): Doc fix. (font-lock-default-function): Do not consult font-lock-defaults-alist. * lisp/font-lock.el (font-lock-refresh-defaults): Doc fix. (font-lock-set-defaults): Doc fix. Do not consult font-lock-defaults-alist. * etc/NEWS: Mention above change.
* | Merge changes from emacs-23 branch.Juanma Barranquero2010-09-141-0/+2
|\ \ | |/
| * * lisp/font-lock.el (font-lock-beginning-of-syntax-function):Stefan Monnier2010-09-111-0/+2
| | | | | | | | Mark as obsolete.
* | New syntax-propertize functionality.Stefan Monnier2010-09-111-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/font-lock.el (font-lock-syntactic-keywords): Make obsolete. (font-lock-fontify-syntactic-keywords-region): Move handling of font-lock-syntactically-fontified to... (font-lock-default-fontify-region): ...here. Let syntax-propertize-function take precedence. (font-lock-fontify-syntactically-region): Cal syntax-propertize. * lisp/emacs-lisp/regexp-opt.el (regexp-opt-depth): Skip named groups. * lisp/emacs-lisp/syntax.el (syntax-propertize-function) (syntax-propertize-chunk-size, syntax-propertize--done) (syntax-propertize-extend-region-functions): New vars. (syntax-propertize-wholelines, syntax-propertize-multiline) (syntax-propertize--shift-groups, syntax-propertize-via-font-lock) (syntax-propertize): New functions. (syntax-propertize-rules): New macro. (syntax-ppss-flush-cache): Set syntax-propertize--done. (syntax-ppss): Call syntax-propertize. * lisp/progmodes/ada-mode.el (ada-set-syntax-table-properties) (ada-after-change-function, ada-initialize-syntax-table-properties) (ada-handle-syntax-table-properties): Only define when syntax-propertize is not available. (ada-mode): Use syntax-propertize-function. * lisp/progmodes/autoconf.el (autoconf-mode): Use syntax-propertize-function. (autoconf-font-lock-syntactic-keywords): Remove. * lisp/progmodes/cfengine.el (cfengine-mode): Use syntax-propertize-function. (cfengine-font-lock-syntactic-keywords): Remove. * lisp/progmodes/cperl-mode.el (cperl-mode): Use syntax-propertize-function. * lisp/progmodes/fortran.el (fortran-mode): Use syntax-propertize-function. (fortran--font-lock-syntactic-keywords): New var. (fortran-line-length): Update syntax-propertize-function and fortran--font-lock-syntactic-keywords. * lisp/progmodes/gud.el (gdb-script-syntax-propertize-function): New var; replaces gdb-script-font-lock-syntactic-keywords. (gdb-script-mode): Use it. * lisp/progmodes/js.el (js--regexp-literal): Define while compiling. (js-syntax-propertize-function): New var; replaces js-font-lock-syntactic-keywords. (js-mode): Use it. * lisp/progmodes/make-mode.el (makefile-syntax-propertize-function): New var; replaces makefile-font-lock-syntactic-keywords. (makefile-mode): Use it. (makefile-imake-mode): Adjust. * lisp/progmodes/mixal-mode.el (mixal-syntax-propertize-function): New var; replaces mixal-font-lock-syntactic-keywords. (mixal-mode): Use it. * lisp/progmodes/octave-mod.el (octave-syntax-propertize-sqs): New function to replace octave-font-lock-close-quotes. (octave-syntax-propertize-function): New function to replace octave-font-lock-syntactic-keywords. (octave-mode): Use it. * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): New fun to replace perl-font-lock-syntactic-keywords. (perl-syntax-propertize-special-constructs): New fun to replace perl-font-lock-special-syntactic-constructs. (perl-font-lock-syntactic-face-function): New fun. (perl-mode): Use it. * lisp/progmodes/python.el (python-syntax-propertize-function): New var to replace python-font-lock-syntactic-keywords. (python-mode): Use it. (python-quote-syntax): Simplify and adjust to new use. * lisp/progmodes/ruby-mode.el (ruby-here-doc-beg-re): Define while compiling. (ruby-here-doc-end-re, ruby-here-doc-beg-match) (ruby-font-lock-syntactic-keywords, ruby-comment-beg-syntax) (syntax-ppss, ruby-in-ppss-context-p, ruby-in-here-doc-p) (ruby-here-doc-find-end, ruby-here-doc-beg-syntax) (ruby-here-doc-end-syntax): Only define when syntax-propertize is not available. (ruby-syntax-propertize-function, ruby-syntax-propertize-heredoc): New functions. (ruby-in-ppss-context-p): Update to new syntax of heredocs. (electric-indent-chars): Silence bytecompiler. (ruby-mode): Use prog-mode, syntax-propertize-function, and electric-indent-chars. * lisp/progmodes/sh-script.el (sh-st-symbol): Remove. (sh-font-lock-close-heredoc, sh-font-lock-open-heredoc): Add eol arg. (sh-font-lock-flush-syntax-ppss-cache, sh-font-lock-here-doc): Remove. (sh-font-lock-quoted-subshell): Assume we've already matched $(. (sh-font-lock-paren): Set syntax-multiline. (sh-font-lock-syntactic-keywords): Remove. (sh-syntax-propertize-function): New function to replace it. (sh-mode): Use it. * lisp/progmodes/simula.el (simula-syntax-propertize-function): New var to replace simula-font-lock-syntactic-keywords. (simula-mode): Use it. * lisp/progmodes/tcl.el (tcl-syntax-propertize-function): New var to replace tcl-font-lock-syntactic-keywords. (tcl-mode): Use it. * lisp/progmodes/vhdl-mode.el (vhdl-mode): Use syntax-propertize-function if available. (vhdl-fontify-buffer): Adjust. * lisp/textmodes/bibtex.el (bibtex-mode): Use syntax-propertize-function. * lisp/textmodes/reftex.el (font-lock-syntactic-keywords): Don't declare since we don't use it. * lisp/textmodes/sgml-mode.el (sgml-syntax-propertize-function): New var to replace sgml-font-lock-syntactic-keywords. (sgml-mode): Use it. * lisp/textmodes/tex-mode.el (tex-common-initialization, doctex-mode): Use syntax-propertize-function. * lisp/textmodes/texinfo.el (texinfo-syntax-propertize-function): New fun to replace texinfo-font-lock-syntactic-keywords. (texinfo-mode): Use it. * test/indent/octave.m: Remove some `fixindent' not needed any more.
* | Misc cleanups and simplifications.Stefan Monnier2010-09-081-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/font-lock.el (save-buffer-state): Remove `varlist' arg. (font-lock-unfontify-region, font-lock-default-fontify-region): Update usage correspondingly. (font-lock-fontify-syntactic-keywords-region): Set parse-sexp-lookup-properties buffer-locally here. (font-lock-fontify-syntactically-region): Remove unused `ppss' arg. * lisp/progmodes/ada-mode.el: Replace "(set '" with setq. (ada-mode): Simplify. (ada-create-case-exception, ada-adjust-case-interactive) (ada-adjust-case-region, ada-format-paramlist, ada-indent-current) (ada-search-ignore-string-comment, ada-move-to-start) (ada-move-to-end): Use with-syntax-table. * lisp/progmodes/fortran.el (fortran-line-length): Don't recompute syntactic keywords redundantly a second time. * lisp/progmodes/js.el (require): Require is already "eval-and-compile". (js--re-search-forward): Avoid `eval'. Preserve the error data. (js--re-search-backward): Use js--re-search-forward. * lisp/progmodes/octave-mod.el (electric-indent-chars): Silence bytecomp.
* | Use with-silent-modifications.Stefan Monnier2010-08-301-47/+31
| | | | | | | | | | | | | | | | * lisp/composite.el (save-buffer-state): Delete, unused. * lisp/font-lock.el (save-buffer-state): Use with-silent-modifications. (font-lock-default-fontify-region): Use with-syntax-table. * lisp/jit-lock.el (with-buffer-unmodified): Remove. (with-buffer-prepared-for-jit-lock): Use with-silent-modifications.
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | Add four macros to lisp-font-lock-keywords-2 (Bug#6025).Štěpán Němec2010-08-141-5/+8
| | | | | | | | | | | | * font-lock.el (lisp-font-lock-keywords-2): Add combine-after-change-calls, condition-case-no-debug, with-demoted-errors, and with-silent-modifications (Bug#6025).
* | Merge from emacs-23Stefan Monnier2010-06-161-3/+6
|\ \ | |/
| * * lisp/font-lock.el (font-lock-major-mode): Rename fromStefan Monnier2010-06-161-3/+6
| | | | | | | | | | | | | | | | | | | | font-lock-mode-major-mode to distinguish it from global-font-lock-mode's own font-lock-mode-major-mode. (font-lock-set-defaults): * lisp/font-core.el (font-lock-default-function): Adjust users. (font-lock-mode): Don't set it at all. Fixes: debbugs:6135
* | * font-lock.el: Require CL when compiling.Stefan Monnier2010-04-031-20/+19
|/ | | | (font-lock-turn-on-thing-lock): Use `case'.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * font-lock.el (font-lock-refresh-defaults): New function, whichTassilo Horn2009-12-281-0/+17
| | | | | | can be used to let font-lock react to external changes in variables like font-lock-defaults and keywords. See http://thread.gmane.org/gmane.emacs.devel/118777/focus=118802
* Use `called-interactively-p' instead of `interactive-p'.Juanma Barranquero2009-10-021-1/+2
|
* * startup.el (tutorial-directory): Make it a defcustom.Stefan Monnier2009-09-121-1/+1
| | | | | | | | Use custom-initialize-delay rather than eval-at-startup to set it. * image.el (image-load-path): Make it a defcustom. Use custom-initialize-delay rather than eval-at-startup to set it. * subr.el (eval-at-startup): Remove. * font-lock.el (lisp-font-lock-keywords-2): Remove eval-at-startup.
* (lisp-font-lock-keywords-2): Add letf.Glenn Morris2009-09-051-1/+1
|
* * font-lock.el (font-lock-string-face, font-lock-builtin-face)Chong Yidong2009-08-021-4/+4
| | | | | (font-lock-variable-name-face, font-lock-constant-face): Darken the colors for light backgrounds.
* Revert last change, committed by mistake.Juanma Barranquero2009-03-021-2/+1
|
* Fix typos.Juanma Barranquero2009-03-021-1/+2
|
* (font-lock-fontify-syntactic-keywords-region):Stefan Monnier2009-02-191-3/+4
| | | | Make sure we stop when we reach the limit.
* Comments (minor fixes of some header conventions).Glenn Morris2009-01-101-1/+3
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* Header format fix.Glenn Morris2008-12-191-1/+1
|
* * align.el:Lute Kamstra2008-12-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allout.el: * apropos.el: * arc-mode.el: * autoinsert.el: * avoid.el: * battery.el: * bookmark.el: * buff-menu.el: * calculator.el: * chistory.el: * cmuscheme.el: * comint.el: * compare-w.el: * dabbrev.el: * delim-col.el: * desktop.el: * diff-mode.el: * diff.el: * dired-aux.el: * dired-x.el: * dired.el: * dos-vars.el: * ediff-diff.el: * ediff-help.el: * ediff-init.el: * ediff-merg.el: * ediff-mult.el: * ediff-ptch.el: * ediff-vers.el: * ediff-wind.el: * ediff.el: * emerge.el: * facemenu.el: * faces.el: * ffap.el: * filecache.el: * find-dired.el: * font-core.el: * font-lock.el: * forms.el: * fringe.el: * help-at-pt.el: * hippie-exp.el: * ido.el: * image-file.el: * imenu.el: * indent.el: * info.el: * isearchb.el: * iswitchb.el: * jit-lock.el: * jka-compr.el: * log-edit.el: * lpr.el: * ls-lisp.el: * man.el: * menu-bar.el: * midnight.el: * mouse-sel.el: * mouse.el: * msb.el: * outline.el: * paren.el: * pcmpl-cvs.el: * pcmpl-gnu.el: * pcomplete.el: * pcvs-info.el: * pcvs-parse.el: * printing.el: * ps-mule.el: * ps-print.el: * replace.el: * ruler-mode.el: * saveplace.el: * sb-image.el: * scroll-bar.el: * sha1.el: * shadowfile.el: * shell.el: * sort.el: * speedbar.el: * strokes.el: * tempo.el: * term.el: * terminal.el: * time-stamp.el: * time.el: * tree-widget.el: * type-break.el: * vc-cvs.el: * vc-hg.el: * vc-mcvs.el: * vc-rcs.el: * vc-sccs.el: * vc.el: * view.el: * w32-vars.el: * whitespace.el: * wid-edit.el: Remove leading * from docstrings of defcustoms, deffaces, defconsts and defuns.
* (lisp-font-lock-keywords-2): Remove entry forMartin Rudalics2008-11-041-2/+2
| | | | save-selected-window-norecord.
* (font-lock-keywords-case-fold-search): Doc fix.Chong Yidong2008-11-031-1/+2
|
* (lisp-font-lock-keywords-2): Add save-selected-window-norecord.Martin Rudalics2008-11-021-3/+3
|
* Comment.Glenn Morris2008-09-201-0/+5
|
* American English spelling fix.Glenn Morris2008-06-271-1/+1
|
* American English spelling fix.Glenn Morris2008-06-271-4/+4
|
* (font-lock-turn-off-thing-lock, font-lock-after-fontify-buffer)John Paul Wallington2008-06-041-12/+12
| | | | | | (font-lock-after-unfontify-buffer): Use `bound-and-true-p'. (cpp-font-lock-keywords-source-directives, cpp-font-lock-keywords): Doc fixes.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (font-lock-reference-face): Add WHEN to obsolescence declaration.Juanma Barranquero2008-04-181-2/+2
|
* (font-lock-extend-after-change-region-function): Make it buffer local.Alan Mackenzie2008-04-091-0/+1
|
* * font-lock.el (featurep): Remove test, not useful anymore.Dan Nicolaescu2008-03-141-4/+0
| | | | | (facemenu-keymap): Move key binding ... * facemenu.el (facemenu-keymap): ... here.
* (font-lock-comment-face): Set the foreground forDan Nicolaescu2008-03-131-1/+1
| | | | the light background 8 colors case.
* (lisp-font-lock-keywords-1): Support wider range ofGlenn Morris2008-03-131-8/+10
| | | | generate-autoload-cookie patterns.
* Merge from emacs--rel--22Miles Bader2008-02-241-7/+11
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
| * (font-lock-set-defaults): Unset previously set variables when needed.Stefan Monnier2008-02-121-7/+11
| |
* | Merge from emacs--devo--0Miles Bader2008-01-091-1/+1
|\ \ | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
| * \ Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
| |\ \ | | |/ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| | * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| | |
* | | Merge from emacs--devo--0Miles Bader2008-01-021-0/+12
|\ \ \ | |/ / | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-308