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--