A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://lists.gnu.org/archive/html/emacs-orgmode/2009-07/msg00500.html below:

Re: [Orgmode] Lock CLOSED tag

[Top][All Lists] [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] From: Bastien Subject: Re: [Orgmode] Lock CLOSED tag Date: Fri, 17 Jul 2009 01:45:41 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
Alan Boudreault <address@hidden> writes:

> Is it possible to lock the CLOSED tag ? 

Yes, try this:

--8<---------------cut here---------------start------------->8---
(add-hook 'org-blocker-hook 'my-blocker-function)

(defun my-blocker-function (change-plist)
  "Prevent TODO changes if CLOSED."
  (not (equal (plist-get change-plist :from) "CLOSED")))
--8<---------------cut here---------------end--------------->8---

Careful as it throws an error.

-- 
 Bastien




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4