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: org-capture-templates constructed from three distinct functions Date: Sat, 12 Dec 2020 02:14:38 +0100 Message-ID: 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="30999"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 12 02:16:43 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 1kntWd-0007wf-1N for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Dec 2020 02:16:43 +0100 Original-Received: from localhost ([::1]:41864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kntWb-0005WW-VN for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 20:16:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kntUk-0005WL-1l for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 20:14:46 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:34759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kntUe-0006LN-TS for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 20:14:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607735678; bh=n7exviLnEr9IjmAIkKFj4/UeKGibS3ibv1ys9zBdGvU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=NAUJw2IwDjhhBxmdnHnDTWCnYBq8Ml2TBvvHetaMZc3L+j+WvwNmvuhfulfVu798Q wzyEIDNBZro65lSdVMjEd/Z9KB8WLVMRPBpf/vuaFPsnzTNtrrA7IzLGJPwHmY4SNu +WGm1QVBuvtsyI+LoRgGM1GeZ61XSyIGOGD9WuJo= 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 02:14:38 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:zTAUTgX3nu+/e1bgY5ntnDfVoJa6ys8h0W0C/QbIjkUQJ55sC2hCna9eyOPuLeWqfmdse 5CfGg4B0CAtpkURF4TiZk7xhjFK2xy9Ww7tBnqA/z0tx57f1EpP+5Z32we5umcoHUdY2/uMgGzsW 1Qfs2eVxo8kens6HKnNjjYfrOPSNPRRrrPbl9/sJBHnqvBw51yImBiyj6W69zhUst+1r/SZa7Hgw deMcOgSAbpeAEQrOlPPBlj3wPozS6nogXbItw4zFzaqs4rbVutA/5wZ1cBK0Y57xC5uOQC54hTRj Es= X-UI-Out-Filterresults: notjunk:1;V03:K0:6JfY3ZO/1/s=:f3FR+DTKvUV8e7+Taw1KVR BPtjeaLgNRmskqlM4Tdw/L6BUuAU8gMmDkxORJpHlb4I2yfmiHCuqn1S2VN27Wm8vsK47okto FBTWIdL/NmOfX67OsU03F8a7EUmfqfk7IWFZBufxKJP2+r1eVdJzW1C5m96zgsNDUk22VKH5E O6FWHQVPFR3yjruoa/ZawQQa1n64Nrdezmh4mB3aBnCcyyLky6mkgqf9ivd0Uu9YS12cAaipo qcBWp/GX8MrpD1cZCK5wMtvT7IREmcg9fMFDhwXpwLkuYjifS5RXWDsyvfVgsarC5fq6y7H7B 1uF3fyCDF5m39t2ITpcEBg7hYuKn2tbW0nEghvox2exRbZOTm2VFyEeFv7aO+H6bYNEXApVqM 4dTkxe/5hVgWbLiqGLdXVJHN0y0WI4y28icmILEoNiZv7B+U8MLHd2DOas8L3s70geD8hK2mB u4oKElurd2KZ0wLfRAnIlC2k4pwT9yFg2lMDGB9JKrVmvnfqFZhs6gGQ/OjfDWkBQ+1Cn0ppG lSkgI1Q2DC1HMn5XXfAKpDw8Rt5p2+tJyl9ZgLI7FnBSW7Y5MB6kGklaR3dWeAf7H+WQJIqby r37XZxDtETN/4= 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:126255 Archived-At: I am writing an org capture template for a book. I would like a different= function for each book, suppose I have three (Book A, Book B, Book C). Selecting e= ither A, B, and C, I can then te to the respective entries for each book. Can using three different functions be done to make org-capture templates? (defun captr-writing () (setq org-capture-templates `(("A" "Book A") ; backquote construct ("A1" "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) ("A2" "+ 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) ))) Thank you C*