From: Thien-Thi Nguyen <ttn@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: vc-checkin (RCS) always. Problem with vc-checkin
Date: Mon, 19 Oct 2015 00:03:03 +0200 [thread overview]
Message-ID: <87fv177s2w.fsf@zigzag.favinet> (raw)
In-Reply-To: <87mvwyufhf.fsf@mat.ucm.es> (Uwe Brauer's message of "Mon, 07 Sep 2015 20:44:12 +0000")
[-- Attachment #1: Type: text/plain, Size: 1616 bytes --]
() Uwe Brauer <oub@mat.ucm.es>
() Mon, 07 Sep 2015 20:44:12 +0000
> (vc-call-backend 'RCS 'checkin (list (buffer-file-name)) "")
Hm it does not work work me.
In a file which is under version control I
used eval-last-sexp for
(vc-call-backend 'RCS 'checkin (list (buffer-file-name)) "")
and I obtained: the following error message
ci: missing message for -m option
In lisp/vc/vc.el, the generic ‘checkin’ signature is documented
as (reproduced here):
checkin (files rev comment)
Commit changes in FILES to this backend. REV is a historical artifact
and should be ignored. COMMENT is used as a check-in comment.
The implementation should pass the value of vc-checkin-switches to
the backend command.
(If you don't have Emacs Lisp installed as part of the Emacs
installation, stop reading, obtain that, then return here.)
Thus, the above invocation receives the parms:
FILES -- (list (buffer-file-name))
REV -- ""
and COMMENT is unspecified. Another approach, a bit higher in
abstraction, would be to use ‘vc-rcs-checkin’ directly. Its
docstring in my old (2014-01-01) copy is not so useful, but the
*Help* buffer produced by ‘C-h f vc-rcs-checkin RET’ shows the
same signature described above; you can probably figure it out.
--
Thien-Thi Nguyen -----------------------------------------------
(if you're human and you know it) read my lisp:
(defun responsep (type via)
(case type
(technical (eq 'mailing-list via))
...))
---------------------------------------------- GPG key: 4C807502
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2015-10-18 22:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-06 19:04 vc-checkin (RCS) always. Problem with vc-checkin Uwe Brauer
2015-09-07 3:49 ` Pierre Lorenzon
2015-09-07 20:44 ` Uwe Brauer
2015-10-18 22:03 ` Thien-Thi Nguyen [this message]
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=87fv177s2w.fsf@zigzag.favinet \
--to=ttn@gnu.org \
--cc=help-gnu-emacs@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.
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).