From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Temporally/occasionally turn off hooks? Date: Wed, 30 Jan 2013 13:21:49 +0100 Message-ID: <8738xi7teq.fsf@googlemail.com> References: <87r4l42nzi.fsf@googlemail.com> <87libb4x99.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Wfy-00047K-GZ for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 07:22:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0Wfx-0005OO-FX for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 07:22:02 -0500 Received: from plane.gmane.org ([80.91.229.3]:53742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Wfx-0005O4-9U for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 07:22:01 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U0WgC-0003Sr-6m for emacs-orgmode@gnu.org; Wed, 30 Jan 2013 13:22:16 +0100 Received: from e178117128.adsl.alicedsl.de ([85.178.117.128]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jan 2013 13:22:16 +0100 Received: from tjolitz by e178117128.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 30 Jan 2013 13:22:16 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bernt Hansen writes: Hi Bernt, > I would leave the hook always enabled but make it smart enough to skip > inserting timestamps when you don't want them. Something like the > following: > > f9-T will toggle adding the timestamps ON and OFF > f9-t will always insert a timestamp at point > C-RET and M-RET will use the hook which checks if the variable > bh/insert-inactive-timestamps is t before adding the timestamp, > otherwise it does nothing. great, thank you! -- cheers, Thorsten