[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sesman a428dc955c 050/100: Improve readable of sesman-grou
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sesman a428dc955c 050/100: Improve readable of sesman-grouped-links |
Date: |
Tue, 28 Dec 2021 14:06:01 -0500 (EST) |
branch: elpa/sesman
commit a428dc955cd257cc9ac50d286c551c6809c2160b
Author: Vitalie Spinu <spinuvit@gmail.com>
Commit: Vitalie Spinu <spinuvit@gmail.com>
Improve readable of sesman-grouped-links
---
sesman.el | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/sesman.el b/sesman.el
index fe777dca0d..a2438afe83 100644
--- a/sesman.el
+++ b/sesman.el
@@ -635,18 +635,19 @@ If AS-STRING is non-nil, return an equivalent string
representation."
(assoc type out-rel)
(assoc type out))))
(when entry
- (setcdr entry (cons val (cdr entry))))))
+ (setcdr entry (cons link (cdr entry))))))
links)
(let ((out (delq nil (mapcar (lambda (el) (and (cdr el) el)) out)))
(out-rel (delq nil (mapcar (lambda (el) (and (cdr el) el))
out-rel))))
(if as-string
- (let ((fmt-fn (lambda (link-vals)
- (let ((type (car link-vals)))
- (mapconcat (lambda (v)
- (format "%s(%s)"
- (or (plist-get
sesman--cxt-abbrevs type) type)
- (sesman--abbrev-path-maybe
v)))
- (cdr link-vals)
+ (let ((fmt-fn (lambda (typed-links)
+ (let* ((type (car typed-links))
+ (short-type (or (plist-get
sesman--cxt-abbrevs type) type)))
+ (mapconcat (lambda (lnk)
+ (format "%s(%s)" short-type
+ (sesman--abbrev-path-maybe
+ (sesman--lnk-value lnk))))
+ (cdr typed-links)
", ")))))
(if out-rel
(concat (mapconcat fmt-fn out-rel ", ")
- [nongnu] elpa/sesman 4229e2128c 027/100: Replace a redundant let*, (continued)
- [nongnu] elpa/sesman 4229e2128c 027/100: Replace a redundant let*, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 9ec1c330a6 034/100: Fix typo sesman-more-relevant-p -> sesman-more-recent-p, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman e340810e82 030/100: Refer to a few commands with the #' notation, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman ae94cee124 033/100: [Fix #3] Remove outdated links from readme and add link to CIDER implementation, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 77ca42e33c 037/100: Add tests, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman d4b8a12249 036/100: Allow prompting for context in sesman-link-with-xyz commands, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 269bdd26b4 028/100: Fix the autoload cookies, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 4f9aea1b6c 047/100: Keep sesman--format-session-objects for minibuffer info only, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 5c34b3669b 031/100: Add a link to the GitHub repo, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 30ec72e2fe 053/100: [Fix #5] Implement session-browser, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman a428dc955c 050/100: Improve readable of sesman-grouped-links,
ELPA Syncer <=
- [nongnu] elpa/sesman 92a4c0a168 045/100: Add sesman-post-command-hook, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 73d726499f 060/100: Bump the development version, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman f3975de11a 038/100: Remove dependency on project.el, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 9e16e21fc4 055/100: Add white space cleaner to dir-locals, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman e3adc450af 052/100: Run hooks in sesman-unlink, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 796a214e1f 058/100: Typo, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman c81565a88b 071/100: Version 0.3, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman d403a84746 069/100: Put back separator in info display, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman cdf0064408 067/100: Use -face in face names, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 563ebeaafb 098/100: Fix broken link in README.md, ELPA Syncer, 2021/12/28