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:30:30 +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="18153"; 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: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 1knuhU-0004bL-P0 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 03:32:00 +0100 Original-Received: from localhost ([::1]:38116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knuhT-0004Zv-Rk for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 21:31:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knugA-0004ZB-UY for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 21:30:40 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:47905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knug5-0002E6-AT for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 21:30:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607740230; bh=XVKbbgA0LjaI5NA+YvPuMSl/yIbakOD/4VPn7XqkF+A=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=UsxZ3qgi7PmngUb1EQoGV0hEuKBL/hv1wM6wnzktz3GW/n1v5YNyHhXuZ8eUxOqMh sQgFAoZGxy+KzFo5dGbop4OemK6U5kADm0PNSgBeMWyf8a9i7EZECQD5ugMNItaKxk BVKLEQEVgD11UDG+g0N/6YdvIeNUjneCUVwZnVNg= 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:30:30 +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:KUf8S5/jLPc64y2aEy+o+o9GwbgDR/CniKz+jCveHL7boJbdHe44ZbvD1fciu+EyzxYsP HeLsDKrngS4ntvDOYs5CT1Ps5XYB7eWxLHw12VFha5q1ycpGuKmM/+qaz/qzAY2583EyVTHcJU/F sE+HYeN7/44CE6Oezae6rN2w6zkxEum/BENzu2jHY9NcIpkFIjFVz90/0EPbiIp8+XacZ8amkSuB PJPqPajXAyECLi6bAZX9G85nD3kYvVy6XnzF/qR8y+iqT52zGKXfUPotU7qL2FUtL8hD8U0qxtR0 Sc= X-UI-Out-Filterresults: notjunk:1;V03:K0:lqfV5xjCn98=:SuL6nFeRWeZj+V2W0HMf2u 7mQLpki9Kb3UmO8aYeGNTVFVOCjRUvbXOhPAj4RTa2YV9C1n57ymv+fkT5vU4DtWFyCW6+/rk ZT1tNa0rTjj4G0yoKmprqaAOpZJpM7G2iEVlhXwUE84NS/62SgFCSibYGl77SjF4+UsFawVZl pEovRyvBmuBM/4XL+iGOFq71whSVWp3Nzz6qcMNNJZ9L4TcRiVhevS83Q1TSkZ2gyXjAeamQ6 jAk24CBJpz/50WvuTdGrGYjnx1tkrejtcBHtnCqzIBNxgo8N7j/NK5yL6GVVy00g6/9xvq0By yjF77WC9rLh2hGgSsuyET4IoAvxJ4NyuGl1h0x7+GYAmHWfxt4U3uddrnGunMhrn85zwISE/3 r6XoQryGS0N02zyQslC9hUhRg2xP5vf3bwJ7CgG+9hx23SgnArSHp2SK/CSthjzcyvqVJYs8W GDrtzBEuUBiG4PsCY74ltGs1/LW9IIl+FBvQqa3NVbj5qBfR7pEoRKE11OzgT1SxAdF6QR0JO zCPUkyoKa1GOyERbYEo9NAg7MAa9pgbiUmrIMcb6OxdaYZcCwZ6E/fXVcjqE8RhP+K/cqzeu+ iqEOb7kg2CBsw= Received-SPF: pass client-ip=212.227.15.18; 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:126269 Archived-At: There must bo some problem in how I am trying to use lists. (setq captr-tmplt-tdr `( '("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) '("t3" "+ Ch03 Computational Aspects of Spectral Estimation" entry (file+headline "~/02histr/tdr/03ch.rcl.org" "Tdr Document") ,(concat "* Ch03 Computational Aspects of Spectr Estm\n" "** %^{Select |Augment:|Include:|Clarify:|Organise:}: \n" " Title: %?\n Brief:\n Detail:\n" " Scheduled: %^T\n Entered: %T\n Link: %a\n") :clock-in t :clock-resume t :empty-lines 1) '("tc" "+ Citable Note" entry (file "~/02histr/tdr/citn.rcl.org") ,(concat "* %^{Year} %^{Author} %^{Year}p %^{Author}p\n" " %^{Sel |Reference:| Bibliography:} %T\n" " Year: %\\1\n Author: %\\2\n Title: %?\n" " Brief:\n Detail:\n Annal:\n" " Entered: %T\n Link: %a\n") :empty-lines 1) )) ;; ---------------------------------------------------------------------- (defun captr-tdr () (interactive) (setq org-capture-templates 'captr-templ-tdr)) > 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 > > >