emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-hgcmd adb7cb5 11/87: directories are always register


From: Stefan Monnier
Subject: [elpa] externals/vc-hgcmd adb7cb5 11/87: directories are always registered
Date: Sat, 5 Jun 2021 16:11:36 -0400 (EDT)

branch: externals/vc-hgcmd
commit adb7cb582ee888759e35ae25183c8ee5e28c294d
Author: muffinmad <andreyk.mad@gmail.com>
Commit: muffinmad <andreyk.mad@gmail.com>

    directories are always registered
---
 vc-hgcmd.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/vc-hgcmd.el b/vc-hgcmd.el
index f6407e7..13e83fe 100644
--- a/vc-hgcmd.el
+++ b/vc-hgcmd.el
@@ -376,8 +376,9 @@ Insert 'Running command' and display buffer text if COMMAND"
 (defun vc-hgcmd-registered (file)
   "Is file FILE is registered."
   (when (vc-hgcmd-root file)
-    (let ((state (vc-hgcmd-state file)))
-      (and state (not (memq state '(ignored unregistered)))))))
+    (or (file-directory-p file)
+        (let ((state (vc-hgcmd-state file)))
+          (and state (not (memq state '(ignored unregistered))))))))
 
 (defun vc-hgcmd-state (file)
   "State for FILE."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]