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: M-x compile should tell its status (a little bit better).. Date: Wed, 14 Jul 2004 08:55:08 +0200 (CEST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <46068.217.194.34.123.1089788108.squirrel@wwws.franken.de> References: <24608.217.194.34.123.1082528157.squirrel@wwws.franken.de> <40895A13.4020300@yahoo.com><87oepiqsb9.fsf@eos.franken.de> <408E8DBB.9050409@yahoo.com><87hdsfl3mx.fsf@eos.franken.de> <61133.217.194.34.123.1089623439. squirrel@wwws.franken.de><20892.217.194.34.123.1089648978.squirrel@www s.franken.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Trace: sea.gmane.org 1089788321 24594 80.91.224.253 (14 Jul 2004 06:58:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jul 2004 06:58:41 +0000 (UTC) Cc: stahl@eos.franken.de, emacs-devel@gnu.org, rms@gnu.org, Stefan Monnier Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jul 14 08:58:30 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bkdio-0001NS-00 for ; Wed, 14 Jul 2004 08:58:30 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bkdio-0006AI-00 for ; Wed, 14 Jul 2004 08:58:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkdlD-0003L9-PG for emacs-devel@quimby.gnus.org; Wed, 14 Jul 2004 03:00:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bkdl7-0003Kg-8v for emacs-devel@gnu.org; Wed, 14 Jul 2004 03:00:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bkdl5-0003Jt-2P for emacs-devel@gnu.org; Wed, 14 Jul 2004 03:00:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bkdl4-0003Jj-TM for emacs-devel@gnu.org; Wed, 14 Jul 2004 03:00:50 -0400 Original-Received: from [193.175.24.27] (helo=ilsa.franken.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BkdiJ-000667-Qv; Wed, 14 Jul 2004 02:58:00 -0400 Original-Received: from wwws.franken.de (mail-n.franken.de [193.175.24.27]) by ilsa.franken.de (Postfix) with SMTP id CA2A0245CA; Wed, 14 Jul 2004 08:55:08 +0200 (CEST) Original-Received: from 217.194.34.123 (SquirrelMail authenticated user eos) by wwws.franken.de with HTTP; Wed, 14 Jul 2004 08:55:08 +0200 (CEST) In-Reply-To: Original-To: "David Kastrup" User-Agent: SquirrelMail/1.4.0 X-Priority: 3 Importance: Normal 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: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25674 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25674 Hi David. David Kastrup said: > Richard Stallman writes: > >> This would do no harm, but mode-name is always supposed to be a string. > > Oooh. I am moping because in AUCTeX, I was thinking of having a few > "flags" attached to the mode-name, so that I can have a mode-name > something like > > '((TeX-use-pdftex "PDF") TeX-base-mode-name (TeX-source-specials "^")) > > where the actual name is automatically composed from a few `lighters' > that would look pretty foolish anywhere else. > > So may be I need to hand-construct mode-name after all. I have seen that cc-mode has something similar. (c-toggle-hungry-state and c-toggle-auto-state). It adds /h or /a or /ah to the mode name if they are activated. It does so by adding (c-auto-hungry-string c-auto-hungry-string) to minor-mode-alist. I think AUCTeX could do the same? Well actually the docs to cc-mode are not 100% correct. It says: The state of the minor modes is always reflected in the minor mode list on the modeline of the CC Mode buffer. When auto-newline mode is enabled, you will see `C/a' on the mode line(1). When hungry delete mode is enabled you will see `C/h' and if both modes were enabled, you'd see `C/ah'. I do however NOT see 'C/ah' in the mode line but 'C Outl o^o/ah'. cc-mode should maybe append (c-auto-hungry-string c-auto-hungry-string) to the front of minor-mode-alist? Then it would look like the docs say.. Stephan -- Stephan Stahl