all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Signal `quit' in a `font-lock-fontify-region-function'
Date: Thu, 16 May 2019 19:20:39 -0400	[thread overview]
Message-ID: <jwv5zqadmh2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: CAG7Bpaon-bQfYLzbDTNPR0Fe-1i1y49dLxmek34-=UBSa1R+Kg@mail.gmail.com

> Error during redisplay: (jit-lock-function ##) signaled (quit)

This is indeed the behavior I expect (tho I don't really like it, but
I never dared to change jit-lock to set inhibit-quit).

> sometimes it doesn't.

Is there a difference in behavior in this respect when you try it in the
GUI vs in a tty?  How 'bout in another OS?

Does it happen more often if you wait a while until you starting banging
on C-g?  E.g. it might be that the event buffer is full (see patch below)?


        Stefan


diff --git a/src/keyboard.c b/src/keyboard.c
index 5f2b7afe6d..405790312d 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -3568,12 +3568,15 @@ kbd_buffer_store_buffered_event (union buffered_input_event *event,
         {
           /* Don't read keyboard input until we have processed kbd_buffer.
              This happens when pasting text longer than KBD_BUFFER_SIZE/2.  */
+          fprintf (stderr, "Too many pending events, putting keyboard on hold!\n");
           hold_keyboard_input ();
           unrequest_sigio ();
           stop_polling ();
         }
 #endif	/* subprocesses */
     }
+  else
+    fprintf (stderr, "event buffer full: dropping event!\n");
 
   Lisp_Object ignore_event;
 




  reply	other threads:[~2019-05-16 23:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-16 22:20 Signal `quit' in a `font-lock-fontify-region-function' Paul Pogonyshev
2019-05-16 23:20 ` Stefan Monnier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-05-28 16:24 Paul Pogonyshev
2019-05-28 17:50 ` Stefan Monnier
2019-05-28 18:14   ` Paul Pogonyshev
2019-05-28 18:24     ` Stefan Monnier
2019-06-29 17:50 Paul Pogonyshev
2019-06-29 21:26 ` Stefan Monnier
2019-06-29 23:49   ` Paul Pogonyshev
2019-06-30  0:18     ` Stefan Monnier
2019-06-30 10:51       ` Paul Pogonyshev

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=jwv5zqadmh2.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@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.