From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Antoine Levitt Newsgroups: gmane.emacs.devel Subject: Re: Random idea: Debugging `quit' Date: Sun, 11 Sep 2011 16:38:58 +0200 Message-ID: <87aaab6t4t.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315751981 17645 80.91.229.12 (11 Sep 2011 14:39:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2011 14:39:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 11 16:39:34 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2lC2-0001WV-7P for ged-emacs-devel@m.gmane.org; Sun, 11 Sep 2011 16:39:34 +0200 Original-Received: from localhost ([::1]:38218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2lC1-0006ul-Mt for ged-emacs-devel@m.gmane.org; Sun, 11 Sep 2011 10:39:33 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2lBw-0006tj-1B for emacs-devel@gnu.org; Sun, 11 Sep 2011 10:39:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2lBr-0008El-FF for emacs-devel@gnu.org; Sun, 11 Sep 2011 10:39:27 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:41334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2lBr-0008EU-55 for emacs-devel@gnu.org; Sun, 11 Sep 2011 10:39:23 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R2lBo-0001TH-JN for emacs-devel@gnu.org; Sun, 11 Sep 2011 16:39:20 +0200 Original-Received: from ney92-7-78-233-218-202.fbx.proxad.net ([78.233.218.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Sep 2011 16:39:20 +0200 Original-Received: from antoine.levitt by ney92-7-78-233-218-202.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Sep 2011 16:39:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ney92-7-78-233-218-202.fbx.proxad.net Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143884 Archived-At: 11/09/11 09:58, Andreas Schwab > Lars Magne Ingebrigtsen writes: > >> So wouldn't it be nice if we could say, for instance, `C-u C-g' to get a >> debugging `quit'? Or perhaps `C-u 6 6 6 C-g', or whatever deemed >> necessary to avoid annoying people... > > That's really hard to do since quit-char is very special. It can only > be a single character and it is handled very low in the keyboard > handler. > > Andreas. Is it feasible to instead add a third value to debug-on-quit that'd only popup a debug window if emacs isn't waiting on user input? So "problematic" uses of C-g (break out of an infinite loop, or external process) would run the debugger, but C-x C-f C-g wouldn't.