From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: M-x compile should tell its status (a little bit better).. Date: 14 Jul 2004 10:44:47 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: 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> <46068.217.194.34.123.1089788108.squirrel@wwws.franken.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089794801 5338 80.91.224.253 (14 Jul 2004 08:46:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jul 2004 08:46:41 +0000 (UTC) Cc: 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 10:46:29 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 1BkfPJ-00088c-00 for ; Wed, 14 Jul 2004 10:46:29 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkfPI-00086S-00 for ; Wed, 14 Jul 2004 10:46:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkfRh-00089h-T8 for emacs-devel@quimby.gnus.org; Wed, 14 Jul 2004 04:48:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BkfQg-0007t5-TI for emacs-devel@gnu.org; Wed, 14 Jul 2004 04:47:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BkfQg-0007sf-2T for emacs-devel@gnu.org; Wed, 14 Jul 2004 04:47:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkfQf-0007sQ-Ij for emacs-devel@gnu.org; Wed, 14 Jul 2004 04:47:53 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BkfNm-0000Lz-Vy for emacs-devel@gnu.org; Wed, 14 Jul 2004 04:44:55 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BkfNf-000691-TN; Wed, 14 Jul 2004 04:44:48 -0400 Original-To: "Stephan Stahl" In-Reply-To: <46068.217.194.34.123.1089788108.squirrel@wwws.franken.de> Original-Lines: 53 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:25678 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25678 "Stephan Stahl" writes: > 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? The problem is that, say, RefTeX minor mode gets started within LaTeX-mode-hook (which means at a later time) and adds its " Ref" lighter to the front of minor-mode-alist, before the "^" lighter. Which looks stupid. And anyway, minor-mode-alist will not let me add a lighter in front, and the "PDFTeX" executable naming would make that the best choice. > 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.. That's what I mean. cc-mode _will_ probably add this to the front of minor-mode-alist, but other modes add to the list afterwards. One could reshuffle the list at strategic times, but frankly, it might be easier just to fiddle with mode-name itself. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum