info-gnus-english
[Top][All Lists]
Advanced

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

Re: Strip signature on reply without standard separator


From: Satoshi Yoshida
Subject: Re: Strip signature on reply without standard separator
Date: Wed, 21 Sep 2022 18:15:13 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Emanuel Berg <incal@dataswamp.org> writes:

> In your case, you could do
> 
> (defun strip-signature (re &optional rep)
>   (or rep (setq rep ""))
>   ;; ...

It's amazing. But I want to avoid grobal variable.
Please show me the way to use let instead of setq.
I don't know how to use it in this case.

> Okay, I dare say most people would write that
> 
>   (dolist (e '((1 2) (3 4)))
>     (message "%s %s" (car e) (cadr e)) )
> 
> Or maybe
> 
>   (require 'cl-lib)
>   (cl-loop for (a b) in '((x y) (i j)) do
>     (message "%s %s" a b) )

Thank you. I want to use dolist.

-- 
Satoshi Yoshida



reply via email to

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