all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug in vc-state functions in Emacs v 22.1
@ 2007-10-02 19:31 Guru Gandharv
  0 siblings, 0 replies; only message in thread
From: Guru Gandharv @ 2007-10-02 19:31 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-02 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 19:31 bug in vc-state functions in Emacs v 22.1 Guru Gandharv

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.