all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Guru Gandharv" <veekae@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug in vc-state functions in Emacs v 22.1
Date: Tue, 2 Oct 2007 15:31:31 -0400	[thread overview]
Message-ID: <9bd2512a0710021231y60941059uea06c07792af2acb@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1445 bytes --]

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: <parimiv@sx86qa3.nyc:/u/parimiv/work/cos/xrsh>

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

$ <parimiv@sx86qa3.nyc:/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"))
$

$ <parimiv@sx86qa3.nyc:/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
<parimiv@sx86qa3.nyc:/u/parimiv/tmp>$
<parimiv@sx86qa3.nyc:/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
<parimiv@sx86qa3.nyc:/u/parimiv/tmp>$ <parimiv@sx86qa3.nyc:/u/parimiv/tmp>

[-- Attachment #2: Type: text/html, Size: 2069 bytes --]

                 reply	other threads:[~2007-10-02 19:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9bd2512a0710021231y60941059uea06c07792af2acb@mail.gmail.com \
    --to=veekae@gmail.com \
    --cc=bug-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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.