all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@gnu.org>
To: Miles Bader <miles@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: vc-mode-line
Date: Thu, 05 Aug 2010 01:20:08 -0400	[thread overview]
Message-ID: <yxqhbj9ws8n.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <buok4o5fyk4.fsf@dhlpc061.dev.necel.com> (Miles Bader's message of "Thu\, 05 Aug 2010 13\:55\:39 +0900")

Miles Bader <miles@gnu.org> 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.



  reply	other threads:[~2010-08-05  5:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 11:53 vc-mode-line Eli Zaretskii
2010-07-30 12:34 ` vc-mode-line Andy Moreton
2010-08-01 23:04   ` vc-mode-line Stefan Monnier
2010-07-30 15:52 ` vc-mode-line Leo
2010-08-05  4:16 ` vc-mode-line Dan Nicolaescu
2010-08-05  4:55   ` vc-mode-line Miles Bader
2010-08-05  5:20     ` Dan Nicolaescu [this message]
2010-08-05  6:39     ` vc-mode-line Stephen J. Turnbull
2010-08-05 16:20       ` vc-mode-line David Kastrup
2010-08-05 14:57     ` vc-mode-line Eli Zaretskii
2010-08-05 18:54     ` vc-mode-line Dan Nicolaescu
2010-08-06  2:41       ` vc-mode-line Miles Bader
2010-08-06  3:38         ` vc-mode-line Óscar Fuentes
2010-08-06  4:59           ` vc-mode-line Óscar Fuentes
2010-08-06  5:13             ` vc-mode-line Miles Bader
2010-08-06  6:52               ` vc-mode-line Óscar Fuentes
2010-08-06  8:13                 ` vc-mode-line Eli Zaretskii
2010-08-06 14:23                   ` vc-mode-line Óscar Fuentes
2010-08-06 16:33                   ` vc-mode-line Óscar Fuentes
2010-08-06 18:12                     ` vc-mode-line Eli Zaretskii
2010-08-06  5:12           ` vc-mode-line Miles Bader
2010-08-10 15:29           ` vc-mode-line David House
2010-08-10 15:43             ` vc-mode-line Óscar Fuentes
2010-08-12 13:08               ` vc-mode-line Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yxqhbj9ws8n.fsf@fencepost.gnu.org \
    --to=dann@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.