emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James TD Smith <ahktenzero@mohorovi.cc>
To: John Wiegley <jwiegley@gmail.com>
Cc: Org-mode Mode <emacs-orgmode@gnu.org>
Subject: Re: Patch for resolving "away time" when clocked in
Date: Tue, 20 Oct 2009 12:57:27 +0100	[thread overview]
Message-ID: <20091020115727.GP72276@yog-sothoth.mohorovi.cc> (raw)
In-Reply-To: <27E1810B-0447-46B3-9AF4-BA14ACECA00A@gmail.com>

Hi John,

On 2009-10-16 03:03:19(-0400), John Wiegley wrote:
> Looking for anyone who uses Org's time clocking facilities and is
> willing to test this with me.  I've been using it for a couple of days
> now.  The functionality is based on the way the commercial app
> OfficeTime handles idleness.

I've been using org with this patch for a couple of days and I've found a
problem. I have several remember templates for handling phone calls, which clock
in automatically. org-clock-resolve fails when the remember buffer is open, I
think because the rememeber buffer somehow got into the result of
org-files-list.

I've changed org-files-list in my org install to

--8<---------------cut here---------------start------------->8---
(defun org-files-list ()
  "Return `org-agenda-files' list, plus all open org-mode files.
This is useful for operations that need to scan all of a user's
open and agenda-wise Org files."
  (let ((files (mapcar 'expand-file-name org-agenda-files)))
    (dolist (buf (buffer-list))
      (with-current-buffer buf
      (if (and (eq major-mode 'org-mode) (buffer-file-name)
       (not (equal (buffer-name) "*Remember*")))
           (let ((file (expand-file-name (buffer-file-name))))
	         (unless (member file files)
		 (push file files))))))
    files))
--8<---------------cut here---------------end--------------->8---

which seems to have fixed the problem.

--
|-<James TD Smith>-<email/ahktenzero@mohorovi.cc>-|

  parent reply	other threads:[~2009-10-20 11:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-16  7:03 Patch for resolving "away time" when clocked in John Wiegley
2009-10-16 14:25 ` Jeff Kowalczyk
2009-10-16 16:32   ` John Wiegley
2009-10-16 17:02     ` Jeff Kowalczyk
2009-10-16 17:41       ` John Wiegley
2009-10-16 17:52         ` John Wiegley
2009-10-16 18:13           ` Patch for resolving Jeff Kowalczyk
2009-10-16 15:59 ` Patch for resolving "away time" when clocked in Gregory J. Grubbs
2009-10-16 16:45   ` John Wiegley
2009-10-16 18:09     ` Gregory J. Grubbs
2009-10-16 18:43       ` John Wiegley
2009-10-19 15:41 ` Bernt Hansen
2009-10-19 20:44   ` John Wiegley
2009-10-19 22:02     ` Bernt Hansen
2009-10-20 11:57 ` James TD Smith [this message]
2009-10-20 16:43   ` John Wiegley

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=20091020115727.GP72276@yog-sothoth.mohorovi.cc \
    --to=ahktenzero@mohorovi.cc \
    --cc=emacs-orgmode@gnu.org \
    --cc=jwiegley@gmail.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).