From mboxrd@z Thu Jan 1 00:00:00 1970 From: hymie@lactose.homelinux.net (hymie!) Subject: Re: clock-in clock-out problems Date: Mon, 18 Aug 2014 20:55:43 +0000 (UTC) Message-ID: References: <87siktslfr.fsf@snow.nl> <87ha19r22x.fsf@alphaville.bos.redhat.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJTyD-0005g0-3p for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 16:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJTy8-0002to-Bp for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 16:56:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:59158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJTy8-0002tg-1f for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 16:55:56 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJTy6-0003w6-GT for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 22:55:54 +0200 Received: from c-68-50-123-74.hsd1.md.comcast.net ([68.50.123.74]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 22:55:54 +0200 Received: from hymie by c-68-50-123-74.hsd1.md.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 22:55:54 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org In our last episode, the evil Dr. Lacto had captured our hero, Nick Dokos , who said: >hymie@lactose.homelinux.net (hymie!) writes: > >> In our last episode, the evil Dr. Lacto had captured our hero, >> Joost Helberg , who said: >>>Dear Hymie, >>> >>>The customizable variable: >>> org-clock-persist >>> >>>is used for solving this. >> >> Thanks for the info. However, when I tried it out, I get asked >> "Resume clock (test) (y or n)" If I answer "n" then the problem recurs >> (as I would expect). If I answer "y", then I get an error >> (lines cut to 75-ish, but I can try to send the full entire error message >> if needed) >> >> Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) >> goto-char(nil) >> (cond ((and org-clock-in-resume (looking-at (concat "^[ ]*" org-cloc >> (save-restriction (widen) (goto-char target-pos) (org-back-to-heading t) ( >> (save-excursion (save-restriction (widen) (goto-char target-pos) (org-back >> (save-excursion (if (and selected-task (marker-buffer selected-task)) (pro >> (let ((interrupting (and (not org-clock-resolving-clocks-due-to-idleness) >> (catch (quote abort) (let ((interrupting (and (not org-clock-resolving-clo >> org-clock-in() >> [...] > >I added the following to my .emacs > >--8<---------------cut here---------------start------------->8--- >(require 'org-clock) >(setq org-clock-persist t) >(org-clock-persistence-insinuate) >--8<---------------cut here---------------end--------------->8--- I didn't have (require 'org-clock) ; just added it; no help. >If you get an error, then it might be a bug in your version. Post the >version along with the complete backtrace (preferably using >org-submit-bug-report). The entry that I'm using is just * TODO clock test CLOCK: [2014-08-18 Mon 16:20] (This is the "Messages" that you asked for in the other post) ("emacs" "zz.org") For information about GNU Emacs and the GNU system, type C-x h C-a. Restoring clock data Loading /home/hymie/.emacs.d/org-clock-save.el (source)...done Resume clock (clock test) (y or n) y Matched 2014-08-18 Mon 16:20 Entering debugger... Quit (This is the org-submit-bug-report) Emacs : GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.13) of 2014-06-17 on herman Package: Org-mode version 8.2.7c (8.2.7c-dist @ /home/hymie/org-mode/lisp/) current state: ============== (setq org-agenda-log-mode-items '(closed clock state) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-clock-in-resume 'auto-restart org-agenda-skip-scheduled-if-done t org-clock-persist t org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-modules '(org-bbdb org-bibtex org-docview org-gnus org-habit org-info org-irc org-mhe org-rmail org-w3m) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-clock-auto-clock-resolution nil org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-agenda-skip-deadline-if-done t org-mode-hook '(org-clock-load (lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all) (quote append) (quote local)) ) (lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local)) ) org-babel-result-hide-spec org-babel-hide-all-hashes turn-on-font-lock) org-directory "~" org-from-is-user-regexp "\\" org-metadown-hook '(org-babel-pop-to-session-maybe) org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" "|" "DONE(d!)" "CANCELED(c@)") ) org-agenda-files '("~/org/") org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-confirm-shell-link-function 'yes-or-no-p ) --hymie! http://lactose.homelinux.net/~hymie hymie@lactose.homelinux.net