From: Hanno Perrey <hanno@hoowl.se>
To: 51524@debbugs.gnu.org
Subject: bug#51524: [PATCH] ; * doc/misc/org.org: fix capture context example
Date: Sat, 30 Oct 2021 21:51:02 +0200 [thread overview]
Message-ID: <87mtmqjl49.fsf@hoowl.se> (raw)
[-- Attachment #1: Type: text/plain, Size: 354 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch org-mode doc --]
[-- Type: text/x-diff, Size: 1206 bytes --]
From fe58a9b0800f69c55218c7f0ce3306057c511a57 Mon Sep 17 00:00:00 2001
From: Hanno Perrey <hanno@hoowl.se>
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
next reply other threads:[~2021-10-30 19:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-30 19:51 Hanno Perrey [this message]
2021-10-31 15:23 ` bug#51524: [PATCH] ; * doc/misc/org.org: fix capture context example Lars Ingebrigtsen
2021-10-31 15:32 ` Eli Zaretskii
2021-10-31 15:36 ` Lars Ingebrigtsen
2021-11-21 9:06 ` Bastien
2021-11-21 9:10 ` Eli Zaretskii
2021-11-21 21:52 ` Bastien
2021-11-21 9:04 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mtmqjl49.fsf@hoowl.se \
--to=hanno@hoowl.se \
--cc=51524@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).