From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: clock-in clock-out problems Date: Mon, 18 Aug 2014 17:39:06 -0400 Message-ID: <87d2bxpjet.fsf@alphaville.bos.redhat.com> References: <87siktslfr.fsf@snow.nl> <87ha19r22x.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJUeD-0005RV-Da for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 17:39:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJUe8-0006zj-Cs for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 17:39:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:50224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJUe8-0006zD-5E for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 17:39:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJUe6-0007wk-5S for emacs-orgmode@gnu.org; Mon, 18 Aug 2014 23:39:18 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 23:39:18 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 23:39:18 +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 hymie@lactose.homelinux.net (hymie!) writes: >>> (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 > ... and the complete backtrace? Does it look like the partial one you posted before? In particular, is the argument to goto-char nil? If that's the case, and assuming I'm in the right place in the source code, *Messages* shows the correct value for the matched string but the backtrace shows that match-end returned nil which means that the regexp *did not match*. Both of these two cannot be right (unless there is a bug in the emacs regexp matching code, which for now at least, I'm discounting). -- Nick