* lisp/vc/vc-dir.el (vc-dir-mode): Don't autoload it for everyone.
authorGlenn Morris <rgm@gnu.org>
Thu, 2 May 2013 17:47:39 +0000 (13:47 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 2 May 2013 17:47:39 +0000 (13:47 -0400)
* lisp/desktop.el (vc-dir-mode): Just autoload it here.

lisp/ChangeLog
lisp/desktop.el
lisp/vc/vc-dir.el

index fd42c57..5adfea1 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-02  Glenn Morris  <rgm@gnu.org>
+
+       * vc/vc-dir.el (vc-dir-mode): Don't autoload it for everyone.
+       * desktop.el (vc-dir-mode): Just autoload it here.
+
 2013-05-02  Alan Mackenzie  <acm@muc.de>
 
        Eliminate variable c-standard-font-lock-fontify-region-function.
index e9a839c..8e66a9b 100644 (file)
@@ -1374,6 +1374,9 @@ If there are no buffers left to create, kill the timer."
       (desktop-auto-save-set-timer)
       (setq inhibit-startup-screen t))))
 
+;; So we can restore vc-dir buffers.
+(autoload 'vc-dir-mode "vc-dir" nil t)
+
 (provide 'desktop)
 
 ;;; desktop.el ends here
index d10e393..1fdd201 100644 (file)
@@ -930,8 +930,6 @@ If it is a file, return the corresponding cons for the file itself."
 
 (defvar use-vc-backend)  ;; dynamically bound
 
-;; Autoload cookie needed by desktop.el.
-;;;###autoload
 (define-derived-mode vc-dir-mode special-mode "VC dir"
   "Major mode for VC directory buffers.
 Marking/Unmarking key bindings and actions: