From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: vc-mode-line Date: Thu, 05 Aug 2010 01:20:08 -0400 Message-ID: References: <83lj8tb2yg.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280985627 23707 80.91.229.12 (5 Aug 2010 05:20:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Aug 2010 05:20:27 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 05 07:20:25 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OgssO-0002QR-AJ for ged-emacs-devel@m.gmane.org; Thu, 05 Aug 2010 07:20:20 +0200 Original-Received: from localhost ([127.0.0.1]:48892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgssN-0002um-5K for ged-emacs-devel@m.gmane.org; Thu, 05 Aug 2010 01:20:19 -0400 Original-Received: from [199.232.76.173] (port=43321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgssF-0002tb-J9 for emacs-devel@gnu.org; Thu, 05 Aug 2010 01:20:11 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OgssE-0007n1-Ho for emacs-devel@gnu.org; Thu, 05 Aug 2010 01:20:11 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48809) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OgssE-0007mx-5r for emacs-devel@gnu.org; Thu, 05 Aug 2010 01:20:10 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OgssC-0004XO-N1; Thu, 05 Aug 2010 01:20:08 -0400 In-Reply-To: (Miles Bader's message of "Thu\, 05 Aug 2010 13\:55\:39 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128270 Archived-At: Miles Bader writes: > If changing everything is OK, how about: > > ":" unmodified but already in repo Flipping the meaning of : from modified to unmodified sounds like it might generate confusion... > "=" modified (emacs commonly associates "=" with "diff") > "+" added, but not yet committed > "-" deleted, but not yet committed > > If that's too radical a change, how about (avoids redefining old chars): > > "-" [existing] unmodified but already in repo > "=" modified (emacs commonly associates "=" with "diff") > "+" added, but not yet committed > "#" deleted, but not yet committed These sets are not complete, vc-default-mode-line-string has all the current uses: (propertize (cond ((or (eq state 'up-to-date) (eq state 'needs-update)) (setq state-echo "Up to date file") (concat backend-name "-" rev)) ((stringp state) (setq state-echo (concat "File locked by" state)) (concat backend-name ":" state ":" rev)) ((eq state 'added) (setq state-echo "Locally added file") (concat backend-name "@" rev)) ((eq state 'conflict) (setq state-echo "File contains conflicts after the last merge") (concat backend-name "!" rev)) ((eq state 'removed) (setq state-echo "File removed from the VC system") (concat backend-name "!" rev)) ((eq state 'missing) (setq state-echo "File tracked by the VC system, but missing from the file system") (concat backend-name "?" rev)) (t (setq state-echo "Locally modified file") (concat backend-name ":" rev))) All possible states can be seen using C-h f vc-state RET.