branch: externals/vc-jj
commit 33a146c224df1a41e135c682f78686ffbf4740ab
Author: Rudi Schlatte <[email protected]>
Commit: Rudi Schlatte <[email protected]>

    Revert "Remove lingering commented lines"
    
    As per Stefan Monnier's mail to emacs-devel, `;;;###autoload` is code,
    not comments ;)
    
    This reverts commit 9a77b0e164709714a969890f8c7e29cd3ff37743.
---
 vc-jj.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/vc-jj.el b/vc-jj.el
index 0e72686518..8df806038d 100644
--- a/vc-jj.el
+++ b/vc-jj.el
@@ -185,6 +185,13 @@ On failure, return nil.  Upon success, return DIRECTORY."
         (vc-jj--command-dispatched nil 0 nil "new" rev "--quiet")))
     (when successp directory)))
 
+;;;###autoload (defun vc-jj-registered (file)
+;;;###autoload   "Return non-nil if FILE is registered with jj."
+;;;###autoload   (if (and (vc-find-root file ".jj")   ; Short cut.
+;;;###autoload            (executable-find "jj"))
+;;;###autoload       (progn
+;;;###autoload         (load "vc-jj" nil t)
+;;;###autoload         (vc-jj-registered file))))
 (defun vc-jj-registered (file)
   "Check whether FILE is registered with jj."
   (and-let* ((vc-jj-program (executable-find vc-jj-program))

Reply via email to