emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer Stengele <rainer.stengele@diplan.de>
To: emacs-orgmode@gnu.org
Subject: Re: clocking in and out in remember buffers - seems to be buggy
Date: Thu, 24 Jan 2008 16:14:40 +0100	[thread overview]
Message-ID: <4798AB60.3080601@diplan.de> (raw)
In-Reply-To: <6E8F4EA5-D1B1-4B80-9601-70E1A8B5A849@science.uva.nl>

Carsten Dominik schrieb:
> 
> On Jan 22, 2008, at 10:04 PM, Rainer Stengele wrote:
> 
>> I use to clock in a task when beginning to write in a remember buffer.
>> For example when receive a phone call from a customer I pop up a
>> remember template and the first thing I do is to start the clock.
>>
>> - it would be very nice to have a way to do this automatically, maybe
>> a certain variable ...
> 
> You could use remember-mode-hook to run org-clock-in, maybe depending
> on some string that you find and remove in the buffer.  The string could
> be part of the template, for example CLOCK-IN:
> 
> (add-hook 'remember-mode-hook 'my-start-clock-if-needed)
> (defun my-start-clock-if-needed ()
>   (save-excursion
>     (goto-char (point-min))
>     (when (re-search-forward " *CLOCK-IN *" nil t)
>        (replace-match "")
>        (org-clock-in))))
> 
>> After writing down notes and doing some stuff, documenting further in
>> the clocked in remember buffer, I finally want to save and close the
>> remember template.
>> After for example "C-u C-c C-c" I am asked if I want to clock out...
> 
> The query happens when the buffer gets killed - by then it is too late, the
> content of the buffer has already been filed away.
> 
> I will (in 5.20) have a check if the clock is running in the remember buffer
> before allowing you it file it.  This will not be an automatic clock-out
> because that would lead to trouble with possibly adding a note about
> clocking out.  But it will stop you from exiting without clocking out first.
> 
> - Carsten
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Hello Carsten,

thank's a lot! Good idea!

I tried it, using different regexes. It does not work when starting the remember buffer.
Being inside the remember buffer and calling the function it does work!
How can I track that down?
Btw, I cannot see a modeline telling me that I am in "remember mode" when I am in the Remember buffer.
Also "C-h m" doesn't show me anything about remember?

rainer

  reply	other threads:[~2008-01-24 15:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22 21:04 clocking in and out in remember buffers - seems to be buggy Rainer Stengele
2008-01-22 21:42 ` Austin Frank
2008-01-24  8:33 ` Carsten Dominik
2008-01-24 15:14   ` Rainer Stengele [this message]
2008-01-24 15:26     ` Carsten Dominik
2008-01-24 15:34       ` Rainer Stengele
2008-01-24 15:38         ` Carsten Dominik
2008-01-25 12:57           ` Rainer Stengele
2008-01-25 13:12             ` Carsten Dominik

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=4798AB60.3080601@diplan.de \
    --to=rainer.stengele@diplan.de \
    --cc=emacs-orgmode@gnu.org \
    /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).