From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?UmFkb3PFgmF3IEdyemFua2E=?= Subject: Re: taking note when clocking out Date: Thu, 14 Apr 2011 13:14:16 +0200 Message-ID: <4DA6D708.1040306@gmail.com> References: <4DA69AAA.9040707@gmail.com> <83ei552q9h.fsf@yahoo.it> Reply-To: radoslawg@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAKVY-00048T-JZ for emacs-orgmode@gnu.org; Thu, 14 Apr 2011 07:14:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAKVV-0000iH-Ka for emacs-orgmode@gnu.org; Thu, 14 Apr 2011 07:14:44 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:49426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAKVV-0000i5-Ee for emacs-orgmode@gnu.org; Thu, 14 Apr 2011 07:14:41 -0400 Received: by bwz17 with SMTP id 17so1558002bwz.0 for ; Thu, 14 Apr 2011 04:14:40 -0700 (PDT) In-Reply-To: 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 Hello, > I thought I'd have a quick crack at this since its ages I tried any > elisp > > Something along the lines of > > > ,---- > | (require 'org-clock) > | > | (defun rgr/check-for-clock-out-note() > | (interactive) > | (save-excursion > | (set-mark (goto-char (org-entry-beginning-position))) > | (let ((tags (org-get-tags))) > | (message "tags: %s " tags) > | (if (member "clockout_note" tags) > | (org-add-note))))) > | > | (add-hook 'org-clock-out-hook 'rgr/check-for-clock-out-note) > `---- Mircale! Thank you. Radek.