From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: starting a clock when not in org-mode Date: Fri, 13 May 2011 13:18:18 +0100 Message-ID: <87ipte94l1.fsf@ucl.ac.uk> References: <87k4dvc63u.fsf@ucl.ac.uk> <87y62arfku.fsf@fastmail.fm> <80E641F1-06C1-4823-933E-FFF167BB04D4@gmail.com> <87vcxe94u8.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKrK5-0007gz-SE for emacs-orgmode@gnu.org; Fri, 13 May 2011 08:18:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKrK1-0000YB-QE for emacs-orgmode@gnu.org; Fri, 13 May 2011 08:18:25 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:38319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKrK1-0000Y5-Kl for emacs-orgmode@gnu.org; Fri, 13 May 2011 08:18:21 -0400 In-Reply-To: <87vcxe94u8.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 13 May 2011 13:12:47 +0100") 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: Carsten Dominik Cc: Matt Lundin , emacs-orgmode@gnu.org Eric S Fraga writes: > Carsten Dominik writes: > >> On May 13, 2011, at 1:43 PM, Matt Lundin wrote: > > [...] > >>> >>> I cannot reproduce this. Here are the steps I took. >> >> I cannot reproduce it either. debug-on-error, and make a backtrace??? > > > Argghhh... I cannot reproduce now either. Sigh. Very strange. > > Everything works as I would like/expect! Sorry for the noise. Actually, to help redeem myself a little... the problem was that I was trying to bind the org-clock-in command *with* argument to a key and that's where I was going wrong. Silly elisp error: I did : (global-set-key (kbd " ") '(lambda () (interactive) (org-clock-in 4))) instead of the correct : (global-set-key (kbd " ") '(lambda () (interactive) (org-clock-in '(4)))) Note the argument to org-clock-in. As the argument was wrong, org-clock-in was trying to find a headline to clock in on, which is perfectly logical of course! Again, sorry for the noise and thanks for the speedy responses! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.274.gd6aba.dirty)