all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Left Right <olegsivokon@gmail.com>
To: 12743@debbugs.gnu.org
Subject: bug#12743: 24.2.50; run-python hangs
Date: Sat, 27 Oct 2012 17:57:39 +0200	[thread overview]
Message-ID: <CAJQBtgm0ZUa9+SY3RoxxSQj8nJwp9Hcr1TLbvC8GOzUOu-OURw@mail.gmail.com> (raw)
In-Reply-To: <CAJQBtgmbiPDwgo+2aMiu6vShYHrYCVsoFAXvpuGKHn_23Fty_g@mail.gmail.com>

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





  reply	other threads:[~2012-10-27 15:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-27 15:47 bug#12743: 24.2.50; run-python hangs Left Right
2012-10-27 15:57 ` Left Right [this message]
2012-10-27 16:04   ` Andreas Schwab
2012-10-27 16:10     ` Left Right
2012-10-27 16:17       ` Left Right
2012-10-27 16:31         ` Left Right
2012-10-27 16:49 ` Eli Zaretskii
2012-10-27 17:06   ` Left Right

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJQBtgm0ZUa9+SY3RoxxSQj8nJwp9Hcr1TLbvC8GOzUOu-OURw@mail.gmail.com \
    --to=olegsivokon@gmail.com \
    --cc=12743@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.