unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-devel@gnu.org
Subject: Re: vc-git feature proposale: modeline and annotate
Date: Thu, 15 Dec 2022 11:00:33 +0200	[thread overview]
Message-ID: <83o7s5kpn2.fsf@gnu.org> (raw)
In-Reply-To: <87bko5qdhu.fsf@mat.ucm.es> (message from Uwe Brauer on Thu, 15 Dec 2022 09:26:21 +0100)

> From: Uwe Brauer <oub@mat.ucm.es>
> Cc: Uwe Brauer <oub@mat.ucm.es>, emacs-devel@gnu.org
> Date: Thu, 15 Dec 2022 09:26:21 +0100
> 
> >> I would like to suggest to have, at least optionally, the result 
> >> of 
> >> (shell-command "git name-rev HEAD")
> >> 
> >> In the modeline and/or   in the annotation buffer.
> 
> > What prevents you from having that?  IOW, why are you posting this
> > here, when you can already customize the heck out your mode lines?
> 
> Are we talking about the mode line? I don't know how to obtain the
> feature I discuss below.

One way is by using the :eval construct in mode-line-format.

> Currently (taking auctex as an example) I obtain 
> 
> f7c0c735d (Tassilo Horn                   2020-09-04     1) ;;; tex.el --- Support for TeX documents.  -*- lexical-binding: t; -*-
> fedf75103 (Per Abrahamsen                 1994-04-07     2) 
> 4b1c7015a (Ikumi Keita                    2022-03-19     3) ;; Copyright (C) 1985-2022 Free Software Foundation, Inc.
> f23d8867d (Ralf Angeli                    2004-05-02     4) 
> 5b40e9b1b (David Kastrup                  2005-03-28     5) ;; Maintainer: auctex-devel@gnu.org
> 7e5d40a53 (David Kastrup                  2003-02-15    14) 
> 
> 
> But I would like to have something like this
> 
> master~2 (Tassilo Horn                   2020-09-04     1) ;;; tex.el --- Support for TeX documents.  -*- lexical-binding: t; -*-
> master~100 (Per Abrahamsen               1994-04-07     2) 
> master~40 (Ikumi Keita                   2022-03-19     3) ;; Copyright (C) 1985-2022 Free Software Foundation, Inc.
> master~10 (Ralf Angeli                   2004-05-02     4) 
> master~5 (David Kastrup                  2005-03-28     5) ;; Maintainer: auctex-devel@gnu.org
> master~100 (David Kastrup                2003-02-15    14) 
> 
> The doctring of vc-annotate does not indicate how to achieve that.
> Can you tell me how?

I don't think "git blame" can do that.



  reply	other threads:[~2022-12-15  9:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-14 21:36 vc-git feature proposale: modeline and annotate Uwe Brauer
2022-12-15  7:53 ` Eli Zaretskii
2022-12-15  8:26   ` Uwe Brauer
2022-12-15  9:00     ` Eli Zaretskii [this message]
2022-12-15  9:38       ` Uwe Brauer
2022-12-15 13:34       ` Uwe Brauer

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83o7s5kpn2.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=oub@mat.ucm.es \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).