GNU bug report logs -
#23436
[PATCH] Use the true name of a file to determine responsible vc.
Previous Next
Reported by: Hong Xu <hong <at> topbug.net>
Date: Tue, 3 May 2016 21:34:01 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Hong Xu <hong <at> topbug.net>
> Date: Sat, 29 Oct 2016 17:42:01 -0700
> Cc: 23436 <at> debbugs.gnu.org
>
> The attachment is a draft of my proposed doc change. Feel free to adjust
> the contents and the language.
Thanks, see a few comments below.
> diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
> index aca29910b7d3..8f31fa168c23 100644
> --- a/doc/emacs/maintaining.texi
> +++ b/doc/emacs/maintaining.texi
This should go to the ELisp manual, not the Emacs User manual.
> +@defun vc-responsible-backend file
> +This function can be used to determine the responsible VC backend of
> +the given file path @var{file}.
GNU coding standards frown on using "path" for anything that isn't a
PATH-style list of directories. We use "file name" instead, but in
this case you don't need even that: just say "the given @var{file}".
> For example, if @code{emacs.c} is a
emacs.c is a file, so it should have the @file markup, not @code.
> +file tracked by git, @code{(vc-responsible-backend "emacs.c")} returns
> +@code{"Git"}.
^^^^^^^^^^^^
You want @samp{Git} here, without the quotes. The quotes might
mislead someone into thinking the result is a string.
Last, but not least: documentation changes need ChangeLog-style commit
log messages as well (just use "C-x 4 a" to get a preformatted
skeleton from which you could start).
This bug report was last modified 8 years and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.