* bug#19198: 25.0.50; vc.el with RCS: undefined function `vc-master-name'
@ 2014-11-26 17:34 Simon Leinen
2014-11-26 17:50 ` bug#19196: " Eric S. Raymond
2014-11-26 19:12 ` Glenn Morris
0 siblings, 2 replies; 5+ messages in thread
From: Simon Leinen @ 2014-11-26 17:34 UTC (permalink / raw)
To: 19198; +Cc: esr
When I run "./src/emacs -Q" and open a file that's under RCS version
control, I get the following error:
Symbol's function definition is void: vc-master-name
This function is defined in the new `vc-filewise.el'.
It is called from vc-rcs.el and vc-sccs.el. These two files also call
`vc-rename-master'. For `vc-rename-master', autoloads are defined in
`vc-rcs.el' and `vc-sccs.el'; but the autoloads still point to "vc"
rather than "vc-filewise". I fixed that and also added autoloads for
`vc-master-name'. So please consider the following patch. With it,
this error should be gone. I still run into another issue, which I'll
report separately.
--
Simon.
diff --git a/lisp/vc/vc-rcs.el b/lisp/vc/vc-rcs.el
index 0b839a6..341a1d4 100644
--- a/lisp/vc/vc-rcs.el
+++ b/lisp/vc/vc-rcs.el
@@ -229,6 +229,8 @@ For a description of possible values, see `vc-check-master-templates'."
(vc-rcs-fetch-master-state file)
(vc-file-getprop file 'vc-working-revision))))
+(autoload 'vc-master-name "vc-filewise")
+
(defun vc-rcs-latest-on-branch-p (file &optional version)
"Return non-nil if workfile version of FILE is the latest on its branch.
When VERSION is given, perform check for that version."
@@ -974,7 +976,7 @@ Uses `rcs2log' which only works for RCS and CVS."
nil t)
(replace-match "$\\1$"))))
-(autoload 'vc-rename-master "vc")
+(autoload 'vc-rename-master "vc-filewise")
(defun vc-rcs-rename-file (old new)
;; Just move the master file (using vc-rcs-master-templates).
diff --git a/lisp/vc/vc-sccs.el b/lisp/vc/vc-sccs.el
index 780efc4..3d33ae4 100644
--- a/lisp/vc/vc-sccs.el
+++ b/lisp/vc/vc-sccs.el
@@ -174,6 +174,8 @@ For a description of possible values, see `vc-check-master-templates'."
(push (list frel state) result))))
(funcall update-function result)))
+(autoload 'vc-master-name "vc-filewise")
+
(defun vc-sccs-working-revision (file)
"SCCS-specific version of `vc-working-revision'."
(with-temp-buffer
@@ -471,7 +473,7 @@ Remaining arguments are ignored."
(goto-char (point-min))
(re-search-forward "%[A-Z]%" nil t)))
-(autoload 'vc-rename-master "vc")
+(autoload 'vc-rename-master "vc-filewise")
(defun vc-sccs-rename-file (old new)
;; Move the master file (using vc-rcs-master-templates).
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#19196: 25.0.50; vc.el with RCS: undefined function `vc-master-name'
2014-11-26 17:34 bug#19198: 25.0.50; vc.el with RCS: undefined function `vc-master-name' Simon Leinen
@ 2014-11-26 17:50 ` Eric S. Raymond
2014-11-26 17:59 ` Simon Leinen
2014-11-26 19:12 ` Glenn Morris
1 sibling, 1 reply; 5+ messages in thread
From: Eric S. Raymond @ 2014-11-26 17:50 UTC (permalink / raw)
To: Simon Leinen; +Cc: 19196
Simon Leinen <simon.leinen@switch.ch>:
> When I run "./src/emacs -Q" and open a file that's under RCS version
> control, I get the following error:
>
> Symbol's function definition is void: vc-master-name
>
> This function is defined in the new `vc-filewise.el'.
>
> It is called from vc-rcs.el and vc-sccs.el. These two files also call
> `vc-rename-master'. For `vc-rename-master', autoloads are defined in
> `vc-rcs.el' and `vc-sccs.el'; but the autoloads still point to "vc"
> rather than "vc-filewise". I fixed that and also added autoloads for
> `vc-master-name'. So please consider the following patch. With it,
> this error should be gone. I still run into another issue, which I'll
> report separately.
I will merge. *Very* odd that I didn't run into my RCS testing.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#19196: 25.0.50; vc.el with RCS: undefined function `vc-master-name'
2014-11-26 17:50 ` bug#19196: " Eric S. Raymond
@ 2014-11-26 17:59 ` Simon Leinen
2014-11-26 18:22 ` bug#19198: " Eric S. Raymond
0 siblings, 1 reply; 5+ messages in thread
From: Simon Leinen @ 2014-11-26 17:59 UTC (permalink / raw)
To: esr; +Cc: 19196
>> [...] I fixed that and also added autoloads for `vc-master-name'.
>> So please consider the following patch. With it, this error should
>> be gone. I still run into another issue, which I'll report
>> separately.
> I will merge. *Very* odd that I didn't run into my RCS testing.
Thanks. Maybe vc-filewise.elc got loaded by something else before
your tests caused vc-master-name to be called?
Best regards,
--
Simon.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#19198: 25.0.50; vc.el with RCS: undefined function `vc-master-name'
2014-11-26 17:34 bug#19198: 25.0.50; vc.el with RCS: undefined function `vc-master-name' Simon Leinen
2014-11-26 17:50 ` bug#19196: " Eric S. Raymond
@ 2014-11-26 19:12 ` Glenn Morris
1 sibling, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2014-11-26 19:12 UTC (permalink / raw)
To: Simon Leinen; +Cc: 19198
If you want to cc someone on a new bug report, please use X-Debbugs-Cc:
instead of Cc:.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-11-26 19:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-26 17:34 bug#19198: 25.0.50; vc.el with RCS: undefined function `vc-master-name' Simon Leinen
2014-11-26 17:50 ` bug#19196: " Eric S. Raymond
2014-11-26 17:59 ` Simon Leinen
2014-11-26 18:22 ` bug#19198: " Eric S. Raymond
2014-11-26 19:12 ` Glenn Morris
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).