From: Josh Moller-Mara <jmm@cns.nyu.edu>
To: emacs-orgmode@gnu.org
Subject: Bug: Marking repeated tasks with two tags as DONE causes problems
Date: Fri, 11 Aug 2017 15:04:05 +0800 [thread overview]
Message-ID: <87zib660wq.fsf@cns.nyu.edu> (raw)
Hello,
I'm starting to encounter a strange, silent problem when switching the
state of a task with multiple tags. With the following minimal example:
#+STARTUP: logdone
#+STARTUP: logdrawer
* TODO Hello :hi:there:
SCHEDULED: <2017-08-11 Fri .+1d>
Switching The "hello" task from "TODO" to "DONE" should keep the task as
"TODO", but schedule it in the future. Instead, the file ends up looking
like:
#STARTUP: logdone :hi:there:
#+STARTUP: logdrawer
* DONE Hello :hi:there:
CLOSED: [2017-08-11 Fri 14:57] SCHEDULED: <2017-08-12 Sat .+1d>
Where the task is marked as "DONE", and weirdly tags are added in some
of the startup config at the beginning of the file.
I'm using
Emacs : GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.5)
of 2017-01-18
Package: Org mode version 9.0.9 (release_9.0.9-746-g8fa6c0 @ /usr/local/share/emacs/site-lisp/org/)
There still seems to be a problem with org-toggle-tag, which is causing
this. I think it has to do with the "replace-match"
again. "org-split-string" doesn't save match data, so "replace-match"
replaces the wrong thing.
Best,
Josh
next reply other threads:[~2017-08-11 7:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 7:04 Josh Moller-Mara [this message]
2017-08-11 7:27 ` Bug: Marking repeated tasks with two tags as DONE causes problems Colin Baxter
2017-08-11 9:06 ` Nicolas Goaziou
2017-08-11 9:41 ` Josh Moller-Mara
2017-08-11 16:17 ` Colin Baxter
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=87zib660wq.fsf@cns.nyu.edu \
--to=jmm@cns.nyu.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).