Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error "Capture template ‘#’: nil is not a valid folding spec" #17

Closed
dakra opened this issue Feb 2, 2021 · 5 comments
Closed

error "Capture template ‘#’: nil is not a valid folding spec" #17

dakra opened this issue Feb 2, 2021 · 5 comments

Comments

@dakra
Copy link
Contributor

dakra commented Feb 2, 2021

I use mu4e where in the message view I can click "Export to Org" for vcal attachments to add them to my org file.

When I do it in the fold branch I get the following backtrace:

Debugger entered--Lisp error: (error "Capture template ‘#’: nil is not a valid folding s...")
  error("Capture template `%s': %s" "#" "nil is not a valid folding spec")
  org-capture()
  org-capture-string(#("* Prerequisites POC (https://foobar.zoom.us/j/34..." 0 97 (ws-butler-chg chg wrap-prefix #("* " 0 2 (face org-indent)) line-prefix "") 97 109 (ws-butler-chg chg wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 109 110 (isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer ws-butler-chg chg wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 110 125 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 125 173 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 173 209 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 209 295 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 295 325 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 325 404 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 404 423 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 423 431 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 431 458 (ws-butler-chg chg isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 458 463 (isearch-open-invisible-temporary org-fold--isearch-show-temporary isearch-open-invisible org-fold--isearch-show org-fold--spec-org-fold-drawer-532483113754185545 org-fold-drawer ws-butler-chg chg wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 463 464 (ws-butler-chg chg wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 464 465 (ws-butler-chg chg wrap-prefix #("  " 0 2 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) 465 492 (ws-butler-chg chg wrap-prefix #("    " 0 4 (face org-indent)) line-prefix #("  " 0 2 (face org-indent))) ...) "#")
  gnus-icalendar:org-event-save(#<gnus-icalendar-event-request gnus-icalendar-event-request-155b4c785928> nil)
  #f(compiled-function (event reply-status) #<bytecode 0x189fcf20c00c41a8>)(#<gnus-icalendar-event-request gnus-icalendar-event-request-155b4c785928> nil)
  apply(#f(compiled-function (event reply-status) #<bytecode 0x189fcf20c00c41a8>) #<gnus-icalendar-event-request gnus-icalendar-event-request-155b4c785928> nil)
  gnus-icalendar-event:sync-to-org(#<gnus-icalendar-event-request gnus-icalendar-event-request-155b4c785928> nil)
  gnus-icalendar-sync-event-to-org(#<gnus-icalendar-event-request gnus-icalendar-event-request-155b4c785928>)
  gnus-article-press-button()
  funcall-interactively(gnus-article-press-button)
  #<subr command-execute>(gnus-article-press-button nil nil nil)
  ad-Advice-command-execute(#<subr command-execute> gnus-article-press-button)
  apply(ad-Advice-command-execute #<subr command-execute> gnus-article-press-button)
  command-execute(gnus-article-press-button)

I can try and create a reproducer example if the above is not enough to track down the issue.

Thanks.

@dakra dakra added the bug label Feb 2, 2021
yantar92 added a commit that referenced this issue Feb 3, 2021
…erties

org-fold.el (org-fold--buffer-substring-filter): Trying to deal with
 #17.  When filtered string contains propertised strings as values of
 string properties, it cannot be read with `read'. Fixing this.
@yantar92
Copy link
Owner

yantar92 commented Feb 3, 2021

I have a guess what is happenning. Tried to fix. Can you test now?

@dakra
Copy link
Contributor Author

dakra commented Feb 3, 2021

No, unfortunately the problem is still there.
I also realised it's not specific to gnus-calendar, it's actually any org-capture that's not working for me.
Here is my org-capture-templates in case that helps:

(setq org-capture-templates
        `(("t" "todo" entry (file ,(concat org-directory "refile.org"))
           "* TODO %?\n" :clock-in t :clock-resume t)
          ("T" "todo with link" entry (file ,(concat org-directory "refile.org"))
           "* TODO %?\n%a\n" :clock-in t :clock-resume t)
          ("e" "email" entry (file ,(concat org-directory "refile.org"))
           "* TODO %? Email: %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n"
           :clock-in t :clock-resume t :immediate-finish nil)
          ("j" "Journal entry" entry (file+olp+datetree ,(concat org-directory "journal.org"))
           "* %?\n" :clock-in t :clock-resume t)
          ("J" "Journal with link" entry (file+olp+datetree ,(concat org-directory "journal.org"))
           "* %?\n%a\n" :clock-in t :clock-resume t)
          ("r" "respond" entry (file ,(concat org-directory "refile.org"))
           "* TODO Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t)
          ("n" "note" entry (file ,(concat org-directory "refile.org"))
           "* %? :NOTE:\n%a\n" :clock-in t :clock-resume t)
          ("w" "org-protocol" entry (file ,(concat org-directory "refile.org"))
           "* TODO Review %c\n%U\n" :immediate-finish t)
          ("p" "Protocol" entry (file ,(concat org-directory "refile.org"))
           "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?")
          ("L" "Protocol Link" entry (file ,(concat org-directory "refile.org"))
           "* %?\n[[%:link][%:description]]\n")
          ("w" "Web site" entry (file "")
           "* %a :website:\n\n%U %?\n\n%:initial")))

@yantar92
Copy link
Owner

yantar92 commented Feb 3, 2021

I do a lot of capture and never encountered issues. Your capture templates also look reasonable. So, could you try to find a recepy to reproduce? Ideally, with clean config (see https://github.com/yantar92/org#testing-the-branch).

@dakra
Copy link
Contributor Author

dakra commented Feb 3, 2021

Hmm, you're right that it works with the fold branch without my config.

So it has to do with my config or another package I'm using.
Hmm.. I tried the last hour to bisect my config but couldn't find out what's causing it :(

Maybe I find some more time on the weekend to narrow this down.

@yantar92
Copy link
Owner

yantar92 commented Feb 3, 2021

You can check the discussion in #11 for tips how to bisect personal config quickly.

@yantar92 yantar92 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants