From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Phil Hagelberg <phil@hagelb.org>
Cc: emacs-devel@gnu.org
Subject: Re: Hyperlinks in *vc-change-log*
Date: Wed, 09 Apr 2008 15:59:00 -0400 [thread overview]
Message-ID: <jwvr6dehkjf.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87fxtvng9t.fsf@hagelb.org> (Phil Hagelberg's message of "Wed, 09 Apr 2008 09:29:18 -0700")
> I've written up some code that I find quite useful for working with
> VC. The code below adds buttons to each commit entry in *vc-change-log*
> buffers, essentially making them hyperlinks to the revision mentioned
> using vc-find-revision.
Doesn't seem like a bad idea. But it should be generalized to show not
only files but also diffs.
> * The button actions use closures and thus require the cl library. As I
> understand it, this dependency would have to be removed for it to be
> included in Emacs. I consider this to be somewhat disappointing as it
> will add complexity to the code, but I respect this choice of the
> maintainers.
Not a problem, you misunderstood the requirement.
> * It only supports three VC backends: SVN, CVS, and Git. This is simply
> because I don't have much experience with other VC systems; it would
> be trivial to add support for more by adding appropriate entries to
> vc-button-regexp-alist to match what a commit looks like in each
> backend.
The code should not be thought of as a feature of VC but of log-view.el.
> * Right now it only works with *vc-change-log* buffers that correspond
> to a single file. I am not sure what the action makes sense for
> buffers that correspond to a fileset; I have mostly used VC logs in
> the context of single files.
For multifile logs, the best option would be to popup a menu of files.
BTW this is specific to the display of files. For `diffs', this problem
wouldn't occur.
> * It currently uses hooks. If it were incorporated into Emacs, it could
> probably be added directly to an existing function.
Yes, it should probably be merged directly into log-view's font-lock
regexps or something like that.
Stefan
next prev parent reply other threads:[~2008-04-09 19:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 16:29 Hyperlinks in *vc-change-log* Phil Hagelberg
2008-04-09 17:43 ` Lennart Borgman (gmail)
2008-04-09 19:59 ` Stefan Monnier [this message]
2008-04-10 7:37 ` Dan Nicolaescu
2008-04-11 5:48 ` Phil Hagelberg
2008-04-11 16:36 ` Stefan Monnier
2008-04-12 6:44 ` Phil Hagelberg
2008-04-13 17:33 ` Thien-Thi Nguyen
2008-04-15 22:33 ` Juri Linkov
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=jwvr6dehkjf.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=phil@hagelb.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.