unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem with vc-mcvs-registered
@ 2003-05-13 11:48 David PONCE
  2003-05-13 13:54 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: David PONCE @ 2003-05-13 11:48 UTC (permalink / raw)


Hi,

Using latest CVS version of Emacs, I got the following error from the
autoloaded version of `vc-mcvs-registered', when it is passed a file
name of the form "~/something":

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  directory-file-name(nil)
  (if (file-directory-p (expand-file-name "MCVS/CVS" dir)) t (directory-file-name dir))
  (setq dir (if (file-directory-p ...) t (directory-file-name dir)))
  (while (and (stringp dir) (not ...)) (setq dir (if ... t ...)))
  (let ((dir file)) (while (and ... ...) (setq dir ...)) (if (eq dir t) (progn ... ...)))
  vc-mcvs-registered("~/emacs/emacsrc.el")

I applied the following patch to vc-mcvs.el and updated loaddefs.el,
and that seems to have fixed the problem:

Index: vc-mcvs.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc-mcvs.el,v
retrieving revision 1.9
diff -c -r1.9 vc-mcvs.el
*** vc-mcvs.el	11 May 2003 23:55:07 -0000	1.9
--- vc-mcvs.el	13 May 2003 11:11:35 -0000
***************
*** 114,120 ****
  ;;;
  
  ;;;###autoload (defun vc-mcvs-registered (file)
! ;;;###autoload   (let ((dir file))
  ;;;###autoload     (while (and (stringp dir)
  ;;;###autoload 		(not (equal dir (setq dir (file-name-directory dir)))))
  ;;;###autoload       (setq dir (if (file-directory-p
--- 114,120 ----
  ;;;
  
  ;;;###autoload (defun vc-mcvs-registered (file)
! ;;;###autoload   (let ((dir (expand-file-name file)))
  ;;;###autoload     (while (and (stringp dir)
  ;;;###autoload 		(not (equal dir (setq dir (file-name-directory dir)))))
  ;;;###autoload       (setq dir (if (file-directory-p

Hope this helps.

Sincerely,
David

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with vc-mcvs-registered
  2003-05-13 11:48 Problem with vc-mcvs-registered David PONCE
@ 2003-05-13 13:54 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2003-05-13 13:54 UTC (permalink / raw)
  Cc: emacs-devel

> I applied the following patch to vc-mcvs.el and updated loaddefs.el,
> and that seems to have fixed the problem:

Thanks,


	Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-13 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-13 11:48 Problem with vc-mcvs-registered David PONCE
2003-05-13 13:54 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).