From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Re: New implementation of the Org remember process ready for comments and testing Date: Wed, 23 Jun 2010 22:41:37 -0400 Message-ID: <8739wdw3ry.fsf@gollum.intra.norang.ca> References: <87hbktusex.fsf@gollum.intra.norang.ca> <31117.1277346983@gamaville.dokosmarshall.org> <877hlpw3z1.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORcNt-0003Kv-4I for emacs-orgmode@gnu.org; Wed, 23 Jun 2010 22:41:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORcNr-0005K9-VO for emacs-orgmode@gnu.org; Wed, 23 Jun 2010 22:41:45 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:56347) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORcNr-0005K5-TC for emacs-orgmode@gnu.org; Wed, 23 Jun 2010 22:41:43 -0400 In-Reply-To: <877hlpw3z1.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Wed\, 23 Jun 2010 22\:37\:22 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Org Mode , Carsten Dominik Bernt Hansen writes: > Nick Dokos writes: > >> Bernt Hansen wrote: >> >>> >>> One thing I'm missing is I have a function that changes my TODO state to >>> NEXT on clock in except when I'm creating a new remember-mode task. >>> >>> I need a similar way to tell if I'm in a capture-mode buffer to prevent >>> changing the todo state to NEXT on clock-in. >>> >>> I can use the buffer name which starts with "CAPTURE-" and ends in >>> ".org" but that feels kind of hackish. Is there a variable or function >>> available that I can use to tell if I'm clocking in a task in a capture >>> buffer? >>> >>> Something like (capture-mode-p) maybe? >>> >> >> Maybe this? >> >> ,---- >> | org-capture-mode is a variable defined in `org-capture.el'. >> | Its value is t >> | Local in buffer CAPTURE-work.org; global value is nil >> | >> | Automatically becomes buffer-local when set in any fashion. >> | >> | Documentation: >> | Non-nil if Org-Capture mode is enabled. >> | Use the command `org-capture-mode' to change this variable. >> `---- > > I tried that but couldn't get it to work :) Actually that seems to work in Emacs 23 but not in Emacs 22. It's value is always nil in emacs 22. GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on raven, modified by Debian -Bernt