From: Jason Riedy <ejr@EECS.Berkeley.EDU>
To: emacs-orgmode@gnu.org
Subject: [Orgmode] [PATCH] Distinguish between TEST todo tag and TESTING header
Date: Wed, 06 Sep 2006 16:08:31 -0700 [thread overview]
Message-ID: <21258.1157584111@lotus.CS.Berkeley.EDU> (raw)
For various reasons, I need both a TEST todo tag and a
header named TESTING in the same document. The current
org-mode correctly distinguishes between them internally,
but not for export.
The appended patch works for me with a recent Emacs
snapshot, but my org-mode uses are pretty trivial (for now).
I don't have a wide variety of cases to test against.
Jason
---
--- org.el.orig 2006-09-06 15:31:20.000000000 -0700
+++ org.el 2006-09-06 15:31:08.000000000 -0700
@@ -2806,15 +2806,15 @@
"\\|")
"\\)\\>")
org-todo-line-regexp
- (concat "^\\(\\*+\\)[ \t]*\\("
+ (concat "^\\(\\*+\\)[ \t]*\\(?:\\("
(mapconcat 'regexp-quote org-todo-keywords "\\|")
- "\\)? *\\(.*\\)")
+ "\\)\\>\\)? *\\(.*\\)")
org-nl-done-regexp
(concat "[\r\n]\\*+[ \t]+" org-done-string "\\>")
org-todo-line-tags-regexp
- (concat "^\\(\\*+\\)[ \t]*\\("
+ (concat "^\\(\\*+\\)[ \t]*\\(?:\\("
(mapconcat 'regexp-quote org-todo-keywords "\\|")
- "\\)? *\\(.*?\\([ \t]:[a-zA-Z0-9:_@]+:[ \t]*\\)?$\\)")
+ "\\)\\>\\)? *\\(.*?\\([ \t]:[a-zA-Z0-9:_@]+:[ \t]*\\)?$\\)")
org-looking-at-done-regexp (concat "^" org-done-string "\\>")
org-deadline-regexp (concat "\\<" org-deadline-string)
org-deadline-time-regexp
next reply other threads:[~2006-09-06 23:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-06 23:08 Jason Riedy [this message]
2006-09-07 7:36 ` [Orgmode] [PATCH] Distinguish between TEST todo tag and TESTING header Carsten Dominik
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=21258.1157584111@lotus.CS.Berkeley.EDU \
--to=ejr@eecs.berkeley.edu \
--cc=emacs-orgmode@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/org-mode.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).