emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: bug in vc-state functions in Emacs v 22.1]


From: Richard Stallman
Subject: address@hidden: bug in vc-state functions in Emacs v 22.1]
Date: Fri, 26 Oct 2007 05:46:04 -0400

I sent this message three times to ESR, and never got a response.
Would someone else please fix deal with these problems, then ack?


Can you please fix these bugs, then ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_MESSAGE,
        UNPARSEABLE_RELAY autolearn=failed version=3.1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta;
        
h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;
        bh=BfiJxZJHM/B++ZT3T79Kq349pkNNna8RGbNvRYovm5Q=;
        
b=ka+sPk9fjgyIpK4/6s9h1z/iLGZel4lpDDlwbL8YhV56HTe9Um5hDJLzRwEMRI27mkCvurq+E4/Q87fcVclNViLiVxOMTPT2ek2ghHTsnP8N9Wv63dD86F/uNdxfgsxZA5NG20m8zQETY+PvOJJWZc0QSzbSgPYL8QdQ9pzs6Us=
Date: Tue, 2 Oct 2007 15:31:31 -0400
From: "Guru Gandharv" <address@hidden>
To: address@hidden
MIME-Version: 1.0
Content-Type: multipart/alternative; 
        boundary="----=_Part_17733_22620424.1191353491870"
Subject: bug in vc-state functions in Emacs v 22.1

- ------=_Part_17733_22620424.1191353491870
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

In batch mode vc related commands doesn't work as expected. In editor
mode it partially works, if we do a vc-<backend>-state before we do vc-state
it gives correct state and a 'vc-recompute-state' gives correct state in any
order.
I verified the latest Emacs CVS source and the behavior is still same. It
works fine with vc version shipped with Emacs v21.3.

*Problem *Illustration: <address@hidden:/u/parimiv/work/cos/xrsh>

$ cvs status myfile.sh|grep Status
File: myfile.sh           Status: Needs Patch
$ <address@hidden:/u/parimiv/work/cos/xrsh>

$ <address@hidden:/u/parimiv/tmp> cat get-vc-state.el
(require 'vc-cvs)
(require 'vc)
(message "%s" (emacs-version))
(if (> emacs-major-version 21)
    (message "%s" (vc-recompute-state "/tmp/myfile.sh"))
    (message "%s" (vc-state "/tmp/myfile.sh")))
(message "%s" (vc-cvs-state "/tmp/myfile.sh"))
(message "%s" (vc-state "/tmp/myfile.sh"))
$

$ <address@hidden:/u/parimiv/tmp> emacs-22.1 -batch -l get-vc-state.el
GNU Emacs 22.1.1 (i386-pc-solaris2.10, GTK+ Version 2.4.9)
 of 2007-09-27 on sx86qa3.nyc.deshaw.com
up-to-date
up-to-date
up-to-date
<address@hidden:/u/parimiv/tmp>$
<address@hidden:/u/parimiv/tmp> emacs-21.3
- -batch -l get-vc-state.el
GNU Emacs 21.3.1 (i386-pc-solaris2.10, Motif Version 2.1.0)
 of 2005-05-14 on sx86qa1.nyc.deshaw.com
up-to-date
needs-patch
needs-patch
<address@hidden:/u/parimiv/tmp>$ <address@hidden:/u/parimiv/tmp>

- ------=_Part_17733_22620424.1191353491870
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>In batch mode vc related commands doesn&#39;t work as expected. In editor 
mode&nbsp;it partially works, if we do a vc-&lt;backend&gt;-state before we do 
vc-state it gives correct state and a &#39;vc-recompute-state&#39; gives 
correct state in any order. 
<br>I verified the latest Emacs CVS source and the behavior is still same. It 
works fine with vc version shipped with Emacs v21.3.</div>
<div>&nbsp;</div>
<div><u>Problem </u><a 
href="mailto:address@hidden:/u/parimiv/work/cos/xrsh";><font 
color="#000000">Illustration:</font></a></div>
<div>&nbsp;</div>
<div>$&nbsp;cvs status myfile.sh|grep Status<br>File: 
myfile.sh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status: 
Needs Patch<br><a 
href="mailto:address@hidden:/u/parimiv/work/cos/xrsh";>$</a><br>&nbsp;</div>
<div><a href="mailto:address@hidden:/u/parimiv/tmp";>$</a>&nbsp;cat 
get-vc-state.el<br>(require &#39;vc-cvs)<br>(require &#39;vc)<br>(message 
&quot;%s&quot; (emacs-version))<br>(if (&gt; emacs-major-version 
21)<br>&nbsp;&nbsp; &nbsp;(message &quot;%s&quot; (vc-recompute-state 
&quot;/tmp/myfile.sh&quot;))
<br>&nbsp;&nbsp; &nbsp;(message &quot;%s&quot; (vc-state 
&quot;/tmp/myfile.sh&quot;)))<br>(message &quot;%s&quot; (vc-cvs-state 
&quot;/tmp/myfile.sh&quot;))<br>(message &quot;%s&quot; (vc-state 
&quot;/tmp/myfile.sh&quot;))<br>$</div>
<div>&nbsp;</div>
<div><a href="mailto:address@hidden:/u/parimiv/tmp";>$</a><a 
href="mailto:address@hidden:/u/parimiv/tmp";>&nbsp;emacs-22.1 -batch -l 
get-vc-state.el<br>GNU Emacs 22.1.1 (i386-pc-solaris2.10, GTK+ Version 
2.4.9)<br>&nbsp;of 2007-09-27 on sx86qa3.nyc.deshaw.com
<br>up-to-date<br>up-to-date<br>up-to-date<br></a><a 
href="mailto:address@hidden:/u/parimiv/tmp";>$</a><a 
href="mailto:address@hidden:/u/parimiv/tmp";>&nbsp;emacs-21.3 -batch -l 
get-vc-state.el<br>GNU Emacs 21.3.1 (i386-pc-solaris2.10, Motif Version 2.1.0)
<br>&nbsp;of 2005-05-14 on 
sx86qa1.nyc.deshaw.com<br>up-to-date<br>needs-patch<br>needs-patch<br></a><a 
href="mailto:address@hidden:/u/parimiv/tmp";>$</a><br>&nbsp;</div>

- ------=_Part_17733_22620424.1191353491870--
------- End of forwarded message -------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]