[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: zonk *log-edit-files* for RCS (or when there is only one file)
From: |
Thien-Thi Nguyen |
Subject: |
Re: zonk *log-edit-files* for RCS (or when there is only one file) |
Date: |
Tue, 09 Feb 2021 15:46:36 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
() Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
() Tue, 09 Feb 2021 20:53:43 +0100
On the contrary, that's so cool! I had to think and think and
think before I realized it is 0 or 1 file -> don't do it, but
2 or more files -> do it.
Only ... isn't `unless' and `null' = `when'?
(unless (null (cdr '())) 1) ; nil
(unless (null (cdr '(1))) 1) ; nil
(unless (null (cdr '(1 2))) 1) ; 1
(when (cdr '()) 1) ; nil
(when (cdr '(1)) 1) ; nil
(when (cdr '(1 2)) 1) ; 1
Well, there you go -- more elegant by one funcall. Congrats!
(I think i wrote it that way to make it clear to me since i
see/type/think ‘(null (cdr ...))’ more or less idiomatically.
If i use ‘when’, i would have to add a comment to myself.
Normally, i'm not against comments, but this time, meh... :-D)
--
Thien-Thi Nguyen -----------------------------------------------
(defun responsep (query) ; (2021) Software Libero
(pcase (context query) ; = Dissenso Etico
(`(technical ,ml) (correctp ml))
...)) 748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502
signature.asc
Description: PGP signature
- zonk *log-edit-files* for RCS (or when there is only one file), Thien-Thi Nguyen, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file), Emanuel Berg, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file), Thien-Thi Nguyen, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file), Emanuel Berg, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file), Thien-Thi Nguyen, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file), Emanuel Berg, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file), Thien-Thi Nguyen, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file), Emanuel Berg, 2021/02/09
- Re: zonk *log-edit-files* for RCS (or when there is only one file),
Thien-Thi Nguyen <=
Re: zonk *log-edit-files* for RCS (or when there is only one file), Stefan Monnier, 2021/02/09