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

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

Re: Copying a list for insertion


From: Jean Louis
Subject: Re: Copying a list for insertion
Date: Sat, 22 Oct 2022 03:28:22 +0300
User-agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02)

* Heime <heimeborgia@protonmail.com> [2022-10-22 02:06]:
> Any reason why you use "progn" in the "stringp" condition?

(defun rcd-kill-new (kill)
  (cond ((stringp kill) (progn 
                          (kill-new kill)
                          (rcd-message "Killed: %s" kill)))
         (t (rcd-message "😧 WARNING: Nothing to kill."))))

I use it to enclose two functions in one body of functions as `cond'
does not allow me to use 2 functions for one condition without
enclosing.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

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