From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.help Subject: Re: .Re: Org Capture Template Date: Fri, 27 Nov 2020 08:27:25 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15200"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs To: daniela-spit@gmx.it Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 08:32:00 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 1kiYEZ-0003pt-UZ for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 08:32:00 +0100 Original-Received: from localhost ([::1]:51398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiYEX-0004XZ-CF for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 02:31:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiYAH-0002KP-7N for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 02:27:33 -0500 Original-Received: from mail-am7eur06olkn2097.outbound.protection.outlook.com ([40.92.16.97]:50049 helo=EUR06-AM7-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiYAC-0002KE-MJ for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 02:27:32 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AOHCF1/il188Bg44517I+ntoBII2VOhFmCWB6JSLsCz/Q+kNzY5j7XF3XmaEvdKdqdC7g7Z6CF19OEKyzgd9tdflr8CmIMNMpDnKuVqd07ANd9qbGSbVq2LUZionJtf9kiCkxmToCLOm1VCLVn4UD/YfXPYGyrrSVHMJoFFu2lURIhb8ebjG4FotVKCJnovBt80ls+zzLEQzmXVqN8WIz+kYnJ01yYvQ7Jz6wKevfxBOUbx8YDKFDc9gVo8adxEag76p74MemEnwvY1s0ix6hw561OOgWJZ8+Xv7CtNHacjVFb6rbDJgWkgw6A10NtY/Z3C+gPnY0eDfLYy1hBOHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lIi0IH+zmDBz/WOdoPGNhXEA1eVDyoqcAEoQ6GVcVAM=; b=UWgizklTlu/Hy2+TZwd0nOeDeGwJJKgEELx+uW4OMAsUZioHsmmxOcMtcDJzgn0VI/jLOOZSiG1vaVGIDaWp1S8ybG+H63BEvb2B0++uC8GwnjCiuTcqyXkz4PYxVYE71SNzNg6XWV0swu3q7HaR4k5hI03G3dl2nCK6Pj/mZFU6isj5pReUTM4vjp4624Kv88dqcpWGxVMVkXtAwaVkV0AIplqflOeIkziBd6V1EOWd2eaidVF6q7DlbmB1svan1QTJpJKku3Q42ncNKwrhi6xhKXgksPmyew2aqskby1PJeCbkUVv+fT3lg8l7JS32PI8rx5QtLWSnYrSdO5zb0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lIi0IH+zmDBz/WOdoPGNhXEA1eVDyoqcAEoQ6GVcVAM=; b=oRcVyoPMaF+rOiy6jFq1CK8NuRdDELcjZLUPNpWlhc4YypeJ99KhdNr/xU41ZWTCvyRpymJHiExPM/my8wp0N8qOUDx7qYtbzgaayxsWvb27B4LWEwVf506q5mObTfduFKpu3Mh+QpW2c0DM9ZxeMsxgyRogK3XAS1XNGXZx8xI6MMYlWdfFBx9IfRnrJgLrnXhSqJmJ7gut/Nq5jmybVyJ5DDoYUjth4ozjQTzauSsLI3zUOSp9EJf/fhN/uWH03cE7Id8gXdrxrZO/8N94WZsRFQ4lfd2btyd9NzMntWVjyYdBhl8kV60InXaDUWx26Jv1k8YkNy9WrdnhftqyJw== Original-Received: from AM7EUR06FT051.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::50) by AM7EUR06HT138.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23; Fri, 27 Nov 2020 07:27:26 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc36::4e) by AM7EUR06FT051.mail.protection.outlook.com (2a01:111:e400:fc36::412) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.23 via Frontend Transport; Fri, 27 Nov 2020 07:27:26 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:81F1CEC19EDD7CDC4D0BE08A24EECC01C71775CDB4788CE1223C0B740AB12990; UpperCasedChecksum:806665233CC24DC481088D168167169DCBDBB1328F1909F5A0BEE5FC5A05140D; SizeAsReceived:7818; Count:46 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%7]) with mapi id 15.20.3611.025; Fri, 27 Nov 2020 07:27:26 +0000 In-Reply-To: (daniela-spit@gmx.it's message of "Fri, 27 Nov 2020 08:07:15 +0100") X-TMN: [J0i8dJqe4kqW6jl0xQyy9jSNJ8ESxlpr] X-ClientProxiedBy: AM5PR0402CA0001.eurprd04.prod.outlook.com (2603:10a6:203:90::11) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <877dq745uq.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM5PR0402CA0001.eurprd04.prod.outlook.com (2603:10a6:203:90::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.20 via Frontend Transport; Fri, 27 Nov 2020 07:27:25 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 3ed251a5-d900-445f-af2b-08d892a5e3b4 X-MS-TrafficTypeDiagnostic: AM7EUR06HT138: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m3RPB9rJBDA+NIopP6CLYGoi5CzlbX/3Hgv8j8HcjQ+Mt3AwXPx2JMvvdNoKFJ98gpvFFNKJc+Z6qMo6jIjgMPS8zUd+c2O+8IoIVvXaxZOPNae7V9Pu4Yd4gzJMGb5F/2L3V0zZ8UmrQ8/hqZ0FjNiLAjeiQWSBAWA4WDkZH7vKR+wBjTuavdfqF3TiU6VR8PiUWe5qwVHGSdesP+VIdw== X-MS-Exchange-AntiSpam-MessageData: bC+R6fift0OPtilawTq0oA+GVjLuqs+DKbc9j1jAFuIjYE3HgsVRlNgOVnwL0XhvXujmTH7pxk56S9pKzym5QdgGwjnIZMJd5t0O2k9LbGwzRwGUDgD0aQLCWGEDcJ3++LJnBbzLOTJjAOBI9fjSJA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ed251a5-d900-445f-af2b-08d892a5e3b4 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2020 07:27:26.3898 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT051.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7EUR06HT138 Received-SPF: pass client-ip=40.92.16.97; envelope-from=arthur.miller@live.com; helo=EUR06-AM7-obe.outbound.protection.outlook.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:125643 Archived-At: daniela-spit@gmx.it writes: >> Sent: Friday, November 27, 2020 at 7:51 AM >> From: "Arthur Miller" >> To: daniela-spit@gmx.it >> Cc: "Help Gnu Emacs" >> Subject: Re: .Re: Org Capture Template >> >> daniela-spit@gmx.it writes: >> >> > Have you tried it? Am still getting "Invalid Capture Template". >> Hah :-) Actually not; I just saw you were missing a parenthesis, wasn't >> even looking at it; I am sorry: > > If you were doing it for the glory, it backfired. Which? No; I saw it was missing the ending parenthesis; The second one works; i tried it. And yes, it is because of evaluation as Jean told you. >> (setq org-capture-templates >> >> `( ("t" "Todo" entry >> (file "~/Dokument/notes.org") >> ,(concat "* TODO %^{Heading}\n Brief: %^{Brief}\n" >> "Detail: %?\n" >> "Entered: %T\n Link: %a\n") ))) >> >> >> >> >> Sent: Friday, November 27, 2020 at 6:34 AM >> >> From: "Arthur Miller" >> >> To: daniela-spit@gmx.it >> >> Cc: "Help Gnu Emacs" >> >> Subject: Re: Org Capture Template >> >> >> >> daniela-spit@gmx.it writes: >> >> >> >> > 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") )) >> >> > >> >> > >> >> > ------- >> >> > >> >> > (setq org-capture-templates >> >> > >> >> > '( ("t" "Todo" entry >> >> > (file "~/02history/rcl.org") >> >> > "* TODO %^{Heading}\n Brief: %^{Brief}\n >> >> > Detail: %?\n >> >> > Entered: %T\n Link: %a\n") )) >> >> > >> >> > ------- >> >> >> >> This one works: >> >> >> >> (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") ))) >> >> >> >> I suggest you put this into your init file: >> >> >> >> (setq show-paren-style 'expression) >> >> (show-paren-mode t) >> >> >> >> It will be much easier to see when you miss a parenthesis next time if >> >> you let Emacs match parenthesis for you and syntax colour entire >> >> expressions between matching parenthesis. >> >> >> >> >> >> >> >>