File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -588,14 +588,14 @@ Call FN with the path if FN is non-nil."
588
588
(defun path+ (root &rest path )
589
589
" Append a list of PATH to ROOT."
590
590
(declare (indent 1 ))
591
- (cond (( null root) nil )
592
- (( null path) ( if ( strrchr root ?/ ) root (concat root " /" )))
593
- ( t ( apply # ' path+
594
- ( concat ( if (strrchr root ?/ ) root ( concat root " / " ))
595
- (if (strrchr (car path) ?/ )
596
- (car path)
597
- (concat (car path) " /" )))
598
- (cdr path)))))
591
+ (and root
592
+ ( unless ( strrchr root ?/ ) ( setq root (concat root " /" )))
593
+ ( cond (( null path) ( if (strrchr root ?/ ) root ( concat root " / " )))
594
+ ( t ( apply # 'path+
595
+ ( concat root (if (strrchr (car path) ?/ )
596
+ (car path)
597
+ (concat (car path) " /" )))
598
+ (cdr path) )))))
599
599
600
600
(defun path- (file )
601
601
" Return the parent path of FILE."
You can’t perform that action at this time.
0 commit comments