emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Boudreault <aboudreault@mapgears.com>
To: Bastien <bastienguerry@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Lock CLOSED tag
Date: Fri, 17 Jul 2009 11:39:50 -0400	[thread overview]
Message-ID: <200907171139.51006.aboudreault@mapgears.com> (raw)
In-Reply-To: <87tz1b72gw.fsf@bzg.ath.cx>

That will not work... because I have all those todo keyword that also means 
"fixed":

Done, Delegated, deferred, wont fix, fixed, canceled.

That's why I said that I should pass through a list that contain all keywords. 
But... that wont work properly if I want to set my item to the "BUG" keyword 
passing with shift+arrow because I have 3 different sequences defined. 
Anyway.. will try to find the proper solution for that.

Alan

On July 17, 2009 11:29:03 am Bastien wrote:
> Alan Boudreault <aboudreault@mapgears.com> writes:
> > When I said "todo tag"... I meant "todo keyword". Here's a example of
> > what I'm trying to achieve:
> >
> > *** FIXED a bug
> >       CLOSED: [2009-07-08 Wed 16:49]
> >
> > By mistake, I can set the item to "Reopened" by example. And If I switch
> > it back to the proper todo keywork "FIXED". The closed property is
> > overwrited.
>
> Then try this instead:
>
> --8<---------------cut here---------------start------------->8---
> (add-hook 'org-blocker-hook 'my-blocker-function)
>
> (defun my-blocker-function (change-plist)
>   "Prevent TODO changes if the TODO keyword is FIXED."
>   (not (equal (plist-get change-plist :from) "FIXED")))
> --8<---------------cut here---------------end--------------->8---
>
> > I'm trying to block the update of the CLOSED Property IF it already
> > exist.
>
> If the CLOSED property is only set the first time you switch to FIXED,
> and if the FIXED todo keyword prevents any todo change, then the blocked
> FIXED todo keyword should prevent the CLOSED property to change.
>
> > Thanks For your help, and sorry for my english: I'm a french canadian
> > ;)
>
> Ah!  Je vous en prie :)

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com

      reply	other threads:[~2009-07-17 15:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-10 14:24 Lock CLOSED tag Alan Boudreault
2009-07-10 17:36 ` Nicolas Goaziou
2009-07-10 18:00   ` Alan Boudreault
2009-07-16 23:45 ` Bastien
2009-07-17 12:54   ` Alan Boudreault
2009-07-17 14:27     ` Bastien
2009-07-17 15:16       ` Alan Boudreault
2009-07-17 15:29         ` Bastien
2009-07-17 15:39           ` Alan Boudreault [this message]

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=200907171139.51006.aboudreault@mapgears.com \
    --to=aboudreault@mapgears.com \
    --cc=bastienguerry@googlemail.com \
    --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).