emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report
@ 2017-05-08  6:53 michael.ziems
  2017-05-08  9:09 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: michael.ziems @ 2017-05-08  6:53 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]

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(#<buffer  *load*> 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

[-- Attachment #2: Type: text/html, Size: 1650 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report
  2017-05-08  6:53 Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report michael.ziems
@ 2017-05-08  9:09 ` Nicolas Goaziou
  2017-05-08  9:31   ` michael.ziems
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2017-05-08  9:09 UTC (permalink / raw)
  To: michael.ziems; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]

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(#<buffer  *load*> 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

[-- Attachment #2: 0001-org-clock-Disambiguate-character-syntax.patch --]
[-- Type: text/x-diff, Size: 920 bytes --]

From 144c4ba61ba325f682088ba8501dccb3e20dbc8a Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
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)))) ?·)
+				    (length (org-get-at-bol 'line-prefix))))
+			  ?\·)
 			 '(face shadow))
 		     (org-add-props
 			 (format " %9s " (org-duration-from-minutes time))
-- 
2.12.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report
  2017-05-08  9:09 ` Nicolas Goaziou
@ 2017-05-08  9:31   ` michael.ziems
  2017-05-08  9:52     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: michael.ziems @ 2017-05-08  9:31 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2704 bytes --]

Hello Nicolas, 

thanks for the answer. 

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: 

(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))))
              ?·)
             '(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))) 

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: "?"

Thanks for your patience. 

Michael 

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

> 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(#<buffer  *load*> 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,

[-- Attachment #2: Type: text/html, Size: 4377 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report
  2017-05-08  9:31   ` michael.ziems
@ 2017-05-08  9:52     ` Nicolas Goaziou
  2017-05-08 10:32       ` michael.ziems
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2017-05-08  9:52 UTC (permalink / raw)
  To: michael.ziems; +Cc: emacs-orgmode

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,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report
  2017-05-08  9:52     ` Nicolas Goaziou
@ 2017-05-08 10:32       ` michael.ziems
  0 siblings, 0 replies; 5+ messages in thread
From: michael.ziems @ 2017-05-08 10:32 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

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,

[-- Attachment #2: Type: text/html, Size: 1345 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-08 10:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08  6:53 Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report michael.ziems
2017-05-08  9:09 ` Nicolas Goaziou
2017-05-08  9:31   ` michael.ziems
2017-05-08  9:52     ` Nicolas Goaziou
2017-05-08 10:32       ` michael.ziems

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).