From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Mode-line customization. Date: Wed, 05 May 2004 23:19:57 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040505230442.D2FE.LEKTU@mi.madritel.es> References: <1z3c6f738s.fsf@tcdec3.bham.ac.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083799606 4371 80.91.224.253 (5 May 2004 23:26:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 May 2004 23:26:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 06 01:26:36 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 1BLVme-0003E5-00 for ; Thu, 06 May 2004 01:26:36 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLVme-0006p5-00 for ; Thu, 06 May 2004 01:26:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLVlv-0003qX-Lf for emacs-devel@quimby.gnus.org; Wed, 05 May 2004 19:25:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLVeo-0002FC-Pu for emacs-devel@gnu.org; Wed, 05 May 2004 19:18:30 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLVWe-0008D3-OS for emacs-devel@gnu.org; Wed, 05 May 2004 19:10:38 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BLVBI-0001wa-FC for emacs-devel@gnu.org; Wed, 05 May 2004 18:48:00 -0400 Original-Received: from [62.81.186.18] (helo=smtp08.retemail.es) by mx20.gnu.org with esmtp (Exim 4.30) id 1BLToq-0006BK-ET for emacs-devel@gnu.org; Wed, 05 May 2004 17:20:44 -0400 Original-Received: from [127.0.0.1] ([213.37.34.53]) by smtp08.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20040505211954.MAVN29422.smtp08.retemail.es@[127.0.0.1]>; Wed, 5 May 2004 23:19:54 +0200 Original-To: Chris Green , emacs-devel@gnu.org In-Reply-To: X-Mailer: Becky! ver. 2.09.01 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 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:22827 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22827 On Wed, 05 May 2004 11:04:16 -0400, Chris Green wrote: > When you modify a version controlled file in XEmacs, the > background of the CVS version becomes highlighted. In Emacs, it goes > from CVS-1.21 => CVS:1.21 which isn't obvious until you read the > docstring for vc-default-mode-line-string. > > I was disappointed that I couldn't customize to get that behavior > back. You can't M-x customize it, but certainly you can customize it: (setcdr (nth 7 mode-line-format) '((:eval (let ((v (concat vc-mode " "))) (if (string-match ":" v) (propertize v 'face '(:background "red")) (propertize v 'face '(:background "brown"))))))) etc. Though I fully agree that having mode-line-major-mode, mode-line-minor-mode and other mode-line specific faces would be great. /L/e/k/t/u