From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: org-capture-templates constructed from three distinct functions Date: Sat, 12 Dec 2020 03:21:21 +0100 Message-ID: References: <87im97hk0p.fsf@zoho.eu> <87r1nvg486.fsf@zoho.eu> 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="18420"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: moasenwood@zoho.eu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 12 03:22:01 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 1knuXn-0004gJ-PZ for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 03:21:59 +0100 Original-Received: from localhost ([::1]:35928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knuXm-0002m0-NK for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 21:21:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knuXF-0002jr-LX for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 21:21:27 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:51603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knuXD-0008Qq-2i for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 21:21:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607739681; bh=nGZj5QirDP1SC1w+kZVNFvp/gx9+B5u152MqqjEuYvc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=A80zu79dqEIbkEjMJkDXQZuXQt4N2DNarvO2ZqewU71zmpfWtZncNfRn8Kaur8aCj Vhgx+5xglgfi2qig9kcKkhcI4IhbHh9P+rkRbZKVhyLNJCFm3cfWyVSbdBJtqXsa6O A2S9gCaKa7H2z0ib0YFrzd0OVYu+pJ5Au6TcDspo= 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-bs06.server.lan [172.19.170.174]) (via HTTP); Sat, 12 Dec 2020 03:21:21 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87r1nvg486.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:Gd5KuCkSmCeBrGjiceEWCrLJJdJXoL/oOu0ibmmfDn1y4DSEfwvNC1O+6W/ApPnKb56YL emve0d07p812fARNyfy0FIgRolbU37opcayd5hNxIbQyFXn70/L+71Vdkj3LPmz1WRE59G68I60z PjRXgDDGj/aBzCsQK6scbv0fpBIOHPqpCfmGuR1QLPyV25YYm/NgRLctLF3w/Qx+Co2UqMIfccWU iGD4nSKe4ZajD3+oW06GAuaNcuWic1UM+gMfe9FBpB7vBhNo5If7zYbFp0gq1d681MClymXA8nYf wE= X-UI-Out-Filterresults: notjunk:1;V03:K0:uRC1E/XYwlA=:kcZcjpXDITuXh5Prk1UVdC Z1xC7xSfx07X4qQll3vAgetS05hEfWjYXVF8uCf+MFqD+SM/p4zqFFf6d2jwfO0f1uSYULiLo z8IlMxQgHR0y06gORHlTN8MDCoebLStloa6/Ql64mz5Qgqws75tFWJKPjhQDwEq29dZdQm+mA KfIMQeVzE5qDZwFaaVinCYfp4zDsMj6h26OpMd0K9G6G9QlFneWd40jTUxgs/qIWBkIjLVZtT SRSiqekSzM6eyBR7e8wt2arKqTckLaeIy4MSdQ6gJ8Un8d5/KAElbeLmr/EK6YFvlRub4GZOC e23zKG5ESuNPbPMGDKT6Df9KS/6SmAjVneSbpcg1HW1KvJC5zCQAaH8hUO9IM0MjmhDxb0vtn PjwqqU+W5o20wbqxLP/q0xZ7y7DNGQ6OnAmpbt8nRgvMhSN5a7BjQNPhS0UDpYkI13MtjCDva O60VNXBVFQ3/0fkLEtIUuw++i/dBx0qFVxdnfbIcLi4kHlRTqnqVmvkAKvbEzGD7jth34YdeR x/i1778bcyKnaY9bTkzXQ48Eem8t5dzL6JqJCUjyEvuFJ8qFi5+qNDaVRL9fhV+haGmTHIwZl DuBP43//R/PRo= Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@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:126268 Archived-At: Well, my first thought has been to put template entries in a list. But, y= es, things are not working out very well. > Sent: Saturday, December 12, 2020 at 3:14 AM > From: "Emanuel Berg via Users list for the GNU Emacs text editor" > To: help-gnu-emacs@gnu.org > Subject: Re: org-capture-templates constructed from three distinct funct= ions > > Christopher Dimech wrote: > > > This is how I interpreted your list comment > > OK, well, that was just playing with syntax and having fun at > your comment ("backquote construct), but be my guest... > > > (setq captr-templ-tdr > > `(,@(list > > '("t" "Tdr Document") ; backquote construct > > '("t1" "Tdr: Ch01 Oceanic Microseismology" entry > > (file+headline "~/02histr/tdr/01ch.rcl.org" "Tdr Document") > > ,(concat "* Oceanic Microseismology\n" ; special marker > > " %^{Select |Augment:|Include:|Clarify:|Organise:} %?\n" > > " Scheduled: %^T\n Entered: %T\n Link: %a\n") > > :clock-in t :clock-resume t :empty-lines 1) > > > > '("t2" "+ Ch02 Multi-Resolution Spectral Analysis" entry > > (file+headline "~/02histr/tdr/02ch.rcl.org" "Tdr Document") > > ,(concat "* Ch02 Multi-Resoln Spectr Anly\n" > > " %^{Select |Augment:|Include:|Clarify:|Organise:} %?\n" > > " Scheduled: %^T\n Entered: %T\n Link: %a\n") > > :clock-in t :clock-resume t :empty-lines 1) ))) > > > > (defun captr-tdr () > > (interactive) > > (setq org-capture-templates captr-templ-tdr)) > > > > (global-set-key (kbd "H-c") #'captr-tdr) > > To be honest that doesn't look good. Ha. > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >