From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: compiler-mode should inherit shell-mode Date: Fri, 19 Sep 2003 09:48:55 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F6B2567.3030109@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063986868 15738 80.91.224.253 (19 Sep 2003 15:54:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2003 15:54:28 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 17:54:25 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A0NaT-0000Do-00 for ; Fri, 19 Sep 2003 17:54:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A0NZk-0000BO-5J for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Sep 2003 11:53:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A0NWB-0007WN-N0 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 19 Sep 2003 11:49:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A0NW9-0007VJ-65 for bug-gnu-emacs@prep.ai.mit.edu; Fri, 19 Sep 2003 11:49:57 -0400 Original-Received: from [132.239.1.54] (helo=mailbox2.ucsd.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 1A0NW8-0007Ub-KB for bug-gnu-emacs@prep.ai.mit.edu; Fri, 19 Sep 2003 11:49:56 -0400 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox2.ucsd.edu (8.12.10/8.12.3) with ESMTP id h8JFnkLn094621 for ; Fri, 19 Sep 2003 08:49:47 -0700 (PDT) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Fri, 19 Sep 2003 17:48:59 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Fri, 19 Sep 2003 17:48:44 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 23 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1063986524 1212721 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox2.ucsd.edu (v1.2 May 26 2003 01:55:38, 0.9/5.0 2.55) X-MailScanner: PASSED (v1.2.7 75871 h8JFnkLn094621 mailbox2.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5815 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5815 Pascal Bourguignon wrote: > Some Makefiles involve interactive input. Therefore, it would be nice > if the compilation mode would inherit from the shell-mode and when > there is input expected, it would allow user to enter it... Wouldn't comint-mode be adequate? Ah, but it's a major mode. Perhaps compilation-mode ought to be a derived mode -- is that what you mean by "inherit from" (define-derived-mode)? > Notably, some compilation or installation targets involve sudo, then > asking for a password... (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt) should work in *compilation* buffers as well. -- Kevin Rodgers