From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Subject: BUG: Capture task clocking doesn't stop due to narrowing
Date: Sat, 16 Mar 2019 16:42:41 -0400 [thread overview]
Message-ID: <87woky8sam.fsf@norang.ca> (raw)
Hi,
I ran into an issue this morning where my capture task continues
clocking on save. This occurs in both master and maint when not
clocking into a drawer.
ECM follows.
--- test.org -------------------------------------------------------------------
#+TITLE: BUG: Capture with clocking does not stop the clock due to narrowing
*Keys To Reproduce*
1) Capture a new entry
C-c c w
2) Save entry - clock should stop but doesn't
C-c C-c
The clock is still running after save but should have been
stopped. The clock was not included in the narrowed buffer in the
capture window. If we widen the buffer before saving the clock is
stopped normally.
Same results in both maint and master branch.
CLOCK changed to KLOCK in example below to avoid before first headline
error. The clock line is being picked up even though it is inside an
example block and the clock resolution code is trying to deal with it.
#+begin_example
,* Tasks
,* Work Log
,** DONE Capture bug details
KLOCK: [2019-03-16 Sat 16:09]
,* Personal Log
#+end_example
GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17
Org mode version 9.2.2 (release_9.2.2-312-gce1681 @ c:/D-Drive/bin/org-mode/lisp/)
* Tasks
* Work Log
* Personal Log
--- minimal.emacs --------------------------------------------------------------
(add-to-list 'load-path "C:/D-Drive/bin/org-mode/lisp/")
(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\)$" . org-mode))
(require 'org)
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
--- test.el --------------------------------------------------------------------
(global-set-key (kbd "C-c c") 'org-capture)
;; Save clock data and state changes and notes in the LOGBOOK drawer
(setq org-clock-into-drawer 4)
(setq org-adapt-indentation nil)
(setq org-capture-templates
(quote (("t" "Todo" entry (file "~/test.org")
"* TODO %?\n\n%x\n" :clock-in t :clock-resume t)
("p" "Personal Log" entry (file+olp "~/test.org" "Personal Log")
"* DONE %?\n" :clock-in t :clock-resume t)
("w" "Work Log" entry (file+olp "~/test.org" "Work Log")
"* DONE %?\n" :clock-in t :clock-resume t))))
--- windows icon properties to start minimal emacs -----------------------------
C:\D-Drive\bin\emacs-25.1\bin\runemacs.exe -q -l ~/minimal.emacs -l ~/test.el ~/test.org
Regards,
Bernt
next reply other threads:[~2019-03-16 20:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-16 20:42 Bernt Hansen [this message]
2021-10-03 8:22 ` [O] BUG: Capture task clocking doesn't stop due to narrowing Ihor Radchenko
2022-10-06 8:04 ` Ihor Radchenko
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=87woky8sam.fsf@norang.ca \
--to=bernt@norang.ca \
--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).