emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Invalid read syntax: "?" when switching org-dates or when tying


From: michael . ziems
Subject: Re: [O] Invalid read syntax: "?" when switching org-dates or when tying to org-submit-bug-report
Date: Mon, 08 May 2017 11:31:51 +0200
User-agent: goneo Webmail

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,

address@hidden 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,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]