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:05:36 +0100 Message-ID: References: <87im97hk0p.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="861"; 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:07:26 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 1knuJi-000AY2-AL for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 03:07:26 +0100 Original-Received: from localhost ([::1]:57934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knuJX-0007ln-O6 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 21:07:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knuI5-0007ku-3f for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 21:05:45 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:35739) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knuHy-0004DU-Dl for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 21:05:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607738736; bh=vK7UxPNm7vAdYS1uWpz5ZZYZaZTcKve1/FoABdyjOKo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=l8ygvRRlBMmlBqECWgEVszhGWVLCIdMlBW30PRjO6jcHv3G//laNN1dtLA70CUype dHW+kpFBC4CVRdLtc+VBoknUDvBxgjWvwbuny2W730+kHgPJYNkBvTu1SeQcRsxC/q AgVbbDVoBWM3axUrH9MysSzmcdfw7JPcS3OQrgts= 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:05:36 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87im97hk0p.fsf@zoho.eu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:w6+bSgFstzK+L98wPddpiPyqFtYkdLI2+oh5R2qK65vhbFlzGZBVD8YpJhZcc2W/OGsW7 7ZQ3W+mQGnood/9pfDnoZAVVX4Kwh/PZx3wbs7J2qr25NN8kuMRsatkaCfpcq4Mbo4FVcYM0pXWP KVlIJdloKVZegyY6Utp/60TBY8GvNNLRBVbIPFpb/goSBfagt1Cwsd+dexGJxPFWlTvt8wEN6WEh pTeLhs0MZ/covlnO6HxCMvnOOmVUNai3klCJhhmZf8sd0UPqftL+K9JQQGrVQAxHDLU+5QBPlKjP Cg= X-UI-Out-Filterresults: notjunk:1;V03:K0:IgEQyre6jVY=:hbp2VuxsOPCQjN51h1Ouxs Tx92xBsj7nVivU/PTdWRPoKpMsqWk4MDifIbZ13bBvcAcK+Wo/9Jum06OSljbIZMqbjQ06BfQ MRmy8f4eK3j1mD/6OcvWLemrmuOYyV5Manyhdx4/CPQtXP5muOSPANlG78SnFXU0riWn/NJO4 2iMgWAiqdx1t/uXbZrhY3xJJzjRQeP8miD4De4w4Xdo7d6uzMfCWYsWOcJRTcPXohxfa9ByW/ KXZbez2Z+VC49YRyAerKUXFaL8umuG0gVlvqz3ohNx60nYs2jso4xNxbej89DArH12i5A5L2d ur3NbiEzd76NPdwdqq39HiEs7DUP59e7M9ROiuDIwNO5L43GcNhldYU3kWsE9UnVbu51seedx FpowGf2H7H39gfg/vK7j+TJywxJy0YEVlXcQJ5UKh0pxhsCllNZPm6Nso+sXPSJrvQvAkL0A6 l21vfVfrIk5sRj0I0IYcEdMoXtLGkY34Q3j23t+3iFznga1qwpw1VTfcz3/1mlTZv4/GNm9bQ 3B7rLafNle7rT4lg9tpbrk2BXQziUCYtNvtHy52g+W7EOQxcgOBGShpy43ggq6gh9djw1qYhx mjhAY5OE55Zw8= 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:126264 Archived-At: This is how I interpreted your list comment (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) > Sent: Saturday, December 12, 2020 at 2:48 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: > > > `(("A" "Book A") ; backquote construct > > Interesting comment :) > > `(,@(list 'a 'b 'c) d) > ^ eval me I made the following, with "H-c" not working (defun captr-tdr () (interactive) (setq org-capture-templates `(,@(list captr-templ-tdr)) )) (global-set-key (kbd "H-c") #'captr-tdr) > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > >