Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Jeff G. Micono 9426" <jgmicon@sandia.gov>
Subject: Emacs 19.29 vc problems and fix on DEC Alpha
Date: 1995/10/31	[thread overview]
Message-ID: <473u5r$9o@news.sandia.gov> (raw)

I've noticed 2 problems with vc on Emacs 19.29 for DEC Alpha
using SCCS.

Problem and hack for vc-register:
=================================
The first is that C-x v i returns an error message from admin.
This is due to the fact that emacs fails to supply a value
to the -y argument.  I got mine working by changing the following in
vc-backend-admin in vc.el (line 1533):

was: (vc-do-command 0 "admin" file 'MASTER	;; SCCS
			  (and rev (concat "-r" rev))
			  "-fb"
			  (concat "-i" file)
			  (and comment (concat "-y" comment))
			  (format
			   (car (rassq 'SCCS vc-master-templates))
			   (or (file-name-directory file) "")
			   (file-name-nondirectory file)))

is:  	   (vc-do-command 0 "admin" file 'MASTER	;; SCCS
			  (and rev (concat "-r" rev))
			  "-fb"
			  (concat "-i" file)
;;			  (and comment (concat "-y" comment))
			  (format
			   (car (rassq 'SCCS vc-master-templates))
			   (or (file-name-directory file) "")
			   (file-name-nondirectory file)))


Problem with vc-toggle-read-only:
=================================
Once you've got the vc-register stuff working, there is still a
problem checking stuff back in.  If you check out a file, change
it, and check it back in without killing the buffer containing the
file, everything is fine.  But if you try this:

M-x find-file
test.c
   ## emacs recognizes SCCS minor mode
C-x C-q
   ## checked out, ready for edits
C-x k
   ## kill buffer
M-x find-file
test.c
   ## emacs recognizes SCCS minor mode
   ## then you make changes
C-x C-q

Now, you get an error from vcdiff:
test.c is not an SCCS file.

I then modified vcdiff to print out its arguments:  Here's how
vcdiff is being run:
vcdiff -q test.c

Any help would be appreciated.  Please post here as my email is
currently out of whack at sandia.  If you must email me, use
my private email of aldebara@indirect.com.

Jeff Micono, Ktech Corporation
Mercenary for Sandia National Labs




                 reply	other threads:[~1995-10-31  5:00 UTC|newest]

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox