emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Running elisp code in the middle of re-search-forward


From: Stefan Monnier
Subject: Re: Running elisp code in the middle of re-search-forward
Date: Wed, 07 Sep 2005 08:19:50 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     Does anyone know why the above code is the way it is?
>     Is it really safe to run QUIT from within the matching loop?
>     If so, why not do it under Unix as well?

> On GNU and Unix, quitting happens immediately in the signal handler.
> That is what immediate_quit is for.

Does it really, under X11?
I'm not sure I understand really how immediate_quit is set up, but at least
I see the following problem under GNU/Linux:

        % .../src/emacs -Q
        
slkfhslafkhslfkgjhsdlkghsdlghsdlfkghlsdfkghlsdfkghlsdfkghlsdfkghlsdfkghskldfjghskldfjghlsdfkghlsdfkghlsdfkghlsdfkghklsdfghskldfjghskldfjghskldfjghskldfjghlskdfjghdkghskldfjg
        M-: (re-search-forward ".*.*.*.*.*hhh") RET

then try to interrupt the search with C-g.  In my case at least it
doesn't work.  Maybe it's because immediate_quit doesn't work, or maybe it's
because immediate_quit is not used in this case, but in any case I find this
behavior to be a problem.


        Stefan




reply via email to

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