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

org-capture throws json-readtable-error #9941

Closed
vv111y opened this issue Dec 1, 2017 · 20 comments
Closed

org-capture throws json-readtable-error #9941

vv111y opened this issue Dec 1, 2017 · 20 comments

Comments

@vv111y
Copy link

vv111y commented Dec 1, 2017

Description :octocat:

org-capture throws json-readtable-error. Cannot capture.
Fresh install on a Ubuntu 16.04 virtualbox machine.
Using same dotfile from osx laptop (works there)

Reproduction guide 🪲

  • Start Emacs
  • SPC a o c + select a capture template
  • error. capture mini-buffer does not come up

Observed behaviour: 👀 💔
"org-capture: Capture abort: (json-readtable-error)"

Expected behaviour: ❤️ 😄
org-capture as usual

System Info 💻

  • OS: gnu/linux
  • Emacs: 25.3.2
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. d475a1b)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
((auto-completion :variables auto-completion-enable-help-tooltip 'manual auto-completion-enable-snippets-in-popup t auto-completion-enable-sort-by-usage t)
 ansible better-defaults bibtex
 (c-c++ :variables c-c++-enable-clang-support t)
 chrome
 (clojure :variables clojure-enable-fancify-symbols t)
 command-log common-lisp coq cscope csv dash deft docker emacs-lisp erc
 (ess :variables ess-use-auto-complete t ess-use-eldoc t ess-ask-about-transfile nil)
 fasd finance git github go gpu haskell helm html ibuffer imenu-list ipython-notebook java javascript
 (latex :variables latex-enable-folding t latex-enable-auto-fill t latex-build-command "LatexMk")
 lua
 (markdown :variables markdown-live-preview-engine 'vmd)
 nim
 (osx :variables osx-use-option-as-meta t)
 (org :variables org-enable-github-support t org-enable-reveal-js-support t org-enable-bootstrap-support t org-startup-indented t org-startup-folded t)
 pandoc pdf-tools php python racket ranger rust
 (scala :variables scala-auto-insert-asterisk-in-comments t scala-enable-eldoc t scala-indent:use-javadoc-style t)
 scheme search-engine semantic
 (spell-checking :variables spell-checking-enable-by-default nil)
 sql syntax-checking
 (shell :variables shell-default-height 30 shell-default-position 'right)
 themes-megapack tmux
 (treemacs :variables treemacs-use-follow-mode t treemacs-use-filewatch-mode t)
 vagrant version-control zotero)
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES

Backtrace 🐾

Debugger entered--Lisp error: (error "Capture abort: (json-readtable-error)")
  signal(error ("Capture abort: (json-readtable-error)"))
  error("Capture abort: %s" (json-readtable-error))
  org-capture(nil)
  funcall-interactively(org-capture nil)
  call-interactively(org-capture nil nil)
  command-execute(org-capture)

@vv111y
Copy link
Author

vv111y commented Dec 1, 2017

I'll just add, fwiw:
I attempted to debug this, but I am having the worst possible time with edebug

  • 'org-capture.el' buffer REFUSES to stay in holy-mode so that I can use the proper key-bindings. I have to input <CTRL-Z> + <SPC> every single time I want to step. it won't stay there.
  • on top of that, the info buffer I have open for referencing edebug keeps switching back to some previous window configuration with other buffers. It refuses to stay there.
  • oh, but then holy-mode stays on for EVERY single other buffer - just not the one where it actually needs to be enabled.
  • and then I got kicked out of debugging when I tried to fix my window arrangement.

This is peak-frustration, a bunch of pointless little problems that makes it unusable. Any constructive input appreciated.

@vv111y
Copy link
Author

vv111y commented Dec 2, 2017

The problem was weird: Jupyter (and pip) needed to be installed. This is a fresh test virtualbox vm and not much has been installed. Below is a different backtrace that gave a clue. I was only able to get it by having a test capture purposely target a non-existent file.

So for the future, how do we get emacs to give us better / different backtraces without random testing?

Debugger entered--Lisp error: (file-error "Setting current directory" "No such file or directory" "/home/will/desktop/")
  call-process("/bin/bash" nil t nil "-c" "jupyter kernelspec list --json")
  apply(call-process "/bin/bash" nil t nil ("-c" "jupyter kernelspec list --json"))
  process-file("/bin/bash" nil t nil "-c" "jupyter kernelspec list --json")
  shell-command-to-string("jupyter kernelspec list --json")
  ob-ipython--get-kernels()
  ob-ipython-auto-configure-kernels()
  run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(t t)
  find-file-noselect-1(#<buffer test.org<desktop>> "~/desktop/test.org" nil nil "~/desktop/test.org" nil)
  find-file-noselect("/home/will/desktop/test.org")
  org-capture-target-buffer("~/desktop/test.org")
  org-capture-set-target-location()
  org-capture(nil)
  funcall-interactively(org-capture nil)
  call-interactively(org-capture nil nil)
  command-execute(org-capture)

@vv111y vv111y closed this as completed Dec 2, 2017
@rgrinberg
Copy link
Contributor

I'm getting this issue currently. How come this issue was closed?

@rgrinberg
Copy link
Contributor

After fiddling around with edebug I get a similar stack trace:

Debugger entered--Lisp error: (json-readtable-error . 122)
  apply(debug error (json-readtable-error . 122))
  edebug(error (json-readtable-error . 122))
  signal(json-readtable-error 122)
  edebug-signal(json-readtable-error 122)
  signal(json-readtable-error 122)
  json-read()
  json-read-from-string("zsh:1: command not found: jupyter\n")
  ob-ipython--get-kernels()
  ob-ipython-auto-configure-kernels()
  run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  org-capture-fill-template()
  backtrace-eval((org-capture-fill-template) 0 edebug-after)
  edebug-eval((org-capture-fill-template))
  edebug-eval-expression((org-capture-fill-template))
  funcall-interactively(edebug-eval-expression (org-capture-fill-template))
  call-interactively(edebug-eval-expression nil nil)
  command-execute(edebug-eval-expression)
  recursive-edit()
  edebug--recursive-edit(error)
  edebug--display-1((error "Capture abort: (json-readtable-error . 122)") 153 error)
  edebug--display((error "Capture abort: (json-readtable-error . 122)") 153 error)
  edebug(error (error "Capture abort: (json-readtable-error . 122)"))
  signal(error ("Capture abort: (json-readtable-error . 122)"))
  edebug-signal(error ("Capture abort: (json-readtable-error . 122)"))
  signal(error ("Capture abort: (json-readtable-error . 122)"))
  error("Capture abort: %s" (json-readtable-error . 122))
  (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))
  (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))
  (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error))))))
  (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize))))))))
  (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize)))))))))
  (let* ((orig-buf (edebug-after (edebug-before 27) 28 (current-buffer))) (annotation (edebug-after (edebug-before 29) 42 (if (edebug-after (edebug-before 30) 34 (and (edebug-after (edebug-before 31) 32 (boundp 'org-capture-link-is-already-stored)) (edebug-after 0 33 org-capture-link-is-already-stored))) (edebug-after (edebug-before 35) 37 (plist-get (edebug-after 0 36 org-store-link-plist) :annotation)) (edebug-after (edebug-before 38) 41 (condition-case nil (progn (edebug-after (edebug-before 39) 40 (org-store-link nil))) (error nil)))))) (entry (edebug-after (edebug-before 43) 48 (or (edebug-after 0 44 org-capture-entry) (edebug-after (edebug-before 45) 47 (org-capture-select-template (edebug-after 0 46 keys)))))) initial) (edebug-after (edebug-before 49) 63 (setq initial (edebug-after (edebug-before 50) 62 (or (edebug-after 0 51 org-capture-initial) (edebug-after (edebug-before 52) 61 (and (edebug-after (edebug-before 53) 54 (org-region-active-p)) (edebug-after (edebug-before 55) 60 (buffer-substring (edebug-after (edebug-before 56) 57 (point)) (edebug-after (edebug-before 58) 59 (mark)))))))))) (edebug-after (edebug-before 64) 74 (if (edebug-after (edebug-before 65) 67 (stringp (edebug-after 0 66 initial))) (progn (edebug-after (edebug-before 68) 73 (remove-text-properties 0 (edebug-after (edebug-before 69) 71 (length (edebug-after 0 70 initial))) '(read-only t) (edebug-after 0 72 initial)))))) (edebug-after (edebug-before 75) 85 (if (edebug-after (edebug-before 76) 78 (stringp (edebug-after 0 77 annotation))) (progn (edebug-after (edebug-before 79) 84 (remove-text-properties 0 (edebug-after (edebug-before 80) 82 (length (edebug-after 0 81 annotation))) '(read-only t) (edebug-after 0 83 annotation)))))) (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize))))))))))
  (edebug-after (edebug-before 26) 236 (let* ((orig-buf (edebug-after (edebug-before 27) 28 (current-buffer))) (annotation (edebug-after (edebug-before 29) 42 (if (edebug-after (edebug-before 30) 34 (and (edebug-after (edebug-before 31) 32 (boundp 'org-capture-link-is-already-stored)) (edebug-after 0 33 org-capture-link-is-already-stored))) (edebug-after (edebug-before 35) 37 (plist-get (edebug-after 0 36 org-store-link-plist) :annotation)) (edebug-after (edebug-before 38) 41 (condition-case nil (progn (edebug-after (edebug-before 39) 40 (org-store-link nil))) (error nil)))))) (entry (edebug-after (edebug-before 43) 48 (or (edebug-after 0 44 org-capture-entry) (edebug-after (edebug-before 45) 47 (org-capture-select-template (edebug-after 0 46 keys)))))) initial) (edebug-after (edebug-before 49) 63 (setq initial (edebug-after (edebug-before 50) 62 (or (edebug-after 0 51 org-capture-initial) (edebug-after (edebug-before 52) 61 (and (edebug-after (edebug-before 53) 54 (org-region-active-p)) (edebug-after (edebug-before 55) 60 (buffer-substring (edebug-after (edebug-before 56) 57 (point)) (edebug-after (edebug-before 58) 59 (mark)))))))))) (edebug-after (edebug-before 64) 74 (if (edebug-after (edebug-before 65) 67 (stringp (edebug-after 0 66 initial))) (progn (edebug-after (edebug-before 68) 73 (remove-text-properties 0 (edebug-after (edebug-before 69) 71 (length (edebug-after 0 70 initial))) '(read-only t) (edebug-after 0 72 initial)))))) (edebug-after (edebug-before 75) 85 (if (edebug-after (edebug-before 76) 78 (stringp (edebug-after 0 77 annotation))) (progn (edebug-after (edebug-before 79) 84 (remove-text-properties 0 (edebug-after (edebug-before 80) 82 (length (edebug-after 0 81 annotation))) '(read-only t) (edebug-after 0 83 annotation)))))) (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize)))))))))))
  (cond ((edebug-after (edebug-before 16) 18 (equal (edebug-after 0 17 goto) '(4))) (edebug-after (edebug-before 19) 20 (org-capture-goto-target))) ((edebug-after (edebug-before 21) 23 (equal (edebug-after 0 22 goto) '(16))) (edebug-after (edebug-before 24) 25 (org-capture-goto-last-stored))) (t (edebug-after (edebug-before 26) 236 (let* ((orig-buf (edebug-after (edebug-before 27) 28 (current-buffer))) (annotation (edebug-after (edebug-before 29) 42 (if (edebug-after (edebug-before 30) 34 (and (edebug-after (edebug-before 31) 32 (boundp 'org-capture-link-is-already-stored)) (edebug-after 0 33 org-capture-link-is-already-stored))) (edebug-after (edebug-before 35) 37 (plist-get (edebug-after 0 36 org-store-link-plist) :annotation)) (edebug-after (edebug-before 38) 41 (condition-case nil (progn (edebug-after (edebug-before 39) 40 (org-store-link nil))) (error nil)))))) (entry (edebug-after (edebug-before 43) 48 (or (edebug-after 0 44 org-capture-entry) (edebug-after (edebug-before 45) 47 (org-capture-select-template (edebug-after 0 46 keys)))))) initial) (edebug-after (edebug-before 49) 63 (setq initial (edebug-after (edebug-before 50) 62 (or (edebug-after 0 51 org-capture-initial) (edebug-after (edebug-before 52) 61 (and (edebug-after (edebug-before 53) 54 (org-region-active-p)) (edebug-after (edebug-before 55) 60 (buffer-substring (edebug-after (edebug-before 56) 57 (point)) (edebug-after (edebug-before 58) 59 (mark)))))))))) (edebug-after (edebug-before 64) 74 (if (edebug-after (edebug-before 65) 67 (stringp (edebug-after 0 66 initial))) (progn (edebug-after (edebug-before 68) 73 (remove-text-properties 0 (edebug-after (edebug-before 69) 71 (length (edebug-after 0 70 initial))) '(read-only t) (edebug-after 0 72 initial)))))) (edebug-after (edebug-before 75) 85 (if (edebug-after (edebug-before 76) 78 (stringp (edebug-after 0 77 annotation))) (progn (edebug-after (edebug-before 79) 84 (remove-text-properties 0 (edebug-after (edebug-before 80) 82 (length (edebug-after 0 81 annotation))) '(read-only t) (edebug-after 0 83 annotation)))))) (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize)))))))))))))
  (edebug-after (edebug-before 15) 237 (cond ((edebug-after (edebug-before 16) 18 (equal (edebug-after 0 17 goto) '(4))) (edebug-after (edebug-before 19) 20 (org-capture-goto-target))) ((edebug-after (edebug-before 21) 23 (equal (edebug-after 0 22 goto) '(16))) (edebug-after (edebug-before 24) 25 (org-capture-goto-last-stored))) (t (edebug-after (edebug-before 26) 236 (let* ((orig-buf (edebug-after (edebug-before 27) 28 (current-buffer))) (annotation (edebug-after (edebug-before 29) 42 (if (edebug-after (edebug-before 30) 34 (and (edebug-after (edebug-before 31) 32 (boundp 'org-capture-link-is-already-stored)) (edebug-after 0 33 org-capture-link-is-already-stored))) (edebug-after (edebug-before 35) 37 (plist-get (edebug-after 0 36 org-store-link-plist) :annotation)) (edebug-after (edebug-before 38) 41 (condition-case nil (progn (edebug-after (edebug-before 39) 40 (org-store-link nil))) (error nil)))))) (entry (edebug-after (edebug-before 43) 48 (or (edebug-after 0 44 org-capture-entry) (edebug-after (edebug-before 45) 47 (org-capture-select-template (edebug-after 0 46 keys)))))) initial) (edebug-after (edebug-before 49) 63 (setq initial (edebug-after (edebug-before 50) 62 (or (edebug-after 0 51 org-capture-initial) (edebug-after (edebug-before 52) 61 (and (edebug-after (edebug-before 53) 54 (org-region-active-p)) (edebug-after (edebug-before 55) 60 (buffer-substring (edebug-after (edebug-before 56) 57 (point)) (edebug-after (edebug-before 58) 59 (mark)))))))))) (edebug-after (edebug-before 64) 74 (if (edebug-after (edebug-before 65) 67 (stringp (edebug-after 0 66 initial))) (progn (edebug-after (edebug-before 68) 73 (remove-text-properties 0 (edebug-after (edebug-before 69) 71 (length (edebug-after 0 70 initial))) '(read-only t) (edebug-after 0 72 initial)))))) (edebug-after (edebug-before 75) 85 (if (edebug-after (edebug-before 76) 78 (stringp (edebug-after 0 77 annotation))) (progn (edebug-after (edebug-before 79) 84 (remove-text-properties 0 (edebug-after (edebug-before 80) 82 (length (edebug-after 0 81 annotation))) '(read-only t) (edebug-after 0 83 annotation)))))) (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize))))))))))))))
  (closure ((keys) (goto) org-end-time-was-given org-remember-default-headline org-remember-templates t) nil (edebug-after (edebug-before 0) 14 (if (edebug-after (edebug-before 1) 6 (and (edebug-after 0 2 org-capture-use-agenda-date) (edebug-after (edebug-before 3) 5 (eq (edebug-after 0 4 major-mode) 'org-agenda-mode)))) (progn (edebug-after (edebug-before 7) 13 (setq org-overriding-default-time (edebug-after (edebug-before 8) 12 (org-get-cursor-date (edebug-after (edebug-before 9) 11 (equal (edebug-after 0 10 goto) 1))))))))) (edebug-after (edebug-before 15) 237 (cond ((edebug-after (edebug-before 16) 18 (equal (edebug-after 0 17 goto) '(4))) (edebug-after (edebug-before 19) 20 (org-capture-goto-target))) ((edebug-after (edebug-before 21) 23 (equal (edebug-after 0 22 goto) '(16))) (edebug-after (edebug-before 24) 25 (org-capture-goto-last-stored))) (t (edebug-after (edebug-before 26) 236 (let* ((orig-buf (edebug-after (edebug-before 27) 28 (current-buffer))) (annotation (edebug-after (edebug-before 29) 42 (if (edebug-after (edebug-before 30) 34 (and (edebug-after (edebug-before 31) 32 (boundp 'org-capture-link-is-already-stored)) (edebug-after 0 33 org-capture-link-is-already-stored))) (edebug-after (edebug-before 35) 37 (plist-get (edebug-after 0 36 org-store-link-plist) :annotation)) (edebug-after (edebug-before 38) 41 (condition-case nil (progn (edebug-after (edebug-before 39) 40 (org-store-link nil))) (error nil)))))) (entry (edebug-after (edebug-before 43) 48 (or (edebug-after 0 44 org-capture-entry) (edebug-after (edebug-before 45) 47 (org-capture-select-template (edebug-after 0 46 keys)))))) initial) (edebug-after (edebug-before 49) 63 (setq initial (edebug-after (edebug-before 50) 62 (or (edebug-after 0 51 org-capture-initial) (edebug-after (edebug-before 52) 61 (and (edebug-after (edebug-before 53) 54 (org-region-active-p)) (edebug-after (edebug-before 55) 60 (buffer-substring (edebug-after (edebug-before 56) 57 (point)) (edebug-after (edebug-before 58) 59 (mark)))))))))) (edebug-after (edebug-before 64) 74 (if (edebug-after (edebug-before 65) 67 (stringp (edebug-after 0 66 initial))) (progn (edebug-after (edebug-before 68) 73 (remove-text-properties 0 (edebug-after (edebug-before 69) 71 (length (edebug-after 0 70 initial))) '(read-only t) (edebug-after 0 72 initial)))))) (edebug-after (edebug-before 75) 85 (if (edebug-after (edebug-before 76) 78 (stringp (edebug-after 0 77 annotation))) (progn (edebug-after (edebug-before 79) 84 (remove-text-properties 0 (edebug-after (edebug-before 80) 82 (length (edebug-after 0 81 annotation))) '(read-only t) (edebug-after 0 83 annotation)))))) (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize)))))))))))))))()
  edebug-enter(org-capture (nil nil) (closure ((keys) (goto) org-end-time-was-given org-remember-default-headline org-remember-templates t) nil (edebug-after (edebug-before 0) 14 (if (edebug-after (edebug-before 1) 6 (and (edebug-after 0 2 org-capture-use-agenda-date) (edebug-after (edebug-before 3) 5 (eq (edebug-after 0 4 major-mode) 'org-agenda-mode)))) (progn (edebug-after (edebug-before 7) 13 (setq org-overriding-default-time (edebug-after (edebug-before 8) 12 (org-get-cursor-date (edebug-after (edebug-before 9) 11 (equal (edebug-after 0 10 goto) 1))))))))) (edebug-after (edebug-before 15) 237 (cond ((edebug-after (edebug-before 16) 18 (equal (edebug-after 0 17 goto) '(4))) (edebug-after (edebug-before 19) 20 (org-capture-goto-target))) ((edebug-after (edebug-before 21) 23 (equal (edebug-after 0 22 goto) '(16))) (edebug-after (edebug-before 24) 25 (org-capture-goto-last-stored))) (t (edebug-after (edebug-before 26) 236 (let* ((orig-buf (edebug-after (edebug-before 27) 28 (current-buffer))) (annotation (edebug-after (edebug-before 29) 42 (if (edebug-after (edebug-before 30) 34 (and (edebug-after (edebug-before 31) 32 (boundp 'org-capture-link-is-already-stored)) (edebug-after 0 33 org-capture-link-is-already-stored))) (edebug-after (edebug-before 35) 37 (plist-get (edebug-after 0 36 org-store-link-plist) :annotation)) (edebug-after (edebug-before 38) 41 (condition-case nil (progn (edebug-after (edebug-before 39) 40 (org-store-link nil))) (error nil)))))) (entry (edebug-after (edebug-before 43) 48 (or (edebug-after 0 44 org-capture-entry) (edebug-after (edebug-before 45) 47 (org-capture-select-template (edebug-after 0 46 keys)))))) initial) (edebug-after (edebug-before 49) 63 (setq initial (edebug-after (edebug-before 50) 62 (or (edebug-after 0 51 org-capture-initial) (edebug-after (edebug-before 52) 61 (and (edebug-after (edebug-before 53) 54 (org-region-active-p)) (edebug-after (edebug-before 55) 60 (buffer-substring (edebug-after (edebug-before 56) 57 (point)) (edebug-after (edebug-before 58) 59 (mark)))))))))) (edebug-after (edebug-before 64) 74 (if (edebug-after (edebug-before 65) 67 (stringp (edebug-after 0 66 initial))) (progn (edebug-after (edebug-before 68) 73 (remove-text-properties 0 (edebug-after (edebug-before 69) 71 (length (edebug-after 0 70 initial))) '(read-only t) (edebug-after 0 72 initial)))))) (edebug-after (edebug-before 75) 85 (if (edebug-after (edebug-before 76) 78 (stringp (edebug-after 0 77 annotation))) (progn (edebug-after (edebug-before 79) 84 (remove-text-properties 0 (edebug-after (edebug-before 80) 82 (length (edebug-after 0 81 annotation))) '(read-only t) (edebug-after 0 83 annotation)))))) (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize))))))))))))))))
  edebug-enter(org-capture (nil nil) (closure ((keys) (goto) org-end-time-was-given org-remember-default-headline org-remember-templates t) nil (edebug-after (edebug-before 0) 14 (if (edebug-after (edebug-before 1) 6 (and (edebug-after 0 2 org-capture-use-agenda-date) (edebug-after (edebug-before 3) 5 (eq (edebug-after 0 4 major-mode) 'org-agenda-mode)))) (progn (edebug-after (edebug-before 7) 13 (setq org-overriding-default-time (edebug-after (edebug-before 8) 12 (org-get-cursor-date (edebug-after (edebug-before 9) 11 (equal (edebug-after 0 10 goto) 1))))))))) (edebug-after (edebug-before 15) 237 (cond ((edebug-after (edebug-before 16) 18 (equal (edebug-after 0 17 goto) '(4))) (edebug-after (edebug-before 19) 20 (org-capture-goto-target))) ((edebug-after (edebug-before 21) 23 (equal (edebug-after 0 22 goto) '(16))) (edebug-after (edebug-before 24) 25 (org-capture-goto-last-stored))) (t (edebug-after (edebug-before 26) 236 (let* ((orig-buf (edebug-after (edebug-before 27) 28 (current-buffer))) (annotation (edebug-after (edebug-before 29) 42 (if (edebug-after (edebug-before 30) 34 (and (edebug-after (edebug-before 31) 32 (boundp 'org-capture-link-is-already-stored)) (edebug-after 0 33 org-capture-link-is-already-stored))) (edebug-after (edebug-before 35) 37 (plist-get (edebug-after 0 36 org-store-link-plist) :annotation)) (edebug-after (edebug-before 38) 41 (condition-case nil (progn (edebug-after (edebug-before 39) 40 (org-store-link nil))) (error nil)))))) (entry (edebug-after (edebug-before 43) 48 (or (edebug-after 0 44 org-capture-entry) (edebug-after (edebug-before 45) 47 (org-capture-select-template (edebug-after 0 46 keys)))))) initial) (edebug-after (edebug-before 49) 63 (setq initial (edebug-after (edebug-before 50) 62 (or (edebug-after 0 51 org-capture-initial) (edebug-after (edebug-before 52) 61 (and (edebug-after (edebug-before 53) 54 (org-region-active-p)) (edebug-after (edebug-before 55) 60 (buffer-substring (edebug-after (edebug-before 56) 57 (point)) (edebug-after (edebug-before 58) 59 (mark)))))))))) (edebug-after (edebug-before 64) 74 (if (edebug-after (edebug-before 65) 67 (stringp (edebug-after 0 66 initial))) (progn (edebug-after (edebug-before 68) 73 (remove-text-properties 0 (edebug-after (edebug-before 69) 71 (length (edebug-after 0 70 initial))) '(read-only t) (edebug-after 0 72 initial)))))) (edebug-after (edebug-before 75) 85 (if (edebug-after (edebug-before 76) 78 (stringp (edebug-after 0 77 annotation))) (progn (edebug-after (edebug-before 79) 84 (remove-text-properties 0 (edebug-after (edebug-before 80) 82 (length (edebug-after 0 81 annotation))) '(read-only t) (edebug-after 0 83 annotation)))))) (edebug-after (edebug-before 86) 235 (cond ((edebug-after (edebug-before 87) 89 (equal (edebug-after 0 88 entry) "C")) (edebug-after (edebug-before 90) 91 (customize-variable 'org-capture-templates))) ((edebug-after (edebug-before 92) 94 (equal (edebug-after 0 93 entry) "q")) (edebug-after (edebug-before 95) 96 (user-error "Abort"))) (t (edebug-after (edebug-before 97) 99 (org-capture-set-plist (edebug-after 0 98 entry))) (edebug-after (edebug-before 100) 101 (org-capture-get-template)) (edebug-after (edebug-before 102) 138 (org-capture-put :original-buffer (edebug-after 0 103 orig-buf) :original-file (edebug-after (edebug-before 104) 118 (or (edebug-after (edebug-before 105) 107 (buffer-file-name (edebug-after 0 106 orig-buf))) (edebug-after (edebug-before 108) 117 (and (edebug-after (edebug-before 109) 110 (featurep 'dired)) (edebug-after (edebug-before 111) 116 (car (edebug-after (edebug-before 112) 115 (rassq (edebug-after 0 113 orig-buf) (edebug-after 0 114 dired-buffers))))))))) :original-file-nondirectory (edebug-after (edebug-before 119) 128 (and (edebug-after (edebug-before 120) 122 (buffer-file-name (edebug-after 0 121 orig-buf))) (edebug-after (edebug-before 123) 127 (file-name-nondirectory (edebug-after (edebug-before 124) 126 (buffer-file-name (edebug-after 0 125 orig-buf))))))) :annotation (edebug-after 0 129 annotation) :initial (edebug-after 0 130 initial) :return-to-wconf (edebug-after (edebug-before 131) 132 (current-window-configuration)) :default-time (edebug-after (edebug-before 133) 137 (or (edebug-after 0 134 org-overriding-default-time) (edebug-after (edebug-before 135) 136 (org-current-time)))))) (edebug-after (edebug-before 139) 140 (org-capture-set-target-location)) (edebug-after (edebug-before 141) 155 (condition-case error (edebug-after (edebug-before 142) 145 (org-capture-put :template (edebug-after (edebug-before 143) 144 (org-capture-fill-template)))) ((error quit) (edebug-after (edebug-before 146) 151 (if (edebug-after (edebug-before 147) 148 (get-buffer "*Capture*")) (edebug-after (edebug-before 149) 150 (kill-buffer "*Capture*")))) (edebug-after (edebug-before 152) 154 (error "Capture abort: %s" (edebug-after 0 153 error)))))) (edebug-after (edebug-before 156) 159 (setq org-capture-clock-keep (edebug-after (edebug-before 157) 158 (org-capture-get :clock-keep)))) (edebug-after (edebug-before 160) 234 (if (edebug-after (edebug-before 161) 163 (equal (edebug-after 0 162 goto) 0)) (edebug-after (edebug-before 164) 165 (org-capture-insert-template-here)) (edebug-after (edebug-before 166) 202 (condition-case error (edebug-after (edebug-before 167) 174 (org-capture-place-template (edebug-after (edebug-before 168) 173 (eq (edebug-after (edebug-before 169) 172 (car (edebug-after (edebug-before 170) 171 (org-capture-get :target)))) 'function)))) ((error quit) (edebug-after (edebug-before 175) 190 (if (edebug-after (edebug-before 176) 185 (and (edebug-after (edebug-before 177) 180 (buffer-base-buffer (edebug-after (edebug-before 178) 179 (current-buffer)))) (edebug-after (edebug-before 181) 184 (string-prefix-p "CAPTURE-" (edebug-after (edebug-before 182) 183 (buffer-name)))))) (edebug-after (edebug-before 186) 189 (kill-buffer (edebug-after (edebug-before 187) 188 (current-buffer)))))) (edebug-after (edebug-before 191) 194 (set-window-configuration (edebug-after (edebug-before 192) 193 (org-capture-get :return-to-wconf)))) (edebug-after (edebug-before 195) 201 (error "Capture template `%s': %s" (edebug-after (edebug-before 196) 197 (org-capture-get :key)) (edebug-after (edebug-before 198) 200 (nth 1 (edebug-after 0 199 error)))))))) (edebug-after (edebug-before 203) 227 (if (edebug-after (edebug-before 204) 209 (and (edebug-after (edebug-before 205) 206 (derived-mode-p 'org-mode)) (edebug-after (edebug-before 207) 208 (org-capture-get :clock-in)))) (edebug-after (edebug-before 210) 226 (condition-case nil (edebug-after (edebug-before 211) 225 (progn (edebug-after (edebug-before 212) 220 (if (edebug-after (edebug-before 213) 214 (org-clock-is-active)) (edebug-after (edebug-before 215) 219 (org-capture-put :interrupted-clock (edebug-after (edebug-before 216) 218 (copy-marker (edebug-after 0 217 org-clock-marker))))))) (edebug-after (edebug-before 221) 222 (org-clock-in)) (edebug-after (edebug-before 223) 224 (set (make-local-variable 'org-capture-clock-was-started) t)))) (error "Could not start the clock in this capture buffer"))))) (edebug-after (edebug-before 228) 233 (if (edebug-after (edebug-before 229) 230 (org-capture-get :immediate-finish)) (edebug-after (edebug-before 231) 232 (org-capture-finalize))))))))))))))))
  org-capture(nil)
  funcall-interactively(org-capture nil)
  call-interactively(org-capture nil nil)
  command-execute(org-capture)

@vv111y
Copy link
Author

vv111y commented Dec 4, 2017

@rgrinberg I figured it was just me making a noobie mistake. But now that you mention it, that is not a graceful fail, and not an informative error message. I can re-open if you want, either way works for me.

@lg2011
Copy link

lg2011 commented Dec 21, 2017

I had the same issue which seems to relate to the declaration of ipython in org-babel-load-languages (in emacs init file).

What solve the problem for me is:

  • to comment the line (ipython . t) in org-babel-load-languages.
  • or, to keep ipython in org-babel-load-langguages, to use the following commands (ubuntu 16.04):
    • sudo apt-get -y install ipython ipython-notebook
    • sudo -H pip install jupyter

@aayusuff
Copy link

You can set ob-ipython-command to the path of jupyter. e,g
(setq ob-ipython-command "/home/name/miniconda3/bin/jupyter") . You can then restart emacs.

@dwcoates
Copy link

dwcoates commented Jan 3, 2018

I'm not using spacemacs, but the problem was also with ipython. Who woulda thunk it...

@sebhahn
Copy link
Contributor

sebhahn commented Jan 8, 2018

@lg2011: Didn't solve the problem for me, still have this problem

EDIT: Now it works, I had to solve another issue related to pip. Thanks!

@jjlee
Copy link
Contributor

jjlee commented Feb 3, 2018

I think this should be reopened. On devel (f3b6a22) I get json-readtable-error when I open an org file with org and python layers enabled and without jupyter installed, which 1. leaves org broken 2. doesn't leave an easy-to-diagnose error in *Messages*.

Currently I think using an updated ob-ipython with the PR I just opened is a suitable fix, but will have to see what the ob-ipython maintainer thinks...

(thanks @vv111y and @lg2011, I probably wouldn't have bothered investigating without what you found out)

@vv111y vv111y reopened this Feb 4, 2018
@Jessense
Copy link

So how to fix this problem?

@x-ji
Copy link
Contributor

x-ji commented Aug 18, 2018

Would have never thought that this is related to jupyter... It would be better to just install it locally instead of using sudo:

pip install -U --user jupyter.

@Miciah
Copy link
Contributor

Miciah commented Aug 19, 2018

Is it correct to say that the problem is reported upstream as gregsexton/ob-ipython#156 and that it can be worked around by manually installing Jupyter? If so, we can tag the issue as "Found work-around" and "Reported upstream".

@FrancescElies
Copy link
Contributor

When I was running emacs on the gui org capture worked, but not in the terminal until I realized that emacs could not find jupyter when running it on the shell.

Running conda activate my-env before running emacs on the terminal solved this problem for me.

@hyiltiz
Copy link

hyiltiz commented Feb 24, 2019

Reinstalling jupyter (it was already installed anyway; didn't matter if it was into --user) did not solve the issue for me in the develop branch.

bartfrenk added a commit to bartfrenk/config that referenced this issue Aug 5, 2019
Enabling it makes org-capture fail, see:
syl20bnr/spacemacs#9941
@safijari
Copy link

I feel like every once in a while I totally forget about this issue and then it bites me in the butt ...

happened again

@vv111y
Copy link
Author

vv111y commented Oct 17, 2019

The best solution for this is to remove ob-ipython from spacemacs completely. It is an abandoned project, this will not be fixed. I have been using https://github.com/dzop/emacs-jupyter for a while and it is excellent.
I also think that https://github.com/millejoh/emacs-ipython-notebook should use emacs-jupyter API for the backend and collaborate with the project instead of duplicating work.

https://github.com/benneti/spacemacs-jupyter is a private layer for emacs-jupyter I use. I would like to get that up to the level where it can replace the current ipython-notebook layer.

@togakangaroo
Copy link

togakangaroo commented Oct 25, 2019

If I may, restate the issue cause I just arrived here and boy...was it confusing what yall were saying is going on.

It sounds like org-capture uses (of course) org mode. And if you have python enabled in org mode for executing src blocks, then for some reason it expects jupyter to be available as well?

So if you don't have jupyter installed globally (or if - as in my case - you did but then used pyenv to switch to a different python version) you need to pip install jupyter again for it to work.

To summarize: emacs org-mode which is written in elisp breaks giving you an error about javascript because a particular package in python isn't installed. Do I have that right? 🤣

@HongbinZhou
Copy link

I met the error too: condition-case: Capture abort: JSON readtable error: 122. My workaround is to:

  • remove: ipython-notebook from dotspacemacs-configuration-layers
  • remove: (ipython . t) from org-babel-load-languages

@vv111y
Copy link
Author

vv111y commented Nov 5, 2019

I met the error too: condition-case: Capture abort: JSON readtable error: 122. My workaround is to:

  • remove: ipython-notebook from dotspacemacs-configuration-layers
  • remove: (ipython . t) from org-babel-load-languages

Correct, doing this removes the ob-ipython package.

ADD: For good measure add ob-ipython to dotspacemacs-excluded-packages

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