From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Clocking in on non-org files Date: Sat, 16 Aug 2014 15:47:58 +0200 Message-ID: <20140816154758.7ec02caa@aga-netbook> References: <20131006140745.1a38e497@aga-netbook> <20131006151125.GG2622@kuru.dyndns-at-home.com> <20131006232625.2f42aa85@aga-netbook> <20140816141248.524ea25c@aga-netbook> <20140816143117.2c442296@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIeLE-0001A2-R5 for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 09:48:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIeL8-0003XZ-Kg for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 09:48:20 -0400 Received: from msg.wmi.amu.edu.pl ([150.254.78.50]:52745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIeL8-0003XM-E7 for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 09:48:14 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 978AF77B8C for ; Sat, 16 Aug 2014 15:48:09 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fq8mia8yHOHz for ; Sat, 16 Aug 2014 15:48:09 +0200 (CEST) Received: from aga-netbook (unknown [185.13.171.31]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 899DC77B8A for ; Sat, 16 Aug 2014 15:48:08 +0200 (CEST) In-Reply-To: <20140816143117.2c442296@aga-netbook> 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 Dnia 2014-08-16, o godz. 14:31:17 Marcin Borkowski napisa=C5=82(a): > Dnia 2014-08-16, o godz. 14:12:48 > Marcin Borkowski napisa=C5=82(a): >=20 > > abovementioned TODO, for example), I can also C-c C-x C-i to clock > > in, C-c C-x C-o to clock out and C-c C-x C-x to cancel the clock. >=20 > Oops. Clocking in doesn't work for some weird reason. I sometimes > get the "org-heading-components: Wrong type argument: stringp, nil" > message, and sometimes it seems to jump to a wrong buffer. Any ideas? OK, sorry for spamming the list, but here's what I established (with the help of Edebug). The problem is with org-heading-components; for some reason, the variable org-complex-heading-regexp is nil when running that function. This variable is buffer-local, and it seems that (somehow) the value org-clock-in sees is nil. A further inspection shows that the (current-buffer) is (at that time) *not* the one jumped to by org-open-at-point-global. Anyone knows why that is so? BTW, I've just discovered org-open-link-from-string, so that I'll be able to simplify my code a bit. Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University