[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sesman e4775a2e81 084/100: Remove sesman--expand-path-mayb
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sesman e4775a2e81 084/100: Remove sesman--expand-path-maybe |
Date: |
Tue, 28 Dec 2021 14:06:05 -0500 (EST) |
branch: elpa/sesman
commit e4775a2e814e8bffbcdf0ef11a63b0ce0b62e858
Author: Vitalie Spinu <spinuvit@gmail.com>
Commit: Vitalie Spinu <spinuvit@gmail.com>
Remove sesman--expand-path-maybe
---
sesman.el | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/sesman.el b/sesman.el
index 0810cf3acc..2d962c1fa1 100644
--- a/sesman.el
+++ b/sesman.el
@@ -184,11 +184,6 @@ Can be either a symbol, or a function returning a symbol.")
(capitalize cxt-name)
system))))))
-(defun sesman--expand-path-maybe (obj)
- (if (stringp obj)
- (expand-file-name obj)
- obj))
-
;; FIXME: incorporate `sesman-abbreviate-paths'
(defun sesman--abbrev-path-maybe (obj)
(if (stringp obj)
@@ -768,13 +763,15 @@ context. If CXT-TYPE is non-nil, and CXT-VAL is not
given, retrieve it with
(let* ((ses-name (or (car-safe session)
(error "SESSION must be a headed list")))
(cxt-val (or cxt-val
- (sesman--expand-path-maybe
- (or (if cxt-type
- (sesman-context cxt-type system)
- (let ((cxt (sesman--least-specific-context
system)))
- (setq cxt-type (car cxt))
- (cdr cxt)))
- (error "No local context of type %s" cxt-type)))))
+ (or (if cxt-type
+ (sesman-context cxt-type system)
+ (let ((cxt (sesman--least-specific-context
system)))
+ (setq cxt-type (car cxt))
+ (cdr cxt)))
+ (error "No local context of type %s" cxt-type))))
+ (cxt-val (if (stringp cxt-val)
+ (expand-file-name cxt-val)
+ cxt-val))
(key (cons system ses-name))
(link (list key cxt-type cxt-val)))
(if (member cxt-type sesman-single-link-context-types)
- [nongnu] elpa/sesman 59f4a2442e 077/100: Simplify system API by subsuming sesman-linked/friendly-sessions into sesman-sessions, (continued)
- [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, 2021/12/28
- [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 <=
- [nongnu] elpa/sesman 7bbd02be9e 083/100: Add sesman-follow-symlinks defcustom, ELPA Syncer, 2021/12/28