From: Andre Spiegel <spiegel@gnu.org>
Cc: "Kai Großjohann" <kai@emptydomain.de>,
michael.albinus@gmx.de, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Tramp and VC integration: "calling user"
Date: Sat, 02 Apr 2005 22:52:03 +0200 [thread overview]
Message-ID: <1112475123.17621.255.camel@localhost> (raw)
In-Reply-To: <jwvd5tefh91.fsf-monnier+emacs@gnu.org>
On Fri, 2005-04-01 at 14:14 -0500, Stefan Monnier wrote:
> Am I right in believing that this is a problem specific to vc-rcs.el?
I know of no other occurences, and I'd be happy to localize changes into
vc-rcs.el as much as possible. Michael Albinus has stated, however (on
tramp-devel), that "such a function is on my wishlist for a while, not
only because of vc." He didn't give any more details, so I'll put him
in copy and ask him to let us know why he would like something like
"file-calling-user", except for the use in vc-rcs.el.
> Couldn't vc-rcs.el use RCS directly instead of reproducing RCS's
> behavior?
> I.e. just try a dry-run of `co', and see if it fails?
I did things like that when I first made patches to VC, but we decided
against that at the time; it was just too slow, although it is perhaps
clean conceptually. The "dry-run" of co seems very much like a kludge
to me, though.
> Or otherwise run (shell-command "id") since shell-command is a fileop that
> can be caught by file-name-handlers and run on the remote host.
That sounds like a very interesting alternative, maybe better than
file-calling-user.
> I just feel that adding a global command is difficult to justify just for
> the odd case where all the following conditions are met:
> - you're using vc-rcs.el.
> - you're using it over Tramp.
> - you've played with the permissions such that they don't give us directly
> the proper information about whether a file is locked.
Well number one is not odd at all, RCS is still a widely used version
control systems at many sites. Number three is also not very unlikely
-- as I said, I've seen things like that happen at almost every site
where RCS is used. It is very common that clueless users (or lazy ones)
simply change the permissions of a file to make it "work", without
realizing that they are circumventing RCS this way. (I got a bug report
from someone who managed to get himself into trouble this way just this
present week.) VC has the potential to handle these cases much more
gracefully than RCS does on its own. Number two in your list is what's
not working currently, and we're only trying to achieve it for reasons
of consistency.
As I said, I'd be happy to make the change as local to vc-rcs.el as
possible. I can certainly envision Tramp-specific code in VC, because
it's just another standard part of Emacs. But maybe a more general
solution is in fact called for.
next prev parent reply other threads:[~2005-04-02 20:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-31 13:07 Tramp and VC integration: "calling user" Kai Großjohann
2005-03-31 13:34 ` Stefan Monnier
2005-03-31 14:40 ` Kai Großjohann
2005-03-31 15:50 ` Stefan Monnier
2005-03-31 17:13 ` Kai Großjohann
2005-03-31 16:54 ` Andre Spiegel
2005-04-01 4:10 ` Richard Stallman
2005-04-01 17:43 ` Andre Spiegel
2005-04-01 19:14 ` Stefan Monnier
2005-04-02 20:52 ` Andre Spiegel [this message]
2005-04-03 17:19 ` Michael Albinus
2005-04-03 5:19 ` Richard Stallman
2005-04-03 10:15 ` Kai Großjohann
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=1112475123.17621.255.camel@localhost \
--to=spiegel@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=kai@emptydomain.de \
--cc=michael.albinus@gmx.de \
--cc=rms@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 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).