[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/activities 67cb87f413 33/50: mapcar-window-state-leafs:
From: |
ELPA Syncer |
Subject: |
[elpa] externals/activities 67cb87f413 33/50: mapcar-window-state-leafs: improve varnames and docstring |
Date: |
Wed, 25 Dec 2024 03:57:20 -0500 (EST) |
branch: externals/activities
commit 67cb87f413077172470cf508e5e47e995500b5ee
Author: J.D. Smith <jdtsmith@gmail.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
mapcar-window-state-leafs: improve varnames and docstring
---
activities.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/activities.el b/activities.el
index 35d2b6d6e8..148d76a7f4 100644
--- a/activities.el
+++ b/activities.el
@@ -524,20 +524,20 @@ To be called from `kill-emacs-hook'."
;;;; Functions
(defun activities--mapcar-window-state-leafs (state func)
- "Return a list of leaf nodes value from window-state STATE.
+ "Return a list of leaf node values from window-state STATE.
The returned list contains the values obtained by calling FUNC on
each of the leaf nodes in STATE."
- (let (ret)
+ (let (values)
(cl-labels ((map-leafs (state func)
(pcase state
(`(leaf . ,_attrs)
- (push (funcall func state) ret))
+ (push (funcall func state) values))
((pred proper-list-p)
(if-let ((leaf-pos (cl-position 'leaf state)))
- (push (funcall func (cl-subseq state leaf-pos)) ret)
+ (push (funcall func (cl-subseq state leaf-pos)) values)
(dolist (s state) (map-leafs s func)))))))
(map-leafs state func))
- (nreverse ret)))
+ (nreverse values)))
(defun activities--buffers-and-files (state)
"Return a list of buffers and files from STATE.
- [elpa] externals/activities 542f4e4a65 16/50: annotate: compare file truenames and buffers correctly, (continued)
- [elpa] externals/activities 542f4e4a65 16/50: annotate: compare file truenames and buffers correctly, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 9e12e5882a 13/50: handle missing last state and add `*' for modified state buffer list, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 744fd23282 18/50: annotate: separate active flag (@) from modified flag (*), ELPA Syncer, 2024/12/25
- [elpa] externals/activities 09e469df96 20/50: completing-read: sort completion using new completion-table, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 455e3ebf8f 22/50: Make activities--annotate privately named, ELPA Syncer, 2024/12/25
- [elpa] externals/activities e392e233d3 21/50: annotate: "zero files" is plural, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 8683bb4662 24/50: Factor out buffer-and-files comparison functions, ELPA Syncer, 2024/12/25
- [elpa] externals/activities e774617fb1 25/50: save: retain last timestamp when buffer and files have not changed, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 0a3309ae51 27/50: Inline activities--completion-table, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 6d9b69485a 32/50: inline annotation-function and eliminate vc-annotate, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 67cb87f413 33/50: mapcar-window-state-leafs: improve varnames and docstring,
ELPA Syncer <=
- [elpa] externals/activities 322de07933 35/50: activities--age: rewrite, note future core replacement, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 425b6199ca 37/50: activities-annotation-colors: simplify doc and use ALPHA, ELPA Syncer, 2024/12/25
- [elpa] externals/activities d648a9e3a9 42/50: README: rename section as Completion, ELPA Syncer, 2024/12/25
- [elpa] externals/activities b69373eda6 43/50: README: simplify Completion description, ELPA Syncer, 2024/12/25
- [elpa] externals/activities b75e6f4ab6 44/50: oldest-age: find oldest age of last OR default state, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 9b792abceb 01/50: Initial annotation support for activities-completing-read, ELPA Syncer, 2024/12/25
- [elpa] externals/activities b07a5370de 02/50: Correct the file count, ELPA Syncer, 2024/12/25
- [elpa] externals/activities e829cf9fa2 03/50: re-org: move oldest-age up, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 1e14be5c59 06/50: simplify annotation-function using pcase-let*, ELPA Syncer, 2024/12/25
- [elpa] externals/activities 61461aec1d 05/50: docs: fix typo in oldest-age, ELPA Syncer, 2024/12/25