From: Karl Voit <devnull@Karl-Voit.at>
To: emacs-orgmode@gnu.org
Subject: babel processing endlessly while org-agenda-list and org-agenda-write
Date: Fri, 23 May 2014 21:40:23 +0200 [thread overview]
Message-ID: <2014-05-23T21-02-18@devnull.Karl-Voit.at> (raw)
Hi!
I've had a non-working ical-export for many months and today I
invested some time to trace the issue down a bit.
Org-mode version 8.2.5h (release_8.2.5h-1015-g55bde3
GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
(defun my-export-agenda()
"Exports monthly Org-mode agenda to agenda.ics file"
(interactive)
(save-some-buffers)
(org-agenda-list nil nil 60)
(org-agenda-write "~/share/all/org-mode/agenda-export-raw.ics")
;; more processing afterwards skipped here
)
First I found several source-blocks where babel locked itself up
while org-agenda-list was running.
An example profiler results where babel was running in its endless
loop: [1]
I noticed messages like "org-babel-exp process nil at 1234 ..." and
tracked down the file where the line is located. There I found
BEGIN_SRC blocks with and without(!) language definitions for sh
(BEGIN_SRC sh"), python, elisp.
Q: Why are my BEGIN_SRC blocks getting processed at all? This was once
working without babel processing them.
Q: How can I find out, in which file the "line 1234" is located in?
For now, I changed those blocks to EXAMPLE blocks or placed colons
in front of every line (comments). Dirty work-around.
After this tedious job (I used many babel examples), the
org-agenda-list command finished at least.
As a work around, I eliminated those cases by moving the source
examples to other block types. I now end up in an endlessly running
org-agenda-write.
After letting it run for a couple of minutes, I aborted using C-g
and here is the profiler report for org-agenda-write: [2]
... looks like babel is turning against me again.
Q: Could this be related to "(setq org-confirm-babel-evaluate nil)"?
To my knowledge, this should not be any issue and I used it before
the issue appeared.
I have no idea how to trace this down any further (only small elisp
knowledge on my side).
Thanks for any input!
[1] org-agenda-list:
- command-execute 230041 98%
- call-interactively 230041 98%
- execute-extended-command 229944 98%
- command-execute 229940 98%
- call-interactively 229940 98%
- my-export-agenda 229936 98%
- org-agenda-write 123668 53%
- org-let 123668 53%
- eval 123668 53%
- let 123668 53%
- save-excursion 123668 53%
- save-window-excursion 123668 53%
- let 123668 53%
- unwind-protect 123668 53%
- progn 123668 53%
- let 123668 53%
- with-temp-buffer 123644 53%
- let 123644 53%
- with-current-buffer 123644 53%
- save-current-buffer 123644 53%
- unwind-protect 123644 53%
- progn 123644 53%
- cond 123636 53%
- org-icalendar-export-current-agenda 123636 53%
- apply 123636 53%
- org-icalendar--combine-files 123636 53%
- mapconcat 123281 52%
- #<compiled 0x91ca9d> 123281 52%
- byte-code 123281 52%
- org-export-as 123281 52%
- org-export-execute-babel-code 116998 50%
- org-babel-exp-process-buffer 116970 50%
+ org-babel-exp-src-block 796 0%
+ org-element-context 40 0%
+ org-indent-refresh-maybe 16 0%
+ org-in-commented-heading-p 12 0%
+ indent-rigidly 12 0%
org-element--cache-after-change 4 0%
+ org-export-copy-buffer 28 0%
+ org-export-data 2954 1%
+ org-element-parse-buffer 2414 1%
+ run-hook-with-args 560 0%
+ org-export-collect-tree-properties 167 0%
+ org-export-get-environment 60 0%
org-macro-replace-all 44 0%
+ org-export-copy-buffer 32 0%
org-export-expand-include-keyword 16 0%
+ org-macro-initialize-templates 16 0%
+ org-export-remove-uninterpreted-data 8 0%
+ org-export--get-buffer-attributes 4 0%
org-update-radio-target-regexp 4 0%
org-element-normalize-string 4 0%
+ org-agenda-prepare-buffers 351 0%
org-release-buffers 4 0%
org-agenda-remove-marked-text 4 0%
copy-sequence 8 0%
org-agenda-unmark-filtered-text 4 0%
- org-agenda-list 106268 45%
- byte-code 106260 45%
- byte-code 101909 43%
- apply 101869 43%
- org-agenda-get-day-entries 101845 43%
- org-agenda-get-deadlines 39365 16%
- byte-code 31782 13%
+ org-get-todo-state 17927 7%
+ org-agenda-skip 6399 2%
+ org-time-string-to-absolute 635 0%
org-get-wdays 60 0%
+ org-get-tags-at 12 0%
byte-code 4 0%
+ org-agenda-format-item 4 0%
abbreviate-file-name 24 0%
+ org-agenda-todayp 12 0%
- org-agenda-get-scheduled 31873 13%
- byte-code 25864 11%
- org-get-todo-state 12094 5%
+ org-back-to-heading 10139 4%
+ org-agenda-skip 6884 2%
+ org-time-string-to-absolute 784 0%
+ org-get-tags-at 163 0%
+ org-is-habit-p 127 0%
org-get-wdays 88 0%
+ org-agenda-format-item 32 0%
+ org-get-category 28 0%
byte-code 20 0%
org-get-priority 16 0%
+ org-outline-level 8 0%
org-agenda-new-marker 4 0%
+ org-agenda-todayp 20 0%
abbreviate-file-name 4 0%
+ org-agenda-get-timestamps 19920 8%
+ org-agenda-get-blocks 9554 4%
org-agenda-get-sexps 1011 0%
+ org-get-agenda-file-buffer 16 0%
org-check-agenda-file 36 0%
+ org-agenda-prepare 3272 1%
+ org-agenda-finalize 884 0%
+ org-get-entries-from-diary 108 0%
+ org-agenda-finalize-entries 44 0%
+ profiler-report 4 0%
+ byte-code 63 0%
+ minibuffer-complete 34 0%
+ ... 2782 1%
[2] org-agenda-write:
- command-execute 627533 99%
- call-interactively 627516 99%
- execute-extended-command 626716 99%
- command-execute 626712 99%
- call-interactively 626712 99%
- my-export-agenda 626505 99%
- org-agenda-write 514657 81%
- org-let 514657 81%
- eval 514657 81%
- let 514657 81%
- save-excursion 514657 81%
- save-window-excursion 514657 81%
- let 514657 81%
- unwind-protect 514657 81%
- progn 514657 81%
- let 514657 81%
- with-temp-buffer 514617 81%
- let 514617 81%
- with-current-buffer 514617 81%
- save-current-buffer 514617 81%
- unwind-protect 514617 81%
- progn 514617 81%
- cond 514605 81%
- org-icalendar-export-current-agenda 514601 81%
- apply 514601 81%
- org-icalendar--combine-files 514601 81%
- mapconcat 514165 81%
- #<compiled 0x91ca9d> 514165 81%
- byte-code 514165 81%
- org-export-as 514165 81%
- org-export-execute-babel-code 507473 80%
- org-babel-exp-process-buffer 507441 80%
- org-babel-exp-src-block 819 0%
+ org-babel-get-src-block-info 340 0%
+ org-babel-exp-do-export 12 0%
+ org-element-context 40 0%
+ org-in-commented-heading-p 24 0%
indent-rigidly 8 0%
+ org-element--cache-after-change 8 0%
+ org-indent-refresh-maybe 8 0%
+ org-element--cache-before-change 4 0%
+ org-export-copy-buffer 32 0%
+ org-export-data 3026 0%
+ org-element-parse-buffer 2511 0%
+ run-hook-with-args 827 0%
+ org-export-collect-tree-properties 72 0%
+ org-export-get-environment 64 0%
org-macro-replace-all 64 0%
+ org-macro-initialize-templates 40 0%
+ org-export-copy-buffer 36 0%
org-export-expand-include-keyword 28 0%
+ org-export-remove-uninterpreted-data 16 0%
org-update-radio-target-regexp 4 0%
org-element-normalize-string 4 0%
+ org-agenda-prepare-buffers 428 0%
org-release-buffers 4 0%
copy-sequence 12 0%
org-agenda-unmark-filtered-text 8 0%
+ org-agenda-list 111844 17%
+ profiler-report 207 0%
+ next-line 392 0%
+ byte-code 234 0%
+ previous-line 107 0%
+ profiler-report-toggle-entry 44 0%
+ kill-ring-save 8 0%
end-of-buffer 5 0%
+ goto-line 2 0%
+ ... 3322 0%
+ timer-event-handler 32 0%
+ redisplay_internal (C function) 30 0%
tooltip-hide 13 0%
+ clm/log-command 11 0%
blink-cursor-end 7 0%
+ xselect-convert-to-string 5 0%
+ #<compiled 0x10c5921> 4 0%
global-undo-tree-mode-check-buffers 4 0%
+ deactivate-mark 2 0%
--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
next reply other threads:[~2014-05-23 19:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 19:40 Karl Voit [this message]
2014-05-24 4:27 ` babel processing endlessly while org-agenda-list and org-agenda-write Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2014-05-23T21-02-18@devnull.Karl-Voit.at \
--to=devnull@karl-voit.at \
--cc=emacs-orgmode@gnu.org \
--cc=news1142@Karl-Voit.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.