From: Andre Spiegel <spiegel@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [patch] add interactive browse of revisions from vc *Annotate* buffers
Date: Mon, 19 Jan 2004 14:33:59 +0100 [thread overview]
Message-ID: <1074519239.10692.24.camel@localhost> (raw)
In-Reply-To: <wc3wu7qqmxb.fsf@mu.cis.ohio-state.edu>
On Sat, 2004-01-17 at 22:34, Benjamin Rutt wrote:
> Now that it seems like everyone has reached agreement on the key
> bindings, here is the latest patch.
Thanks, I'm really looking forward to getting this installed.
A few minor points: We already have a backend-specific function
vc-BACKEND-previous-version, which currently has a single default
implementation, vc-default-previous-version in vc.el. It handles
RCS/CVS revision numbers (it's used to provide the defaults for C-u C-x
v =).
Could you please take a look at that function and resolve the redundancy
with vc-cvs-increment/decrement-revision in your code? The reconciled
implementation should combine the behaviour of both previous functions.
Please also put these functions into vc.el as defaults for all backends,
because the RCS-style revision numbers are still common for most
backends.
I'm a bit puzzled by your function vc-current-line. I must admit that
I'm totally clueless in this area, but is there really no simpler way to
determine this? Surely, this problem must have occured elsewhere
already. Anybody got a hint for us?
+(defun vc-current-line ()
+ "Returns the current buffer's line number."
+ (let ((oldpoint (point)) start)
+ (save-excursion
+ (save-restriction
+ (goto-char (point-min))
+ (widen)
+ (forward-line 0)
+ (setq start (point))
+ (goto-char oldpoint)
+ (forward-line 0)
+ (1+ (count-lines (point-min) (point)))))))
Last point: The doc strings in your functions do not comply with the
Emacs guidelines yet. Every function must have a doc string, and the
first line must be a complete sentence of its own (in the imperative
voice). Please see the corresponding sections in the Elisp manual.
next prev parent reply other threads:[~2004-01-19 13:33 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-12 2:54 [patch] add interactive browse of revisions from vc *Annotate* buffers Benjamin Rutt
2004-01-12 5:30 ` Andre Spiegel
2004-01-12 11:06 ` Kim F. Storm
2004-01-12 13:58 ` Benjamin Rutt
2004-01-12 17:11 ` Kim F. Storm
2004-01-12 17:20 ` Benjamin Rutt
2004-01-12 20:09 ` Andre Spiegel
2004-01-12 20:35 ` Benjamin Rutt
2004-01-13 10:57 ` Kim F. Storm
2004-01-14 15:45 ` Richard Stallman
2004-01-14 21:55 ` Kim F. Storm
2004-01-15 19:58 ` Andre Spiegel
2004-01-16 10:40 ` Richard Stallman
2004-01-16 16:30 ` Kim F. Storm
2004-01-17 12:55 ` Richard Stallman
2004-01-17 21:34 ` Benjamin Rutt
2004-01-19 13:33 ` Andre Spiegel [this message]
2004-01-19 20:39 ` Kai Grossjohann
2004-01-19 20:54 ` Benjamin Rutt
2004-01-20 1:28 ` Kim F. Storm
2004-01-20 15:31 ` Richard Stallman
2004-01-21 11:26 ` Kim F. Storm
2004-01-21 14:15 ` Stefan Monnier
2004-01-21 16:39 ` Kim F. Storm
2004-01-21 18:38 ` Stefan Monnier
2004-01-22 22:06 ` Kim F. Storm
2004-01-22 23:39 ` Andre Spiegel
2004-01-23 1:54 ` Benjamin Rutt
2004-01-22 19:00 ` Richard Stallman
2004-01-23 2:02 ` Miles Bader
2004-02-07 2:06 ` Kim F. Storm
2004-01-20 18:11 ` Kevin Rodgers
2004-01-20 15:32 ` Stefan Monnier
2004-01-20 16:45 ` Benjamin Rutt
2004-01-20 18:26 ` Stefan Monnier
2004-01-20 20:10 ` Benjamin Rutt
2004-01-19 21:13 ` Benjamin Rutt
2004-01-20 17:58 ` Andre Spiegel
2004-01-20 20:05 ` Benjamin Rutt
2004-01-20 20:33 ` Stefan Monnier
2004-01-20 22:28 ` Benjamin Rutt
2004-01-22 23:20 ` Kevin Rodgers
2004-01-22 23:40 ` Stefan Monnier
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=1074519239.10692.24.camel@localhost \
--to=spiegel@gnu.org \
--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.