mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Make two stylistic changes to denote--get-common-root-directory
This commit is contained in:
parent
d90f3633de
commit
1786ebcd0f
|
|
@ -989,9 +989,9 @@ DIRECTORIES are absolute file system paths."
|
|||
;; FIXME 2026-01-14: The `file-name-absolute-p' actually returns
|
||||
;; non-nil for ~/PATH. This will not work here. Does the prefix
|
||||
;; check work on all operating systems? Linux is fine.
|
||||
((unless (seq-every-p (lambda (d) (string-prefix-p "/" d)) directories)
|
||||
(error "All directories must be absolute paths")))
|
||||
((length= directories 1)
|
||||
((not (seq-every-p (lambda (d) (string-prefix-p "/" d)) directories))
|
||||
(error "All directories must be absolute paths"))
|
||||
((null (cdr directories))
|
||||
(car directories))
|
||||
((when-let* ((parts (mapcar
|
||||
(lambda (dir)
|
||||
|
|
|
|||
Loading…
Reference in a new issue