From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Appending to a list Date: Mon, 14 Dec 2020 05:23:58 +0100 Message-ID: References: <877dpljtwg.fsf@fastmail.fm> <87sg89v1f7.fsf@telefonica.net> <87mtyhxovn.fsf@zoho.eu> <871rftxlwl.fsf@zoho.eu> <87czzdyqra.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32276"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 14 05:24:27 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kofPO-0008IP-0q for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Dec 2020 05:24:26 +0100 Original-Received: from localhost ([::1]:57230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kofPN-0000Df-0z for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Dec 2020 23:24:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kofP1-0000DY-76 for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 23:24:03 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:44781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kofOz-0001Lc-7c for help-gnu-emacs@gnu.org; Sun, 13 Dec 2020 23:24:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607919838; bh=2ovXXLZ9gdSyMmFGGBgL5OT3e+CMhscMOX5sXTPtdrw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=bAM1itXfGXFI3Dj0up7mlWc+7FK3Ii9CdZHH7c9caKlxj9PNZErvX4pLa81x3Mf6J 930Ypt9oiOB1d5Phs38tqMvkKOS0TgFLOQCe1eSe2LY/0TVI/f1erYOCmdnF/gkUSL HDWhC7mpbnVRBckfZivIL1JoK6GWIwkFM0Ajej0M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs09.server.lan [172.19.170.177]) (via HTTP); Mon, 14 Dec 2020 05:23:58 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87czzdyqra.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:z9yNcVsnseNQMU86KYqq52ORadjtzphep2AIxcAyczGHpI4LDMh2aZUuZ2oKbRvRukn+z vwfhmMV022N4/iyeJ9p0/nk7np1ZMtBcOsMrr7JhzC7YW3dzRFwlbySPEl/PgSsDbc9ZTAo1fIs9 16hjO0Xms1xVKroYRVY3UbtjSixVzBzRC0mhK8eFsJCEHRVnneKikYp9EKpcJ+7FC9eBeSZBmziL 93CGUzJivsnZTMwSux+hTNuFV+oxEerY1jdgTkpvVENvxnvZBTEJA/5IaktRCnsnIDreM8+1WsYg 4I= X-UI-Out-Filterresults: notjunk:1;V03:K0:kI3L+sQUj/o=:5XIlG0Tez4FcvfCHluo7Ep kYI1/IN4EzbSqvwhybCJhyeH6tGaYZaP7SUQ8pfHNbZSRU8RTBpUdl0czBqEF4icTwoOxjsnK LikI1oL8ZiFTbHmNtXS+MRfkrkzuC2LvOjmICeFm3pOXYh5jq386ZBx4ehHprQCrcTh7nOKCs vmr6+Gf/JRyVq423xe7gsTYCXKuKgDWEq3F0hENh+90Qn+W8T1j/qyoiF8ntPdcwfvLQrnf9u bXxctXyjdb4EKOycUcYoOpcN4N6QL1dSeFPQGJC9FGDE8x1sqZIf96wDFGzaU9zhtxoM07oM+ IbBGwEeSH4xfB3dFWmcv0ESoqrPTQWxfjfF9ajtlRTiUGBRv6Q4hyPW5WcbB9WXvduy1HcryO bg+BbP3k39J8vFHyD3+sznAB5B0ffJRvtuwpzhOiyaIhl+MfuFL+7jfiNn7Jtg2JJtcsTxlDa T+ezTeGkZQyrCvDd+Ehw/JzARpmS7Zs2PO++bF4W0UvlFPd+w24cBReATfJDPH+ChlREItC4r nS4OgThJHP1F7A4fTYqchsmj9YLgWPIHdWEns7LHmjts2EwZLLNV6ua4r2ayWXc0uxffIR2N6 G9lv6yisKQC+I= Received-SPF: pass client-ip=212.227.17.20; envelope-from=steve-humphreys@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126350 Archived-At: > Sent: Monday, December 14, 2020 at 5:07 AM > From: "Michael Heerdegen" > To: help-gnu-emacs@gnu.org > Subject: Re: Appending to a list > > steve-humphreys@gmx.com writes: > > > Consider I have the following two templates, and want a make a list > > named "tmplt-animal", which I can then pass to org-capture-templates. > > > > (setq org-capture-templates tmplt-animal) > > > > How can I use "push" to do that? > > > > -------- template code -------- > > [...] > > Seems your list is actually not an element to add that just happens to > be a list, but a list of elements you want to add (but the elements are > also lists again, ehem...) I thought I could push element by element. > In this case you want to `append' the lists, not `push'. You may also > define those bindings using `defvar' if you really want to set all the > used variables at top level. I got inspiration from some discussions here that push is more efficient and wanted to have a go. Yes, I do use push to make the larger list. Have not thought about defvar before. I have read that "setq" does not introduce a variable, but I would need some explanation about that. > Michael. > > >