From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#5665: 23.1; VC commands fail when the version control back end is SCCS Date: Tue, 2 Mar 2010 11:07:20 -0800 (PST) Message-ID: <201003021907.o22J7KaL028527@godzilla.ics.uci.edu> References: <1267470787.28800.1362528989@webmail.messagingengine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267557887 16802 80.91.229.12 (2 Mar 2010 19:24:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2010 19:24:47 +0000 (UTC) Cc: 5665@debbugs.gnu.org To: "Ron Mitchell" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 02 20:24:41 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NmXhv-0001em-UY for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Mar 2010 20:24:40 +0100 Original-Received: from localhost ([127.0.0.1]:60311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmXhv-0002CA-8L for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Mar 2010 14:24:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmXhK-0001WQ-Jj for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2010 14:24:02 -0500 Original-Received: from [140.186.70.92] (port=57223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmXhJ-0001Uc-Ay for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2010 14:24:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmXhI-00057I-9X for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2010 14:24:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36493) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmXhI-00057D-6C for bug-gnu-emacs@gnu.org; Tue, 02 Mar 2010 14:24:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NmXRq-00085c-7f; Tue, 02 Mar 2010 14:08:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Mar 2010 19:08:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5665 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5665-submit@debbugs.gnu.org id=B5665.126755685331086 (code B ref 5665); Tue, 02 Mar 2010 19:08:02 +0000 Original-Received: (at 5665) by debbugs.gnu.org; 2 Mar 2010 19:07:33 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmXRN-00085L-1M for submit@debbugs.gnu.org; Tue, 02 Mar 2010 14:07:33 -0500 Original-Received: from paul-mcgann-v0.ics.uci.edu ([128.195.1.147]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmXRL-00085C-CC for 5665@debbugs.gnu.org; Tue, 02 Mar 2010 14:07:32 -0500 Original-Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by paul-mcgann-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id o22J7Lrb019672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Mar 2010 11:07:21 -0800 Original-Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id o22J7KaL028527; Tue, 2 Mar 2010 11:07:20 -0800 (PST) In-Reply-To: <1267470787.28800.1362528989@webmail.messagingengine.com> (Ron Mitchell's message of "Mon, 01 Mar 2010 19:13:07 +0000") Original-Lines: 58 X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: o22J7Lrb019672 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 02 Mar 2010 14:08:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35387 Archived-At: "Ron Mitchell" writes: > I can't send mail from the host system, so I used report-emacs-bug to > generate a mail which I've copied below. > > From: "RON MITCHELL (UNIVERSE USER)" > To: bug-gnu-emacs@gnu.org > Subject: 23.1; VC commands fail when the version control back end is > SCCS > --text follows this line-- > > I'm running emacs on HP-UX. > > Our SCCS repository is under location /common, as set in the environment > variable PROJECTDIR: > $ env | grep PROJECTDIR > PROJECTDIR=/common > $ > > I create a file called 'myfile' in the current directory. It is not yet > registered to SCCS. > > I visit the file. > > Attempt to register the file with C-x v v > ----------------------------------------- > > It fails. There is an error message shown in the *vc* buffer: > ERROR: missing file arg (cm3) > > Backtrace: > > Debugger entered--Lisp error: (error "Running sccs admin -r1.1 -fb > -imyfile -y ../../common/SCCS/s.myfile...FAILED (status 1)") > signal(error ("Running sccs admin -r1.1 -fb -imyfile -y [snip similar issues] > Preliminary Diagnosis > --------------------- > > It seems to me that emacs is attempting to run the SCCS front-end > command, sccs(1), against the repository filename, > '/common/SCCS/s.myfile', instead of against the plain filename > 'myfile' as required. VC with SCCS on a system that does not use the PROJECTDIR environment variable seems to work fine. PROJECTDIR is used in one place in vc-sccs.el: vc-sccs-search-project-dir. That function does: (and dir (expand-file-name (concat "s." basename) dir))) so it looks like your diagnosis is probably right. The code in question has not changed in a very long time, so probably PROJECDIR support never worked. If you want to fix this vc-sccs-search-project-dir and maybe it's users is what you'd have to change.