emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Radosław Grzanka" <radoslawg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: taking note when clocking out
Date: Thu, 14 Apr 2011 13:14:16 +0200	[thread overview]
Message-ID: <4DA6D708.1040306@gmail.com> (raw)
In-Reply-To: <vuoc49jfwp.fsf@news.eternal-september.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.

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

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-14  6:56 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 [this message]
2011-04-14 12:21     ` Giovanni Ridolfi
2011-04-14 12:40       ` Richard Riley
2011-04-14 12:58         ` Giovanni Ridolfi
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=4DA6D708.1040306@gmail.com \
    --to=radoslawg@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: taking note when clocking out' \
    /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

Code repositories for project(s) associated with this 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).