From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-trunk-diffs] Changes to emacs/src/sysdep.c Date: Sun, 05 Dec 2004 22:23:23 +0200 Organization: JURTA Message-ID: <878y8cze6i.fsf@jurta.org> References: <87hdnb9f4m.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1102279067 32268 80.91.229.6 (5 Dec 2004 20:37:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Dec 2004 20:37:47 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 05 21:37:42 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cb38Y-0005d2-00 for ; Sun, 05 Dec 2004 21:37:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb3IG-0000ze-F8 for ged-emacs-devel@m.gmane.org; Sun, 05 Dec 2004 15:47:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cb3Hy-0000zZ-HF for emacs-devel@gnu.org; Sun, 05 Dec 2004 15:47:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cb3Hy-0000zN-4S for emacs-devel@gnu.org; Sun, 05 Dec 2004 15:47:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cb3Hy-0000zK-0x for emacs-devel@gnu.org; Sun, 05 Dec 2004 15:47:26 -0500 Original-Received: from [194.126.101.102] (helo=MXR-7.estpak.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cb37j-0005Xj-KC; Sun, 05 Dec 2004 15:36:51 -0500 Original-Received: from mail.hot.ee (80-235-35-192-dsl.mus.estpak.ee [80.235.35.192]) by MXR-7.estpak.ee (Postfix) with ESMTP id 013A482D11; Sun, 5 Dec 2004 22:36:49 +0200 (EET) Original-To: Stefan In-Reply-To: (Stefan's message of "Tue, 30 Nov 2004 23:28:33 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30714 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30714 Stefan writes: >> What did you wish to do using emergency escape under a window system? > > Get out of a infinite elisp loop executed while inhibit-quit is non-nil > (e.g. an infinite loop in a post-command-hook or a timer). I don't quite understand why it is assumed that everything run by a post-command-hook or a timer is a critical code not allowed to be interrupted with C-g? One of the timers where such assumption has a negative effect is the isearch lazy highlighting timer which often enters into a very deep loop (several minutes and more) trying to fontify regexps with nested repetition constructs, and which is not interruptible with C-g. Surely, it is possible to enclose the whole `isearch-lazy-highlight-update' function in `with-local-quit' block, if the assumption that timers should be non-interruptible by default is somehow justified. > Yes, I can kill the Emacs process, but it's a real pity to have to do that > when there's nothing really wrong with it. > Of course, all those cases are bugs we should fix, but they do happen, > sometimes while writing/testing/debugging code. Is it a bug that regex.c can't detect long or infinite loops? -- Juri Linkov http://www.jurta.org/emacs/