From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daniela-spit@gmx.it Newsgroups: gmane.emacs.help Subject: Re: Org Capture Template Date: Fri, 27 Nov 2020 07:13:41 +0100 Message-ID: References: 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="19522"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 07:14:59 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 1kiX23-0004ww-GD for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 07:14:59 +0100 Original-Received: from localhost ([::1]:42678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiX22-00068I-Gq for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 01:14:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiX1M-000688-OD for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:14:16 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:59997) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiX1K-0000WK-Sg for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:14:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606457621; bh=ye9Wr3IrjiqFUHdjw0xpGeoMsrtgtBwdfo5qL1ogTXM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ZFaDckVSMizJVGJ66SMsGl7puHugrDSF4g0cclzmd0ylQ6CU9rTjRW+PwAXJdsHZp HxKA+gKs6Eu914Q4nwtbG5wEHMQNVsd6/hj5xAQkovUY2A0OiyImFkNflUcN2BhiVk Yoa0W2aDIu1km2dS36HDHKPt4A1+ZR1YNtu3pEII= 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-bs02.server.lan [172.19.170.129]) (via HTTP); Fri, 27 Nov 2020 07:13:41 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:1XjiVxDUQV2whBQt8y7AG6jphegUXwVaGJIlej/gOmLzfguOTwthS8kXqsZ4d0OyfdtzO hbStlwZjDQVSrr2bUt6+ZJ1CTDKzfZABIYXPMpI6HHgUNeUGyTntR4SElTPbEa59oQxKXmnZaaEU e+JfqGULTrErXaiSdbVmoKvss5Yr0i8ktiueOOdoRexn41XZ9upd0myW0OUmLVBLp6NmASVIp5Xj J6HjKSmjSp8oXH+nXoFXV0o8LF9+J9s7XXSeTZEEzmjwLK7FCvoJ9fb5tSYtQ3deH393PGBdPFRU ck= X-UI-Out-Filterresults: notjunk:1;V03:K0:5xAU7wXyjgY=:LjWlg9CRXweajLWVHoIJxX C9Q5wollatzSCIWQGvZBuI4+sIv3268VCjOXS6G6cRd+jpBYVOuL5AqNxQ/islI7aJ/I+CFIu z7pXf3l0Gncm2/7YioeB31RGjZ6BF1f4x+IJD4f7IUHvdrBYj3/N2E4PlTvZYW/CjJr6n/tgU +lR/pgbTmRsLVUKRkztuh1/y0uaiJSzsdV88Ku7jmOKyUwKhLQENjT0XtE9y0IA+Shd8X64RY 4m95IXzZUumIt5Uy86LRE9UXxibBQNiTB1n9SfZ25Cm8avFEh+6N2v6NiJ6heeay5sMFmrDs6 0vZ9UTlSGs+7baSP7iUw+tsKCK4+mTyetyi8/WWnYrMkMoYrGGV/VaYJlciZzOSguf2f1KR0c Cb7N0IiWYKY4VlTwuc1hAL/Z/j5PwMVRQYRs6FHSOKS0m8DLI82xtmDjW2my0Y4y6clAdI93y uL87h8QHwNGzoBZqIaS8THbZkjZ1rp+EhXHGCjGgI8ASXKlkxbUfbq1QaT8tIhIZshmsn2FqQ AxkwVft3YRYoDJbvw0my8pOVoZn0aU0v/Joro3FOshoqN9fRO1ZVA1bd5xTZmaQnDqCAFM/ti 0TfM91idHvE/A= Received-SPF: pass client-ip=212.227.17.22; envelope-from=daniela-spit@gmx.it; 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:125626 Archived-At: > Sent: Friday, November 27, 2020 at 6:53 AM > From: "Jean Louis" > To: daniela-spit@gmx.it > Cc: "Help Gnu Emacs" > Subject: Re: Org Capture Template > > * daniela-spit@gmx.it [2020-11-27 07:47]: > > I am writing an Org Capture Template. But I want to use concat > > to keep indentation. But it is giving me "Invalid capture template". > > > > (setq org-capture-templates > > > > '( ("t" "Todo" entry > > (file "~/02history/rcl.org") > > (concat "* TODO %^{Heading}\n Brief: %^{Brief}\n" > > "Detail: %?\n" > > "Entered: %T\n Link: %a\n") )) > > Probably because anything after quoted list is not evaluated. > > This '((+ 2 2)) will not be evaluated to '(4) > > To have `concat' evaluted you would need: > > (list (list "t" "Todo" 'entry > '(file "~/02history/rcl.org") > (concat "* TODO %^{Heading}\n Brief: %^{Brief}\n" > "Detail: %?\n" > "Entered: %T\n Link: %a\n") )) > > As you see I would need to quote entry and list beginning with `file' > not to get such evaluated to make concat work. > > And there is also no ensurance that program using customized variable > will take it as list to be evaluated. It is better you do with with > hand by using: > > "* TODO %^{Heading}\n Brief: %^{Brief}\n"Detail: %?\nEntered: %T\nLink:= %a\n" Yes, it seems better to do one long string, it was how I was doing things= . Afterwards, I thought that concat could help me to indent the string for c= ases where it is too long. Is there any other way to be able to indent, rather= than using column number 1, when starting a new line?