[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sesman 966c13812f 088/100: [Fix #14] Rewrite the usage of
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sesman 966c13812f 088/100: [Fix #14] Rewrite the usage of when-let* |
Date: |
Tue, 28 Dec 2021 14:06:05 -0500 (EST) |
branch: elpa/sesman
commit 966c13812f312c748ef984d16ce4cefe0df0f5c9
Author: Vitalie Spinu <spinuvit@gmail.com>
Commit: Vitalie Spinu <spinuvit@gmail.com>
[Fix #14] Rewrite the usage of when-let*
---
sesman-browser.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/sesman-browser.el b/sesman-browser.el
index e9cccb00ef..01957f20be 100644
--- a/sesman-browser.el
+++ b/sesman-browser.el
@@ -228,7 +228,7 @@ If NO-SWITCH is non-nil, only display the buffer."
(interactive)
(sesman-goto 'no-switch))
-(defun sesman-browser--sensor-function (&rest ignore)
+(defun sesman-browser--sensor-function (&rest _ignore)
(let ((beg (or (when (get-text-property (point) :sesman-stop)
(if (get-text-property (1- (point)) :sesman-stop)
(previous-single-char-property-change (point)
:sesman-stop)
@@ -237,9 +237,10 @@ If NO-SWITCH is non-nil, only display the buffer."
(end (next-single-char-property-change (point) :sesman-stop)))
(move-overlay sesman-browser--stop-overlay beg end)
(when window-system
- (when-let* ((beg (get-text-property (point) :sesman-fragment-beg))
- (end (get-text-property (point) :sesman-fragment-end)))
- (move-overlay sesman-browser--section-overlay beg end)))))
+ (let ((beg (get-text-property (point) :sesman-fragment-beg))
+ (end (get-text-property (point) :sesman-fragment-end)))
+ (when (and beg end)
+ (move-overlay sesman-browser--section-overlay beg end))))))
;;; Sesman UI
- [nongnu] elpa/sesman ba2756caf7 063/100: Fix compilation warnings, (continued)
- [nongnu] elpa/sesman ba2756caf7 063/100: Fix compilation warnings, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman fcdb6846f3 061/100: Make checkdoc happy, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 602d818dd0 073/100: Autoload sesman keymap, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 2b1b624e7a 074/100: Implement friendly session mechanism, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 19151a8b60 065/100: Add colors for marking dir, proj and buf in listings, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 1f5b2b2338 075/100: More consistent empty prefix in sesman-info, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 59f4a2442e 077/100: Simplify system API by subsuming sesman-linked/friendly-sessions into sesman-sessions, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 4b2507d1ee 076/100: Optimize sesman-current-session, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman edee869c20 096/100: Sesman menu: Add Browser, Move Unlink, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 93123f6cef 093/100: Rename seman-menu-open -> sesman-menu-open, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 966c13812f 088/100: [Fix #14] Rewrite the usage of when-let*,
ELPA Syncer <=
- [nongnu] elpa/sesman b527f7a638 043/100: Make sesman-system permanent local, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 95f8354d1a 041/100: Add sesman-relevant-[link|session]-p functions, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman cf7997e279 035/100: Add sesman-project generic, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 0ea1d3e645 048/100: [Fix #7] Implement WHICH argument in `sesman-restart`, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 0e38d4e427 057/100: Remove unnecessary autoloads, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman e4775a2e81 084/100: Remove sesman--expand-path-maybe, ELPA Syncer, 2021/12/28
- [nongnu] elpa/sesman 7bbd02be9e 083/100: Add sesman-follow-symlinks defcustom, ELPA Syncer, 2021/12/28