]> code.delx.au - gnu-emacs/blobdiff - lisp/jit-lock.el
* lisp/font-lock.el (font-lock-beginning-of-syntax-function): Remove
[gnu-emacs] / lisp / jit-lock.el
index 8c798d5c4d0d21b1abb05fa12d82a934583a0864..4e8fa7b15cba6be3291fe1f94229c9fbe34a974e 100644 (file)
@@ -382,14 +382,6 @@ Defaults to the whole buffer.  END can be out of bounds."
    (save-excursion
      (unless start (setq start (point-min)))
      (setq end (if end (min end (point-max)) (point-max)))
-     ;; This did bind `font-lock-beginning-of-syntax-function' to
-     ;; nil at some point, for an unknown reason.  Don't do this; it
-     ;; can make highlighting slow due to expensive calls to
-     ;; `parse-partial-sexp' in function
-     ;; `font-lock-fontify-syntactically-region'.  Example: paging
-     ;; from the end of a buffer to its start, can do repeated
-     ;; `parse-partial-sexp' starting from `point-min', which can
-     ;; take a long time in a large buffer.
      (let ((orig-start start) next)
        (save-match-data
         ;; Fontify chunks beginning at START.  The end of a