[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiler-mode should inherit shell-mode
From: |
Kevin Rodgers |
Subject: |
Re: compiler-mode should inherit shell-mode |
Date: |
Fri, 19 Sep 2003 09:48:55 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
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