]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak the build.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 22 Nov 2014 11:32:48 +0000 (06:32 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 22 Nov 2014 11:32:48 +0000 (06:32 -0500)
I don't really understand why this reversion works, but it will do until I can
actually comprehend the bizarre hairball that is Emacs bootstrapping.

lisp/vc/vc-filewise.el
lisp/vc/vc-hooks.el

index 9bdde5e5e31ee5f51c620c572ffd82babe49bcc5..bc8a8dec416009c61ba21d53e0be7bb6a571bbeb 100644 (file)
@@ -81,18 +81,6 @@ If the file is not registered, or the master name is not known, return nil."
          (vc-file-setprop file 'vc-name result)
        nil))))                         ; Not registered
 
-(defun vc-possible-master (s dirname basename)
-  (cond
-   ((stringp s) (format s dirname basename))
-   ((functionp s)
-    ;; The template is a function to invoke.  If the
-    ;; function returns non-nil, that means it has found a
-    ;; master.  For backward compatibility, we also handle
-    ;; the case that the function throws a 'found atom
-    ;; and a pair (cons MASTER-FILE BACKEND).
-    (let ((result (catch 'found (funcall s dirname basename))))
-      (if (consp result) (car result) result)))))
-
 (defun vc-check-master-templates (file templates)
   "Return non-nil if there is a master corresponding to FILE.
 
index 8ce7ec835cb3730f79a62e0b4ed95c3ecbb78753..a084f9da73a85697d1d41420f6423e42a28cb3be 100644 (file)
@@ -637,6 +637,19 @@ If FILE is not registered, this function always returns nil."
          (vc-file-setprop file 'vc-master-name result)
        nil))))                         ; Not registered
 
+;;;###autoload
+(defun vc-possible-master (s dirname basename)
+  (cond
+   ((stringp s) (format s dirname basename))
+   ((functionp s)
+    ;; The template is a function to invoke.  If the
+    ;; function returns non-nil, that means it has found a
+    ;; master.  For backward compatibility, we also handle
+    ;; the case that the function throws a 'found atom
+    ;; and a pair (cons MASTER-FILE BACKEND).
+    (let ((result (catch 'found (funcall s dirname basename))))
+      (if (consp result) (car result) result)))))
+
 (defun vc-check-master-templates (file templates)
   "Return non-nil if there is a master corresponding to FILE.