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

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

[nongnu] elpa/hyperdrive 2b1ab2ba8e 15/32: Comment: (hyperdrive-sort-ent


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive 2b1ab2ba8e 15/32: Comment: (hyperdrive-sort-entries) Explain sorting behavior
Date: Mon, 4 Sep 2023 18:59:34 -0400 (EDT)

branch: elpa/hyperdrive
commit 2b1ab2ba8ee6fc7b69cc3cc71fc93f7d79dd4803
Author: Joseph Turner <joseph@ushin.org>
Commit: Adam Porter <adam@alphapapa.net>

    Comment: (hyperdrive-sort-entries) Explain sorting behavior
---
 hyperdrive-lib.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 2f452a1e67..7012e71092 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -124,6 +124,8 @@ generated from PATH.  When ENCODE is non-nil, encode PATH."
 See `hyperdrive-directory-sort' for the type of BY."
   (cl-sort entries (lambda (a b)
                      (cond ((and a b) (funcall (cdr by) a b))
+                           ;; When an entry lacks appropriate metadata
+                           ;; for sorting with BY, put it at the end.
                            (a t)))
            :key (car by)))
 



reply via email to

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