From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael.ziems@xiron.de Subject: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report Date: Mon, 08 May 2017 08:53:43 +0200 Message-ID: <4a5326fd9a032b6691143a82e7d2a0a0@xiron.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_e08bb825ef88ec01a7a5a2004f8aa5a8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7cYR-0002nq-6P for emacs-orgmode@gnu.org; Mon, 08 May 2017 02:54:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7cYO-00023H-5F for emacs-orgmode@gnu.org; Mon, 08 May 2017 02:53:59 -0400 Received: from smtp3.goneo.de ([85.220.129.37]:51034) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7cYN-00020d-SI for emacs-orgmode@gnu.org; Mon, 08 May 2017 02:53:56 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 419D123F3CA for ; Mon, 8 May 2017 08:53:52 +0200 (CEST) Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gNfzwfCBZpNS for ; Mon, 8 May 2017 08:53:43 +0200 (CEST) Received: from webmail.goneo.de (webmail.goneo.de [82.100.220.15]) by smtp3.goneo.de (Postfix) with ESMTPSA id 408A123FF08 for ; Mon, 8 May 2017 08:53:43 +0200 (CEST) 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 --=_e08bb825ef88ec01a7a5a2004f8aa5a8 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Hello, when i try to swicht an active timestamp via org-shitright or when i fire M-x org-submit-bug-report i get the following error: Debugger entered--Lisp error: (invalid-read-syntax "?") eval-buffer(# nil "c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el" nil t) ; Reading at buffer position 72111 load-with-code-conversion("c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el" "c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el" nil t) require(org-clock) mapc(require (org-agenda org-archive org-attach org-clock org-colview org-id org-table org-timer)) org-require-autoloaded-modules() org-submit-bug-report() call-interactively(org-submit-bug-report record nil) command-execute(org-submit-bug-report record) execute-extended-command(nil "org-submit-bug-report") call-interactively(execute-extended-command nil nil) I tried to do the same with Edebug on, but somehow it looks fine there. Emacs-Version: GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN Org-Version: Org mode version 9.0.6 (9.0.6-elpa @ c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/) Im doing this on windows. Any help is appreciated. Thanks, Michael --=_e08bb825ef88ec01a7a5a2004f8aa5a8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hello,

when i try to swicht an active timestamp via org-shitright or when i fir= e M-x org-submit-bug-report i get the following error:


Debugger entered--Lisp error: (invalid-read-syntax "?")
  eval= -buffer(#<buffer  *load*> nil "c:/Users/sane/AppData/Roaming/.em= acs.d/elpa/org-20170502/org-clock.el" nil t)  ; Reading at buffer posi= tion 72111
  load-with-code-conversion("c:/Users/sane/AppData/Roa= ming/.emacs.d/elpa/org-20170502/org-clock.el" "c:/Users/sane/AppData/Roamin= g/.emacs.d/elpa/org-20170502/org-clock.el" nil t)
  require(org-c= lock)
  mapc(require (org-agenda org-archive org-attach org-clock= org-colview org-id org-table org-timer))
  org-require-autoloade= d-modules()
  org-submit-bug-report()
  call-interactiv= ely(org-submit-bug-report record nil)
  command-execute(org-submi= t-bug-report record)
  execute-extended-command(nil "org-submit-b= ug-report")
  call-interactively(execute-extended-command nil nil= )


I tried to do the same with Edebug on, but somehow it looks fine there= =2E

Emacs-Version: GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on= MARVIN

Org-Version: Org mode version 9.0.6 (9.0.6-elpa @ c:/Users/sane/AppData/= Roaming/.emacs.d/elpa/org-20170502/)

Im doing this on windows.

Any help is appreciated.

Thanks,

Michael

--=_e08bb825ef88ec01a7a5a2004f8aa5a8-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report Date: Mon, 08 May 2017 11:09:34 +0200 Message-ID: <87efvz7m0h.fsf@nicolasgoaziou.fr> References: <4a5326fd9a032b6691143a82e7d2a0a0@xiron.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7efm-0002PM-DI for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7efj-0004nn-6q for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:09:42 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:54251) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7efj-0004nE-00 for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:09:39 -0400 In-Reply-To: <4a5326fd9a032b6691143a82e7d2a0a0@xiron.de> (michael ziems's message of "Mon, 08 May 2017 08:53:43 +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" To: michael.ziems@xiron.de Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, michael.ziems@xiron.de writes: > when i try to swicht an active timestamp via org-shitright or when i > fire M-x org-submit-bug-report i get the following error: > > Debugger entered--Lisp error: (invalid-read-syntax "?") > eval-buffer(# nil > "c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el" > nil t) ; Reading at buffer position 72111 > > load-with-code-conversion("c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el" > "c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el" > nil t) > require(org-clock) > mapc(require (org-agenda org-archive org-attach org-clock org-colview > org-id org-table org-timer)) > org-require-autoloaded-modules() > org-submit-bug-report() > call-interactively(org-submit-bug-report record nil) > command-execute(org-submit-bug-report record) > execute-extended-command(nil "org-submit-bug-report") > call-interactively(execute-extended-command nil nil) > > I tried to do the same with Edebug on, but somehow it looks fine > there. Would the attached patch fix your issue? Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-org-clock-Disambiguate-character-syntax.patch Content-Transfer-Encoding: quoted-printable >From 144c4ba61ba325f682088ba8501dccb3e20dbc8a Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 8 May 2017 11:08:10 +0200 Subject: [PATCH] org-clock: Disambiguate character syntax * lisp/org-clock.el (org-clock-put-overlay): Escape character in character syntax. --- lisp/org-clock.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 462eda682..ea1ead47d 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1967,7 +1967,8 @@ will be easy to remove." (make-string (max 0 (- (- 60 (current-column)) (- (match-end 4) (match-beginning 4)) - (length (org-get-at-bol 'line-prefix)))) ?=C2=B7) + (length (org-get-at-bol 'line-prefix)))) + ?\=C2=B7) '(face shadow)) (org-add-props (format " %9s " (org-duration-from-minutes time)) --=20 2.12.2 --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael.ziems@xiron.de Subject: Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report Date: Mon, 08 May 2017 11:31:51 +0200 Message-ID: <0393cd72fa39904cb61ce17f6831b628@xiron.de> References: <4a5326fd9a032b6691143a82e7d2a0a0@xiron.de> <87efvz7m0h.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_5072e4999d2f4b5173d0340d3567b1d2" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7f1T-0000No-Gx for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7f1Q-0001o8-CQ for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:32:07 -0400 Received: from smtp1-2.goneo.de ([85.220.129.31]:37482 helo=smtp1.goneo.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7f1Q-0001nw-2o for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:32:04 -0400 In-Reply-To: <87efvz7m0h.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --=_5072e4999d2f4b5173d0340d3567b1d2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Nicolas,=20 thanks for the answer.=20 I'm not a big expert on lisp. As i did not find any information how a .patch file works so fast, i just changed it manually in the org-clock.el like this:=20 (defun org-clock-put-overlay (time) "Put an overlays on the current line, displaying TIME. This creates a new overlay and stores it in `org-clock-overlays', so that it will be easy to remove." (let (ov tx) (beginning-of-line) (let ((case-fold-search nil)) (when (looking-at org-complex-heading-regexp) (goto-char (match-beginning 4)))) (setq ov (make-overlay (point) (point-at-eol)) tx (concat (buffer-substring-no-properties (point) (match-end 4)) (org-add-props (make-string (max 0 (- (- 60 (current-column)) (- (match-end 4) (match-beginning 4)) (length (org-get-at-bol 'line-prefix)))) ?=C3=82=C2=B7) '(face shadow)) (org-add-props (format " %9s " (org-minutes-to-clocksum-string time)) '(face org-clock-overlay)) "")) (overlay-put ov 'display tx) (push ov org-clock-overlays)))=20 When i byte-compile the file i get the following error:=20 Compiling file c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el at Mon May 8 11:27:30 2017 org-clock.el:1949:1:Error: Invalid read syntax: "?" Thanks for your patience.=20 Michael=20 Am 2017-05-08 11:09, schrieb Nicolas Goaziou: > Hello, >=20 > michael.ziems@xiron.de writes: >=20 >> when i try to swicht an active timestamp via org-shitright or when i >> fire M-x org-submit-bug-report i get the following error:=20 >>=20 >> Debugger entered--Lisp error: (invalid-read-syntax "?") >> eval-buffer(# nil >> "c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el= " >> nil t) ; Reading at buffer position 72111 >>=20 >> load-with-code-conversion("c:/Users/sane/AppData/Roaming/.emacs.d/elpa= /org-20170502/org-clock.el" >> "c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el= " >> nil t) >> require(org-clock) >> mapc(require (org-agenda org-archive org-attach org-clock org-colview >> org-id org-table org-timer)) >> org-require-autoloaded-modules() >> org-submit-bug-report() >> call-interactively(org-submit-bug-report record nil) >> command-execute(org-submit-bug-report record) >> execute-extended-command(nil "org-submit-bug-report") >> call-interactively(execute-extended-command nil nil)=20 >>=20 >> I tried to do the same with Edebug on, but somehow it looks fine >> there. >=20 > Would the attached patch fix your issue? >=20 > Regards, --=_5072e4999d2f4b5173d0340d3567b1d2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hello Nicolas,

thanks for the answer.

I'm not a big expert on lisp. As i did not find any information how a = =2Epatch file works so fast, i just changed it manually in the org-clock.el= like this:

(defun org-clock-put-overlay (time)
  "Put an overlays on the = current line, displaying TIME.
This creates a new overlay and stores i= t in `org-clock-overlays', so that it
will be easy to remove."
&n= bsp; (let (ov tx)
    (beginning-of-line)
 &n= bsp;  (let ((case-fold-search nil))
     = ; (when (looking-at org-complex-heading-regexp)
    (go= to-char (match-beginning 4))))
    (setq ov (make-overl= ay (point) (point-at-eol))
      tx (concat (buffe= r-substring-no-properties (point) (match-end 4))
    &n= bsp;        (org-add-props
   =           (make-string
  =            (max 0 (- (- 60 (curren= t-column))
            &n= bsp;       (- (match-end 4) (match-beginning 4))               &= nbsp;    (length (org-get-at-bol 'line-prefix))))
 = ;             ?·= )
             '(face sha= dow))
             (= org-add-props
            = ; (format " %9s " (org-minutes-to-clocksum-string time))
   =           '(face org-clock-overlay))
             ""))
=     (overlay-put ov 'display tx)
    (pu= sh ov org-clock-overlays)))


When i byte-compile the file i get the following error:

=0C
Compiling file c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-= 20170502/org-clock.el at Mon May  8 11:27:30 2017
org-clock.el:19= 49:1:Error: Invalid read syntax: "?"

 

Thanks for your patience.

Michael

Am 2017-05-08 11:09, schrieb Nicolas Goaziou:

= Hello,

michael.ziems@x= iron.de writes:

when i try to swicht an active timestamp via org-shitr= ight or when i
fire M-x org-submit-bug-report i get the following err= or:

Debugger entered--Lisp error: (invalid-read-syntax "?")   eval-buffer(#<buffer  *load*> nil
"c:/User= s/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el"
nil t= )  ; Reading at buffer position 72111
 
load-with-cod= e-conversion("c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-= clock.el"
"c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/o= rg-clock.el"
nil t)
  require(org-clock)
 =  mapc(require (org-agenda org-archive org-attach org-clock org-colview=
org-id org-table org-timer))
  org-require-autoloade= d-modules()
  org-submit-bug-report()
  cal= l-interactively(org-submit-bug-report record nil)
  command= -execute(org-submit-bug-report record)
  execute-extended-c= ommand(nil "org-submit-bug-report")
  call-interactively(ex= ecute-extended-command nil nil)

I tried to do the same with Ed= ebug on, but somehow it looks fine
there.

Would the attached patch fix your issue?

Regards,
--=_5072e4999d2f4b5173d0340d3567b1d2-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report Date: Mon, 08 May 2017 11:52:44 +0200 Message-ID: <87wp9r65g3.fsf@nicolasgoaziou.fr> References: <4a5326fd9a032b6691143a82e7d2a0a0@xiron.de> <87efvz7m0h.fsf@nicolasgoaziou.fr> <0393cd72fa39904cb61ce17f6831b628@xiron.de> 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]:58358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7fLY-0007Ut-Rf for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:52:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7fLT-0000e2-Vg for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:52:52 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:40550) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7fLT-0000cI-Ps for emacs-orgmode@gnu.org; Mon, 08 May 2017 05:52:47 -0400 In-Reply-To: <0393cd72fa39904cb61ce17f6831b628@xiron.de> (michael ziems's message of "Mon, 08 May 2017 11:31:51 +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" To: michael.ziems@xiron.de Cc: emacs-orgmode@gnu.org michael.ziems@xiron.de writes: > When i byte-compile the file i get the following error:=20 > > Compiling file > c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el at > Mon May 8 11:27:30 2017 > org-clock.el:1949:1:Error: Invalid read syntax: "?" It looks odd. Could you double-check the modification you made? It should be made of the following characters:=20 ? \ =C2=B7 without space between them. Regards, From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael.ziems@xiron.de Subject: Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report Date: Mon, 08 May 2017 12:32:13 +0200 Message-ID: References: <4a5326fd9a032b6691143a82e7d2a0a0@xiron.de> <87efvz7m0h.fsf@nicolasgoaziou.fr> <0393cd72fa39904cb61ce17f6831b628@xiron.de> <87wp9r65g3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_41e1c1fc47db0bcc39d8e4a48664e824" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7fxs-0002SV-Cj for emacs-orgmode@gnu.org; Mon, 08 May 2017 06:32:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7fxp-0002Oh-80 for emacs-orgmode@gnu.org; Mon, 08 May 2017 06:32:28 -0400 Received: from smtp3.goneo.de ([85.220.129.37]:35002) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7fxp-0002NZ-1H for emacs-orgmode@gnu.org; Mon, 08 May 2017 06:32:25 -0400 In-Reply-To: <87wp9r65g3.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org --=_41e1c1fc47db0bcc39d8e4a48664e824 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Nicolas,=20 that worked perfectly.=20 I had a strange character in that file and now it works good.=20 Thanks,=20 Michael Am 2017-05-08 11:52, schrieb Nicolas Goaziou: > michael.ziems@xiron.de writes: >=20 >> When i byte-compile the file i get the following error:=20 >>=20 >> Compiling file >> c:/Users/sane/AppData/Roaming/.emacs.d/elpa/org-20170502/org-clock.el = at >> Mon May 8 11:27:30 2017 >> org-clock.el:1949:1:Error: Invalid read syntax: "?" >=20 > It looks odd. Could you double-check the modification you made? It > should be made of the following characters:=20 >=20 > ? \ =C2=B7 >=20 > without space between them. >=20 > Regards, --=_41e1c1fc47db0bcc39d8e4a48664e824 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Hello Nicolas,

that worked perfectly.

I had a strange character in that file and now it works good.

Thanks,

Michael

 


Am 2017-05-08 11:52, schrieb Nicolas Goaziou:

= michael.ziems@xiron.de writes= :

When i byte-compile the file i get the following error= :

Compiling file
c:/Users/sane/AppData/Roaming/.emacs.d/= elpa/org-20170502/org-clock.el at
Mon May  8 11:27:30 2017
= org-clock.el:1949:1:Error: Invalid read syntax: "?"

It looks odd. Could you double-check the modification you made? It should be made of the following characters:

  ?= \ ·

without space between them.

Regards,
--=_41e1c1fc47db0bcc39d8e4a48664e824--