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

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

[elpa] externals/org-remark b595c74a06 045/173: doc: Update docstring fo


From: ELPA Syncer
Subject: [elpa] externals/org-remark b595c74a06 045/173: doc: Update docstring for the sort fn
Date: Fri, 28 Jan 2022 16:57:58 -0500 (EST)

branch: externals/org-remark
commit b595c74a060e43f85c2d940af131d95c6dbd133c
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>

    doc: Update docstring for the sort fn
---
 org-marginalia.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/org-marginalia.el b/org-marginalia.el
index 7c871da207..9aa76b81f1 100644
--- a/org-marginalia.el
+++ b/org-marginalia.el
@@ -502,7 +502,11 @@ If none, return nil."
         (if reverse (reverse list) list)))))
 
 (defun om/sort-highlights-list ()
-  "Utility function to sort `om/sort-highlights'."
+  "Utility function to sort `om/sort-highlights'.
+It checks if there is any element exists for `om/highlights'.
+Instead of receiving it as an arg, it assumes its existence. It
+also distructively updates `om/highlights'.
+It returns t when sorting is done."
   (when om/highlights
     (setq om/highlights (seq-sort-by (lambda (s) (car (cdr s))) #'< 
om/highlights))
     t))



reply via email to

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