From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [veekae@gmail.com: bug in vc-state functions in Emacs v 22.1] Date: Fri, 26 Oct 2007 05:46:04 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1193392123 22993 80.91.229.12 (26 Oct 2007 09:48:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2007 09:48:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: esr@snark.thyrsus.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 26 11:48:44 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IlLo3-000266-Ew for ged-emacs-devel@m.gmane.org; Fri, 26 Oct 2007 11:48:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlLnu-0005zc-5B for ged-emacs-devel@m.gmane.org; Fri, 26 Oct 2007 05:48:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlLlY-0004R6-Pz for emacs-devel@gnu.org; Fri, 26 Oct 2007 05:46:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlLlW-0004PG-Qk for emacs-devel@gnu.org; Fri, 26 Oct 2007 05:46:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlLlW-0004P1-FS for emacs-devel@gnu.org; Fri, 26 Oct 2007 05:46:06 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IlLlV-0001zz-Rl for emacs-devel@gnu.org; Fri, 26 Oct 2007 05:46:06 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IlLlU-0008Ar-IR; Fri, 26 Oct 2007 05:46:04 -0400 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:81762 Archived-At: 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" To: bug-gnu-emacs@gnu.org 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--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: $ cvs status myfile.sh|grep Status File: myfile.sh Status: Needs Patch $ $ 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")) $ $ 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 $ 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 $ - ------=_Part_17733_22620424.1191353491870 Content-Type: text/html; 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.
 
 
$ cvs status myfile.sh|grep Status
File: myfile.sh           Status: Needs Patch
$
 
$ 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"))
$
 
- ------=_Part_17733_22620424.1191353491870-- ------- End of forwarded message -------