help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: operations on path lists


From: Drew Adams
Subject: RE: [External] : Re: operations on path lists
Date: Sat, 4 Feb 2023 17:21:45 +0000

> > (cond ((file-directory-p file) (expand-file-name file))
> >       (t nil))
> 
> (when (file-directory-p file) (expand-file-name file) )

(and (file-directory-p file)  (expand-file-name file))

Use `when' when the return value isn't important.
Helps human readers.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]