From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qEf4CI3P/F4RZAAA0tVLHw (envelope-from ) for ; Wed, 01 Jul 2020 18:01:49 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CJrWBI3P/F7eBgAA1q6Kng (envelope-from ) for ; Wed, 01 Jul 2020 18:01:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 37B986803D4 for ; Wed, 1 Jul 2020 18:01:48 +0000 (UTC) Received: from localhost ([::1]:39914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jqh3K-00076L-3H for larch@yhetil.org; Wed, 01 Jul 2020 14:01:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jqh2Z-00074V-TJ for emacs-orgmode@gnu.org; Wed, 01 Jul 2020 14:00:59 -0400 Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]:45531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jqh2Y-00007F-6l for emacs-orgmode@gnu.org; Wed, 01 Jul 2020 14:00:59 -0400 Received: by mail-qv1-xf2e.google.com with SMTP id u8so11397686qvj.12 for ; Wed, 01 Jul 2020 11:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:message-id:date:mime-version; bh=MIC3DD6KVwVrzXlRlwltOXkiiD6TUO2Cx6BQ5AwPWwM=; b=GhbMu++7ZWr9d9PrFSJ4iVoGjiwwn5LJLtQHQCESuGnVAz0SVmhQcdS/0YM1QUNM1h c7vN/Vn+pJI+DE18bvsSWy9wNNpC4DE3Z0PYrWRbOeQJBMtKqb0fdZDUriTeIFyohU0X BKvA8NvW4I/oavqzaBgeIKp0BhdAlnY+jvXnkiiAHJ3GDQYzY3QDqxqcJA3EdPW0YkK2 e9h+C/a/vXgjTTAxtp/2QvjfgLCrp0bz/TywCOM55tSJEQW/F8MvEksyP7v/YZo0biUR qcHmKUMtZrPBwS/IDbl05sQgP23h2Iq6d3f+DyrwhZ+vaeAnwqv4Molkett4BkvK5IMF 7v0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:message-id:date :mime-version; bh=MIC3DD6KVwVrzXlRlwltOXkiiD6TUO2Cx6BQ5AwPWwM=; b=EWlGPFpYzjnTNIP3888xR4YKJVn80NI49PvwAYB2TndW1A5WrD/N2qc4CedAJhWVw3 vOuNWf1q6+e+vfVrEgCE1ykwaXb7XB4XBifcXj0G/Nbl6VnrhT0sE8Y3Ukh3ysoQeRT2 lRkmIJrS0RSNWXiYyR3yWnZRuqmjWgHlDKA1TZMZm4tpIQDxPNGvgcRKMDScnDrzRBGW 8V9pCJTkSQfr91tCsrHPflOAPpBy90pJfA+lvpDEhtmY/BvKUrKSWOnj1EWJ3PFLSAd+ Zknuu4//DHgen+CstgsJnAGpKjKdfq8FWyGJsFQiMJ70hv/P4xy7jsFHAMQJ3Bhz5yqN McKQ== X-Gm-Message-State: AOAM530k36cQCUXJc+UNhroSYKKw/I1+zBrh0tVuaqWhb5ZpO2T4inCA DXNlpt/VbHLs6u53wiTaNqA= X-Google-Smtp-Source: ABdhPJz9ShbXP9DuMwbE1yJixo7ZvwtHlWwu04rtLejFmA2oTTLHoBL8NMecQsNSxCxFiPZOKyWXoA== X-Received: by 2002:a0c:a993:: with SMTP id a19mr26604386qvb.34.1593626455737; Wed, 01 Jul 2020 11:00:55 -0700 (PDT) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id c80sm5532416qke.26.2020.07.01.11.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 11:00:53 -0700 (PDT) User-agent: mu4e 1.5.4; emacs 28.0.50 From: No Wayman To: emacs-orgmode@gnu.org, No Wayman Subject: [PATCH] capture: respect KEYS with GOTO arg [9.3.7 (release_9.3.7-661-g4aa4dd @ /home/n/.emacs.d/straight/build/org/)] Message-ID: <87mu4j8697.fsf@gmail.com> Date: Wed, 01 Jul 2020 14:00:52 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qv1-xf2e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=GhbMu++7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx2.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 7o6vl20hlcrq --=-=-= Content-Type: text/plain; format=flowed `org-capture' does not pass its KEYS argument to `org-capture-goto-target'. (Must not be a common use-case, as git blame points to org-capture's introduction 10 years ago!) The attached patch does just that. Wasn't sure if this was worthy of a NEWS entry. Will add if needed. Thanks, Nicholas Vollmer --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-capture-org-capture-pass-KEYS-with-GOTO-arg.patch Content-Description: org-capture-pass-keys-to-org-capture-goto-target >From 4aa4dd120a74679afe33b7fe603035dd0379441a Mon Sep 17 00:00:00 2001 From: Nicholas Vollmer Date: Wed, 1 Jul 2020 13:43:29 -0400 Subject: [PATCH] capture: org-capture pass KEYS with GOTO arg * org-capture.el (org-capture): pass `keys' arg to `org-capture-goto-target'. Allows programmatically visiting a specific template. --- lisp/org-capture.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index cc91251e0..2cc1ce394 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -628,7 +628,7 @@ of the day at point (if any) or the current HH:MM time." (setq org-overriding-default-time (org-get-cursor-date (equal goto 1)))) (cond - ((equal goto '(4)) (org-capture-goto-target)) + ((equal goto '(4)) (org-capture-goto-target keys)) ((equal goto '(16)) (org-capture-goto-last-stored)) (t (let* ((orig-buf (current-buffer)) -- 2.27.0 --=-=-=--