GNU bug report logs -
#12743
24.2.50; run-python hangs
Previous Next
Reported by: Left Right <olegsivokon <at> gmail.com>
Date: Sat, 27 Oct 2012 15:50:01 UTC
Severity: important
Merged with 12645,
12751
Found in version 24.2.50
Done: Fabián Ezequiel Gallina <fabian <at> anue.biz>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello again,
I think I know what the problem is, but I don't know how to fix it:
(defun jit-lock-function (start)
"Fontify current buffer starting at position START.
This function is added to `fontification-functions' when `jit-lock-mode'
is active."
(when (and jit-lock-mode (not memory-full))
(if (null jit-lock-defer-timer)
;; No deferral.
(jit-lock-fontify-now start (+ start jit-lock-chunk-size))
;; Record the buffer for later fontification.
(unless (memq (current-buffer) jit-lock-defer-buffers)
(push (current-buffer) jit-lock-defer-buffers))
;; Mark the area as defer-fontified so that the redisplay engine
;; is happy and so that the idle timer can find the places to fontify.
(with-buffer-prepared-for-jit-lock
(put-text-property start
(next-single-property-change
start 'fontified nil
(min (point-max) (+ start jit-lock-chunk-size)))
'fontified 'defer)))))
There are 3 s-expressions inside (if ...), the third will never run,
but it probably has to. Maybe it should be (when ...) instead of (if
...)?
Best.
Oleg
This bug report was last modified 12 years and 198 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.