emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isearch highlighting


From: Richard Stallman
Subject: Re: isearch highlighting
Date: Mon, 20 Dec 2004 05:56:53 -0500

    Inside a long loop matching a regexp with nested repetition operators
    only C-g quits the body, not any key.

    The simplest example demonstrating this:

    (while-no-input (string-match "<\\( *\\)+>" "<                            
"))

The reason is that while-no-input doesn't work with
immediate_quit.

Does this patch make it work well?

*** keyboard.c  16 Dec 2004 07:02:15 -0500      1.804
--- keyboard.c  20 Dec 2004 04:30:52 -0500      
***************
*** 3717,3723 ****
        && event->kind != FOCUS_IN_EVENT
        && event->kind != HELP_EVENT
        && event->kind != DEICONIFY_EVENT)
!     Vquit_flag = Vthrow_on_input;
  }
  
  
--- 3717,3727 ----
        && event->kind != FOCUS_IN_EVENT
        && event->kind != HELP_EVENT
        && event->kind != DEICONIFY_EVENT)
!     {
!       Vquit_flag = Vthrow_on_input;
!       if (immediate_quit && NILP (Vinhibit_quit))
!       QUIT;
!     }
  }
  
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]