From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Re: Replace element in list Date: Mon, 2 Sep 2019 15:38:30 +0200 Message-ID: References: <6a632b18-bbd6-7096-229d-6c890b6bdb6f@easy-emacs.de> <20190902103723.GC1466@tuxteam.de> <20190902104107.GD1466@tuxteam.de> <20190902104635.GE1466@tuxteam.de> <87ef0z7yfa.fsf@web.de> <20190902110550.GF1466@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="196862"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 02 15:38:51 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i4mXi-000p5e-D2 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Sep 2019 15:38:50 +0200 Original-Received: from localhost ([::1]:36668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4mXh-0003Lg-19 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Sep 2019 09:38:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52995) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4mXU-0003LO-9j for help-gnu-emacs@gnu.org; Mon, 02 Sep 2019 09:38:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4mXT-0003ck-DE for help-gnu-emacs@gnu.org; Mon, 02 Sep 2019 09:38:36 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:33005) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4mXT-0003aK-27 for help-gnu-emacs@gnu.org; Mon, 02 Sep 2019 09:38:35 -0400 Original-Received: from [192.168.178.31] ([88.130.49.12]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MkHd3-1iSrtB43FR-00kk8N for ; Mon, 02 Sep 2019 15:38:33 +0200 In-Reply-To: <20190902110550.GF1466@tuxteam.de> Content-Language: en-US X-Provags-ID: V03:K1:oknA8MDEkDGWckU2o34BtR/lyM0UHzjdBYAxB+4phcAu3YVzsA7 kZwxm0mFj0oB1FmP9uHRVCDzwmFdkuD/kMwI0mDvKqEqmpvS9d9sHWoc9QrmO4fxzgpH/mI zhfbFbXLT8I5JLFBTc19zyA5FImtN5EBAuZcS6pIbKt0VS0whZe3b/WwQECJK7gisljrc9V e1PoTPJsPYLrqzxS64FCQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:M3J10LBg8sg=:jWvW1qSWib4oPFcERYXgZG Y8VmwZIwg1q3BCafi7RpUlcycraF84x5f7TqkbozWZAuDwAXQfALFynrIPi7uAi9BqYx+8+xd uPk+E3Y/yy4cRfVewbJN2ix/N10qlguBzhIb18O2XSTZnbKU81xN0aGu42x2A2lOzdR0y2oVU IXnAqh0u72b31jSOuuWgy8blAILDVT14Acrn9kq1DBmjCIiOZ0GxvwnlgxPmM4lvB5rVBrxah Ieu0dFJZU6acn9vVUgw/lSiFdoxixXl6zmosGA4dHdlU2KPM4KZhsnWASNMFr1GjWYxkrWSJ0 DfnkWlzrCfzLBCqR1aRsCwC1yqfSaR8rmqRxZlGbma+UhgAk4gF3MCvIsMo4/uO8YTMKWqu0S +Ho8CnCAceYAOSupcOf/QFUCz8doq6y+iEAlgIUrBLMAP8pXcenf1IVztm4dOdA8dDZTEF6f9 LBCJ75b/2SXC4Vu/a/Alp2Cp96rCXqL0YGzHJojBL+h6fTRmIremT/CTDRVPCvTHY4TWFwloQ 2Qya+enL2kaUnuBKqof5WhdFAeh+a+s4q5EXvc0KXsC66FOELukOAewDhQ/c+SdzHOC8uOYH9 JquNtQqXvxNPHLgMK2YMxPY9cAVZ29dYEQrE1baAPU44EoCcKKUROXjdY/fkMMP30Lgkfkbyp BGUslvGcZmqeFCk7d4Jqjh+CDYUHCGI9jcNCX6V/rkHNz8WzmCVc1L9BzWgdhoIHJ1IuszlbF fjH+mJS/Ivo+OzxqZO/x4tam93AG2cstPZL/aRVNqHovUDnyRgFI4A8Rnd9RNbF/CU3iPZTv X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121421 Archived-At: 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!