From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stephan Stahl Newsgroups: gmane.emacs.devel Subject: Re: Idea for compilation mode Date: Thu, 5 Jun 2003 08:25:43 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1054794343.3edee2670f306@webmail.isogmbh.de> References: <1054626136.3edc5158c76a4@webmail.isogmbh.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054794334 23843 80.91.224.249 (5 Jun 2003 06:25:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2003 06:25:34 +0000 (UTC) Cc: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 05 08:25:32 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NoBo-0006CQ-00 for ; Thu, 05 Jun 2003 08:25:32 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19NoTl-0004z9-00 for ; Thu, 05 Jun 2003 08:44:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NoDK-0004mN-T6 for emacs-devel@quimby.gnus.org; Thu, 05 Jun 2003 02:27:06 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19NoCW-0003Gv-5T for emacs-devel@gnu.org; Thu, 05 Jun 2003 02:26:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19NoCK-0002tZ-Ko for emacs-devel@gnu.org; Thu, 05 Jun 2003 02:26:05 -0400 Original-Received: from mail.isogmbh.de ([194.139.105.20] helo=ns2.isogmbh.de) by monty-python.gnu.org with smtp (Exim 4.20) id 19NoC3-0002Or-TP for emacs-devel@gnu.org; Thu, 05 Jun 2003 02:25:48 -0400 Original-Received: (qmail 27095 invoked from network); 5 Jun 2003 06:25:43 -0000 Original-Received: from unknown (HELO localhost) (192.168.81.20) by mail.dmz.isogmbh.de with SMTP; 5 Jun 2003 06:25:43 -0000 Original-Received: from cleopatra.dmz.isogmbh.de (cleopatra.dmz.isogmbh.de [192.168.81.14]) by webmail.isogmbh.de (IMP) with HTTP for ; Thu, 5 Jun 2003 08:25:43 +0200 Original-To: Andreas Schwab In-Reply-To: User-Agent: Internet Messaging Program (IMP) 3.2.1 Original-cc: "rms@gnu.org" X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14746 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14746 Andreas Schwab wrote: > Stephan Stahl writes: > > |> I was thinking of C-c r for recompile, C-c c for compile and C-c g or C-c > s for > |> compilation-mode-grep. > > C-c is reserved for the user. I did not know that. Then what about C-c C-r, C-c C-c, C-c C-g keys (in the compilation buffer). They are free, don't hurt anyone and i think they are better than M-x recom-TAB RET (recompile) for example. Well they are easier to hit then i thought :-). Richard Stallman wrote: > Yes but i think in compile mode there are plenty of non used C-c keys. > > C-x ` can be used in all modes; you don't have to go to the > compilation buffer to use it. Richard Stallman wrote: > I think that is a good idea. What do you think about extending the > compile thing to treat errors and warnings different? I know that depends > just on compilation-error-regexp-alist but when someone is already adding > some keys maybe it would be worth to add the same for warnings to. That > way one can look quickly for error in the compilation and when neccessary > for warnings to get the code clean. > > It sounds like a good feature. I would suggest having a variable > that controls whether warnings are ignored. My point was not to replace C-x ` but to add some keybindings to make compile mode better. When compiling i think one is often in the compile buffer and could surely use this bindings. As someothers pointed out C-x ` is very difficult to hit even on normal keyboards so some alternative would be nice even if it is just in the compile buffer. That way there could even be a binding for toggling that variable or different keys for errors and warnings. Maybe C-c C-w to toggle warnings of/off. C-M-p and C-M-n for previous and next warning. -- Stephan Stahl