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

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

Re: Replace element in list


From: Andreas Röhler
Subject: Re: Replace element in list
Date: Mon, 2 Sep 2019 15:38:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0


Am 02.09.19 um 13:05 schrieb tomas@tuxteam.de:
On Mon, Sep 02, 2019 at 01:03:21PM +0200, Michael Heerdegen wrote:
tomas@tuxteam.de writes:

In Emacs Lisp you could try:

   (setcar (nthcdr 3 foo) 'mud)
Another way to write that is

     (setf (nth 3 foo) 'mud)
Yes, much nicer. I always forget about setf. Thanks for the
reminder!

Cheers
-- tomás

Thanks all!




reply via email to

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