emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
To: Richard Riley <rileyrg@googlemail.com>
Cc: Matt Lundin <mdl@imapmail.org>, emacs-orgmode@gnu.org
Subject: Re: taking note when clocking out
Date: Thu, 14 Apr 2011 14:58:28 +0200	[thread overview]
Message-ID: <83wrix0z2j.fsf@yahoo.it> (raw)
In-Reply-To: <nlei55j99x.fsf@news.eternal-september.org> (Richard Riley's message of "Thu, 14 Apr 2011 14:40:42 +0200")

Richard Riley <rileyrg@googlemail.com> writes:

Cc:-ed Matt Lundin 
>
> ps I have signed fsf papers if that little utility snippet is any good
> (ok, will need a defvar I guess for the tag used).

Maybe in the hack page of worg?
Feel free to reword my English ;-)

Giovanni
------------------ org-hacks.org  ------------

** Using and Managing Org-Metadata
[...] <skip>

*** A way to tag a task so that when clocking-out user is prompted to take a note.
-- Richard G. Riley

A small function that, finding the tag "clockout_note" in a headline,
prompts for a note. It uses the tag ("clockout_note") so can benefit 
from inherit etc...

#+begin_src emacs-lisp
     (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)
#+end_src

  reply	other threads:[~2011-04-14 12:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-14  6:56 taking note when clocking out Radosław Grzanka
2011-04-14  8:25 ` Giovanni Ridolfi
2011-04-14  8:34   ` Richard Riley
2011-04-14  9:02     ` Radosław Grzanka
2011-04-14 10:17   ` Richard Riley
2011-04-14 11:14     ` Radosław Grzanka
2011-04-14 12:21     ` Giovanni Ridolfi
2011-04-14 12:40       ` Richard Riley
2011-04-14 12:58         ` Giovanni Ridolfi [this message]
2011-04-14 14:20           ` Matt Lundin
2011-04-14 14:42             ` Richard Riley
2011-04-14 16:48               ` Matt Lundin

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=83wrix0z2j.fsf@yahoo.it \
    --to=giovanni.ridolfi@yahoo.it \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \
    --cc=rileyrg@googlemail.com \
    /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).