From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hanno Perrey Newsgroups: gmane.emacs.bugs Subject: bug#51524: [PATCH] ; * doc/misc/org.org: fix capture context example Date: Sat, 30 Oct 2021 21:51:02 +0200 Message-ID: <87mtmqjl49.fsf@hoowl.se> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.5; emacs 27.1 To: 51524@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 08:49:12 2021 Return-path: Envelope-to: geb-bug-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 1mh5aa-0000jz-2b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 08:49:12 +0100 Original-Received: from localhost ([::1]:54136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mh5aY-0003bw-Oh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 03:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56592) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh5aQ-0003bn-2m for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 03:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mh5aP-0008RC-QS for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 03:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mh5aP-00046A-O6 for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 03:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hanno Perrey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2021 07:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51524 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163566651315710 (code B ref -1); Sun, 31 Oct 2021 07:49:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2021 07:48:33 +0000 Original-Received: from localhost ([127.0.0.1]:58897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mh5Zw-00045I-1n for submit@debbugs.gnu.org; Sun, 31 Oct 2021 03:48:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgvG7-0001kC-Gs for submit@debbugs.gnu.org; Sat, 30 Oct 2021 16:47:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35890) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgvG6-0004fi-F9 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 16:47:23 -0400 Original-Received: from minsky.hcoop.net ([104.248.1.95]:51634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgvG4-0004re-J0 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 16:47:22 -0400 Original-Received: from 194-18-252-127-no2005.tbcn.telia.com ([194.18.252.127] helo=localhost) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgvG2-0004tG-UI for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 16:47:19 -0400 Received-SPF: none client-ip=104.248.1.95; envelope-from=hanno@hoowl.se; helo=minsky.hcoop.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 31 Oct 2021 03:48:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218660 Archived-At: --=-=-= Content-Type: text/plain Hej, the attached patch fixes a typo in the org-mode info pages: the examples for org-capture contexts are each missing a pair of parenthesis as detailed in the doc string for org-capture-templates-contexts, leading to a "Wrong type argument: listp, in-mode" error when invoking org-capture. Thanks for the great work on Emacs and best wishes, Hanno --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-doc-misc-org.org-fix-capture-context-example.patch Content-Description: patch org-mode doc >From fe58a9b0800f69c55218c7f0ce3306057c511a57 Mon Sep 17 00:00:00 2001 From: Hanno Perrey Date: Sat, 30 Oct 2021 21:34:04 +0200 Subject: [PATCH] ; * doc/misc/org.org: fix capture context example Add missing parenthesis to code example for org-capture template contexts as documented in docstring Copyright-paperwork-exempt: yes --- doc/misc/org.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/misc/org.org b/doc/misc/org.org index 788e5efedf..17fd2dc39f 100644 --- a/doc/misc/org.org +++ b/doc/misc/org.org @@ -7981,7 +7981,7 @@ patches. Then you would configure this option like this: #+begin_src emacs-lisp (setq org-capture-templates-contexts - '(("p" (in-mode . "message-mode")))) + '(("p" ((in-mode . "message-mode"))))) #+end_src You can also tell that the command key {{{kbd(p)}}} should refer to @@ -7989,7 +7989,7 @@ another template. In that case, add this command key like this: #+begin_src emacs-lisp (setq org-capture-templates-contexts - '(("p" "q" (in-mode . "message-mode")))) + '(("p" "q" ((in-mode . "message-mode"))))) #+end_src See the docstring of the variable for more information. -- 2.33.1 --=-=-=--