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

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

[elpa] externals/marginalia e4b3fcd 191/241: marginalia--remote-p: handl


From: Stefan Monnier
Subject: [elpa] externals/marginalia e4b3fcd 191/241: marginalia--remote-p: handle shadow paths
Date: Fri, 28 May 2021 20:49:24 -0400 (EDT)

branch: externals/marginalia
commit e4b3fcd4151af7148e7c82cfe66abedeaa9216aa
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    marginalia--remote-p: handle shadow paths
---
 marginalia.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/marginalia.el b/marginalia.el
index 94595d8..55dbb88 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -624,7 +624,7 @@ using `minibuffer-force-complete' on the candidate CAND."
 
 (defun marginalia--remote-p (path)
   "Return t if PATH is a remote path."
-  (string-match-p "\\`/[^:]+:" path))
+  (string-match-p "/[^:]+:" path))
 
 (defun marginalia-annotate-file (cand)
   "Annotate file CAND with its size, modification time and other attributes.
@@ -633,7 +633,7 @@ These annotations are skipped for remote paths."
           (when-let (win (active-minibuffer-window))
             (with-current-buffer (window-buffer win)
               (marginalia--remote-p (minibuffer-contents-no-properties)))))
-      (marginalia--documentation "*Remote*")
+      (marginalia--fields ("*Remote*" :face 'marginalia-documentation))
     (when-let (attributes (file-attributes (marginalia--full-candidate cand) 
'string))
       (marginalia--fields
        ((file-attribute-modes attributes) :face 'marginalia-file-modes)



reply via email to

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