mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
* lisp/font-lock.el (font-lock-beginning-of-syntax-function): Remove
(font-lock-fontify-block): Don't let-bind it. (font-lock-compile-keywords): Don't use it. (font-lock-set-defaults): Don't set it. Allow the variable alist to start one slot earlier, instead. * lisp/emacs-lisp/syntax.el (font-lock-beginning-of-syntax-function): Don't declare. (syntax-ppss): Don't use it either. * lisp/font-core.el (font-lock-defaults): Remove SYNTAX-BEGIN from docstring. * doc/emacs/display.texi (Font Lock): Don't mention font-lock-beginning-of-syntax-function. * doc/lispref/modes.texi (Font Lock Basics): Update description of font-lock-defaults. (Syntactic Font Lock): Remove font-lock-beginning-of-syntax-function. * lisp/loadhist.el (unload-feature-special-hooks): Remove font-lock-beginning-of-syntax-function. * lisp/obsolete/lazy-lock.el (lazy-lock-fontify-region): * lisp/emacs-lisp/lisp.el (beginning-of-defun-raw): Don't let-bind font-lock-beginning-of-syntax-function.
This commit is contained in:
parent
284c470ef7
commit
644c6b414f
10 changed files with 15 additions and 100 deletions
|
|
@ -43,8 +43,6 @@
|
|||
|
||||
(eval-when-compile (require 'cl-lib))
|
||||
|
||||
(defvar font-lock-beginning-of-syntax-function)
|
||||
|
||||
;;; Applying syntax-table properties where needed.
|
||||
|
||||
(defvar syntax-propertize-function nil
|
||||
|
|
@ -503,11 +501,6 @@ running the hook."
|
|||
;; - The function might be slow.
|
||||
;; - If this function almost always finds a safe nearby spot,
|
||||
;; the cache won't be populated, so consulting it is cheap.
|
||||
(when (and (not syntax-begin-function)
|
||||
(boundp 'font-lock-beginning-of-syntax-function)
|
||||
font-lock-beginning-of-syntax-function)
|
||||
(set (make-local-variable 'syntax-begin-function)
|
||||
font-lock-beginning-of-syntax-function))
|
||||
(when (and syntax-begin-function
|
||||
(progn (goto-char pos)
|
||||
(funcall syntax-begin-function)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue