From mboxrd@z Thu Jan 1 00:00:00 1970 From: hymie@lactose.homelinux.net (hymie!) Subject: Re: clock-in clock-out problems Date: Tue, 19 Aug 2014 15:01:27 +0000 (UTC) Message-ID: References: <87d2bxpjet.fsf@alphaville.bos.redhat.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkv0-00018R-Vt for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 11:02:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJkuv-0007my-7Z for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 11:01:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:41661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJkuv-0007mo-1Z for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 11:01:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJkuo-0008M0-F5 for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 17:01:38 +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 ; Tue, 19 Aug 2014 17:01:38 +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 ; Tue, 19 Aug 2014 17:01:38 +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 IMPORTANT NEW DISCOVERY By default, I use emacs in a terminal window (emacs -nw) When I use emacs as an X program, the clock persistence works successfully and I do not get any errors. Only when I use emacs with the -nw flag do I get the clock persistence error below. --hymie! http://lactose.homelinux.net/~hymie hymie@lactose.homelinux.net In our last episode, the evil Dr. Lacto had captured our hero, hymie@lactose.homelinux.net (hymie!), who said: >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-clock-string " \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}" " >*\\sw+.? +[012][0-9]:[0-5][0-9]\\)\\][ ]*$"))) (message "Matched %s" >(match-string 1)) (setq ts (concat "[" (match-string 1) "]")) (goto-char >(match-end 1)) (setq org-clock-start-time (apply (quote encode-time) >(org-parse-time-string (match-string 1)))) (setq org-clock-effort >(org-entry-get (point) org-effort-property)) (setq org-clock-total-time >(org-clock-sum-current-item (org-clock-get-sum-start)))) ((eq >org-clock-in-resume (quote auto-restart)) (message "Cannot restart clock >because task does not contain unfinished clock") (ding) (sit-for 2) >(throw (quote abort) nil)) (t (insert-before-markers "\n") >(backward-char 1) (org-indent-line) (if (and (save-excursi > on (end-of-line 0) (org-in-item-p))) (progn (beginning-of-line 1) >(org-indent-line-to (- (org-get-indentation) 2)))) (insert >org-clock-string " ") (setq org-clock-effort (org-entry-get (point) >org-effort-property)) (setq org-clock-total-time >(org-clock-sum-current-item (org-clock-get-sum-start))) (setq >org-clock-start-time (or (and org-clock-continuously org-clock-out-time) >(and leftover (y-or-n-p (format "You stopped another clock %d mins ago; >start this one from then? " (/ ... 60))) leftover) start-time >(org-current-time org-clock-rounding-minutes t))) (setq ts >(org-insert-time-stamp org-clock-start-time (quote with-hm) (quote >inactive)))))