From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Subject: Re: vc-mode-line
Date: Fri, 06 Aug 2010 08:52:53 +0200 [thread overview]
Message-ID: <87ocdg5j22.fsf@telefonica.net> (raw)
In-Reply-To: buovd7ol3w9.fsf@dhlpc061.dev.necel.com
Miles Bader <miles@gnu.org> writes:
> Óscar Fuentes <ofv@wanadoo.es> writes:
>> It's trivial to make a patch for adding a configurable face for each VC
>> state. The question is: should they default to the current face, so the
>> modeline looks the same way as it does now, or should I use some
>> imagination and choose some (possibly horrible) defaults?
>
> I think a face for each state is excessive and not actually so flexible
> (because it only allows the face to be customized).
>
> Better just have a user-customizable alist that supports propertized strings.
What I have in mind is to apply the face to all the VC text on the
modeline ("Git-branchname" or "SVN:1020") not just to the state char, as
I pretended at first. Dunno how/if customizable propertized strings fits
that scenario.
OTOH it would be convenient to concentrate the user-visible info
associated to a VC state into a single function or list, instead of
being hard-coded into vc-default-mode-line-string:
(defun vc-info-for-state (state)
(cond ((eq state 'up-to-date)
'("Up to date" ":" vc-up-to-date-state-face))
...
This way if a backend FOO defines vc-FOO-mode-line-string it can use
that function for keeping consistentency with the other backends.
next prev parent reply other threads:[~2010-08-06 6:52 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 ` vc-mode-line Dan Nicolaescu
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 ` Óscar Fuentes [this message]
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=87ocdg5j22.fsf@telefonica.net \
--to=ofv@wanadoo.es \
--cc=emacs-devel@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.