# HG changeset patch # User Gerd Moellmann # Date 935263648 0 # Node ID 9295aaade56b4d1ad7cc1789f09a88fc460b4a35 # Parent 08bf4a1b174f4095788b0175d485821370e51095 (jit-lock-function): Use line-beginning-position. Don't unwind-protect font-lock-fontify-region. diff -r 08bf4a1b174f -r 9295aaade56b lisp/jit-lock.el --- a/lisp/jit-lock.el Sat Aug 21 17:46:37 1999 +0000 +++ b/lisp/jit-lock.el Sat Aug 21 19:27:28 1999 +0000 @@ -268,18 +268,10 @@ ;; functions seem to expects this, if I believe ;; lazy-lock. (goto-char start) - (unless (bolp) - (beginning-of-line) - (setq start (point))) + (setq start (line-beginning-position)) ;; Fontify the chunk, and mark it as fontified. - (unwind-protect - (font-lock-fontify-region start end nil)) - - ;; Even if we got an error above, mark the region as - ;; fontified. If we get an error now, we're - ;; probably getting the same error the next time we - ;; try, so it's moot to try again. + (font-lock-fontify-region start end nil) (add-text-properties start next '(fontified t)) ;; Find the start of the next chunk, if any.