emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: "Jason F. McBrayer" <jmcbray@carcosa.net>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Org-mode release 4.58
Date: Wed, 6 Dec 2006 03:52:01 +0100	[thread overview]
Message-ID: <3133afbe070539675916ee37bf281faa@science.uva.nl> (raw)
In-Reply-To: <20061205211405.GB3211@bertrand.carcosa.net>


On Dec 5, 2006, at 22:14, Jason F. McBrayer wrote:
> I've tried this with the example provided before, and also replaced a
> lot of the functions that switch from the agenda buffer to the
> corresponding org-mode buffer with functions that switch to the
> subtree indirect buffer.
>
> Now I've switched back to the original, default behaviour.  The
> problem with what I tried was that I tended to clock-in to the
> indirect buffer, with the result that org-clock-marker tended to get
> lost, making switching tasks or clocking out break.  I consider this
> my fault, though, not an org-mode issue.

Yes, in this case clocking out will only be possible as long as the
indirect buffer lives.  However, we can easily put the clock marker
into the base buffer.  Try the following patch:


--- org.el.orig 2006-12-06 03:45:40.000000000 +0100
+++ org.el      2006-12-06 03:46:45.000000000 +0100
@@ -6805,7 +6805,7 @@
        (indent-relative)
        (insert org-clock-string " ")
        (setq ts (org-insert-time-stamp (current-time) 'with-hm 
'inactive))
-      (move-marker org-clock-marker (point))
+      (move-marker org-clock-marker (point) (buffer-base-buffer))
        (message "Clock started at %s" ts))))

  (defun org-clock-out (&optional fail-quietly)

  reply	other threads:[~2006-12-06  2:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-05 10:21 Org-mode release 4.58 Carsten Dominik
2006-12-05 20:59 ` Eddward DeVilla
2006-12-05 21:13   ` Carsten Dominik
2006-12-05 21:14   ` Jason F. McBrayer
2006-12-06  2:52     ` Carsten Dominik [this message]
2006-12-06 15:54       ` Jason F. McBrayer
2006-12-06 10:45 ` Bastien
2006-12-06 23:09   ` Carsten Dominik
2006-12-07  9:46     ` Bastien
2006-12-07 11:08       ` Carsten Dominik
2006-12-07 11:39         ` Bastien

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=3133afbe070539675916ee37bf281faa@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=jmcbray@carcosa.net \
    /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).