From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Heller Subject: Clock setup stopped working after update Date: Wed, 1 Mar 2017 12:52:28 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140865e97b0820549b17d36 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjBEd-0003vf-4f for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 15:52:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjBEb-00085W-Tw for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 15:52:31 -0500 Received: from mail-yw0-x232.google.com ([2607:f8b0:4002:c05::232]:35429) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjBEb-00085N-Nn for emacs-orgmode@gnu.org; Wed, 01 Mar 2017 15:52:29 -0500 Received: by mail-yw0-x232.google.com with SMTP id d1so42702745ywd.2 for ; Wed, 01 Mar 2017 12:52:29 -0800 (PST) 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" To: emacs-orgmode@gnu.org --001a1140865e97b0820549b17d36 Content-Type: text/plain; charset=UTF-8 Hello, I just updated emacs to GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-21 and orgmode to Org mode version 9.0.5 (9.0.5-elpa @ c:/Users/mheller/AppData/Roaming/.emacs.d/elpa/org-20170210/). I've been using Bernt Hansen's clock setup for over a year now, without issues. I realize that this is not readily reproduced, but I'm hoping that somebody will be able to spot what's going on based on experience. So, now, after this update, punching in after starting emacs results in an error: org-back-to-heading: Before first headline at position 1121 in buffer *Messages* Debugger: Debugger entered--Lisp error: (error "Before first headline at position 71 in buffer *GNU Emacs*") signal(error ("Before first headline at position 71 in buffer *GNU Emacs*")) error("Before first headline at position %d in buffer %s" 71 #) org-back-to-heading(t) org-clock-mark-default-task() org-clock-in((16)) (save-restriction (widen) (goto-char (or --mpom (point))) (org-clock-in (quote (16)))) (save-excursion (save-restriction (widen) (goto-char (or --mpom (point))) (org-clock-in (quote (16))))) (save-excursion (if (markerp --mpom) (set-buffer (marker-buffer --mpom))) (save-excursion (save-restriction (widen) (goto-char (or --mpom (point))) (org-clock-in (quote (16)))))) (let ((--mpom (org-id-find bh/organization-task-id (quote marker)))) (save-excursion (if (markerp --mpom) (set-buffer (marker-buffer --mpom))) (save-excursion (save-restriction (widen) (goto-char (or --mpom (point))) (org-clock-in (quote (16))))))) bh/clock-in-organization-task-as-default() (if (and (equal major-mode (quote org-mode)) (not (org-before-first-heading-p)) (eq arg 4)) (org-clock-in (quote (16))) (bh/clock-in-organization-task-as-default)) (save-restriction (widen) (if (and (equal major-mode (quote org-mode)) (not (org-before-first-heading-p)) (eq arg 4)) (org-clock-in (quote (16))) (bh/clock-in-organization-task-as-default))) (if (equal major-mode (quote org-agenda-mode)) (let* ((marker (org-get-at-bol (quote org-hd-marker))) (tags (let ((--mpom marker)) (save-excursion (if (markerp --mpom) (set-buffer ...)) (save-excursion (save-restriction ... ... ...)))))) (if (and (eq arg 4) tags) (org-agenda-clock-in (quote (16))) (bh/clock-in-organization-task-as-default))) (save-restriction (widen) (if (and (equal major-mode (quote org-mode)) (not (org-before-first-heading-p)) (eq arg 4)) (org-clock-in (quote (16))) (bh/clock-in-organization-task-as-default)))) bh/punch-in(1) funcall-interactively(bh/punch-in 1) call-interactively(bh/punch-in nil nil) command-execute(bh/punch-in) I did not change anything in my .emacs. Is somebody able to give me a hint as to what's going on? Thanks Markus --001a1140865e97b0820549b17d36 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I just upda= ted emacs to GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-21 and orgmod= e to=C2=A0Org mode version 9.0.5 (9.0.5-elpa @ c:/Users/mheller/AppData/Roa= ming/.emacs.d/elpa/org-20170210/).

I've been using Bernt = Hansen's clock setup for over a year now, without issues.=C2=A0 I reali= ze that this is not readily reproduced, but I'm hoping that somebody wi= ll be able to spot what's going on based on experience.=C2=A0 So, now, = after this update, punching in after starting emacs results in an error:

org-back-to-heading: Before first headline at position 1121 in buffer *Me= ssages*

Debugger:

Debugger entered--Lisp error: (error "B= efore first headline at position 71 in buffer *GNU Emacs*")
= =C2=A0 signal(error ("Before first headline at position 71 in buffer *= GNU Emacs*"))
=C2=A0 error("Before first headline at po= sition %d in buffer %s" 71 #<buffer *GNU Emacs*>)
=C2= =A0 org-back-to-heading(t)
=C2=A0 org-clock-mark-default-task()
=C2=A0 org-clock-in((16))
=C2=A0 (save-restriction (wide= n) (goto-char (or --mpom (point))) (org-clock-in (quote (16))))
= =C2=A0 (save-excursion (save-restriction (widen) (goto-char (or --mpom (poi= nt))) (org-clock-in (quote (16)))))
=C2=A0 (save-excursion (if (m= arkerp --mpom) (set-buffer (marker-buffer --mpom))) (save-excursion (save-r= estriction (widen) (goto-char (or --mpom (point))) (org-clock-in (quote (16= ))))))
=C2=A0 (let ((--mpom (org-id-find bh/organization-task-id = (quote marker)))) (save-excursion (if (markerp --mpom) (set-buffer (marker-= buffer --mpom))) (save-excursion (save-restriction (widen) (goto-char (or -= -mpom (point))) (org-clock-in (quote (16)))))))
=C2=A0 bh/clock-i= n-organization-task-as-default()
=C2=A0 (if (and (equal majo= r-mode (quote org-mode)) (not (org-before-first-heading-p)) (eq arg 4)) (or= g-clock-in (quote (16))) (bh/clock-in-organization-task-as-default))
=C2=A0 (save-restriction (widen) (if (and (equal major-mode (quote= org-mode)) (not (org-before-first-heading-p)) (eq arg 4)) (org-clock-in (q= uote (16))) (bh/clock-in-organization-task-as-default)))
=C2= =A0 (if (equal major-mode (quote org-agenda-mode)) (let* ((marker (org-get-= at-bol (quote org-hd-marker))) (tags (let ((--mpom marker)) (save-excursion= (if (markerp --mpom) (set-buffer ...)) (save-excursion (save-restriction .= .. ... ...)))))) (if (and (eq arg 4) tags) (org-agenda-clock-in (quote (16)= )) (bh/clock-in-organization-task-as-default))) (save-restriction (wid= en) (if (and (equal major-mode (quote org-mode)) (not (org-before-first-hea= ding-p)) (eq arg 4)) (org-clock-in (quote (16))) (bh/clock-in-organization-= task-as-default))))
=C2=A0 bh/punch-in(1)
=C2=A0 f= uncall-interactively(bh/punch-in 1)
=C2=A0 call-interactivel= y(bh/punch-in nil nil)
=C2=A0 command-execute(bh/punch-in)
<= /div>

I did not change anything in my .emacs.=C2=A0 Is somebody able to give = me a hint as to what's going on?
<= br>
Thanks
Markus
--001a1140865e97b0820549b17d36--