From: <klaus.berndl@sdm.de>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: AW: behavior of vc-recompute-state in combination withvc-cvs-stay-local is t
Date: Tue, 30 Nov 2004 12:21:55 +0100 [thread overview]
Message-ID: <1B3ACCFD5694A94DBA4E231402B0E9ED9DD6E7@mucmail1.sdm.de> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1946 bytes --]
On Mon, 2004-11-29 at 17:31 +0100, klaus.berndl@sdm.de wrote:
>> 4. Running (vc-recompute-state "/a/file/under/remote-repository-CVS/file.txt")
>> ==> returns always nil, because the state-binding in the vc-cvs-state is
>> always nil for that file.
>The code was simply based on the assumption that vc-recompute-state
>would only be called for files that are already visited. In this case,
>vc-state can never be nil because we compute it at visiting time
>already.
ah, i had already a suspicion like that....
But what i still do not understand, why vc-recompute-state behaves
different related if the repository is local or remote 8at least this
is the only difference i can imagine between the two testcases - see
my first postin, steps 4 and 3?
>I've changed this now and moved vc-recompute-state into vc-hooks.el. It
>should always return a valid state now.
ah, this sounds wonderful! IMHO this would be a very good enhencement
for tools like ECB which want to display a VC-state also for file
not already visited... Thanks, Andre!
May i ask another problem/question related to `vc-state'? Please see
the following very simple and fast testable scenario:
1. load a file (lets say the filename is XXX.txt) into Emacs, which is
under control of CVS
2. do some editing changes and save it - do not kill the buffer
3. M-: (vc-state "XXX.txt") RET ==> return 'edited for me
4. No checkin this file but not from within Emacs, so e.g. via bash command line
5. M-: (vc-state "XXX.txt") RET ==> returns again 'edited
(but currently 'up-to-date would be correct)
6. Call M-x revert-buffer
7. Again M-: (vc-state "XXX.txt") RET ==> Now vc-state returns the correct
'up-to-date state
So, which mysterious things are done by revert-buffer so *after* it vc-state returns
correct 'up-to-date state but wrong 'edited state if called *before* the
revert-buffer???
Thanks again,
Klaus
[-- Attachment #1.2: Type: text/html, Size: 2711 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2004-11-30 11:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-30 11:21 klaus.berndl [this message]
2004-11-30 11:39 ` AW: behavior of vc-recompute-state in combination withvc-cvs-stay-local is t Andre Spiegel
2004-11-30 13:25 ` Stefan
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=1B3ACCFD5694A94DBA4E231402B0E9ED9DD6E7@mucmail1.sdm.de \
--to=klaus.berndl@sdm.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).