emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Grant Rettke <gcr@wisdomandwonder.com>
To: David Wagle <david.wagle@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Babel more verbose?
Date: Tue, 2 Sep 2014 12:23:36 -0500	[thread overview]
Message-ID: <CAAjq1mfartkVhJy0UZh8XtYpwXQL7L9a1cL3J9Rrn1pjrG-hug@mail.gmail.com> (raw)
In-Reply-To: <CAJdTJyNwmvS7cnZt61_50+xFGwe2r4mYBpw-8zRK679046XBtA@mail.gmail.com>

I am curious about how to get more reporting when tangling is
occurring because I would like to narrow down what parts of my
document are slow to tangle so that I can refactor them and speed it
up.
Grant Rettke | ACM, ASA, FSF
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Tue, Sep 2, 2014 at 10:01 AM, David Wagle <david.wagle@gmail.com> wrote:
> It sounds like perhaps the issue is code blocks with a long run-time that
> may or may not fail or hang in some way?
>
> If that's the case, the solution is probably simply breaking up your code
> blocks into smaller bits of code so that you more easily follow what's
> happening.
>
> If the code is emacs-lisp, it's easy enough to put (message ...) calls
> entering and leaving the code blocks.
>
>
> On Tue, Sep 2, 2014 at 9:54 AM, Nick Dokos <ndokos@gmail.com> wrote:
>>
>> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>>
>> > Try this:
>> >
>> > #+BEGIN_SRC emacs-lisp
>> > (defadvice org-babel-execute-src-block (around progress nil activate)
>> >   "create a buffer indicating what is running"
>> >   (let ((code-block (org-element-property :name (org-element-at-point)))
>> >       (cb (current-buffer)))
>> >     (split-window-below)
>> >     (other-window 1)
>> >     (switch-to-buffer "*My Babel*")
>> >     (insert (format "Running %s" code-block))
>> >     (other-window 1)
>> >     ad-do-it
>> >     (kill-buffer "*My Babel*")
>> >     (delete-other-windows)))
>> > #+END_SRC
>> >
>> > It will mess with your windows a bit, but it does what you want I think.
>> >
>>
>> Wouldn't a (message (format "Running %s" code-block)) be enough?
>> That would avoid all the window munging.
>>
>> >
>> > Gary Oberbrunner <garyo@oberbrunner.com> writes:
>> >
>> >> I have an org-mode babel program/document that takes about half an
>> >> hour to run (end result is a LaTeX or HTML doc with figures). It's a
>> >> mix of SQL and python. (The SQL is the slow part.) I'd really like it
>> >> if org-mode could tell me, while it's running, which named block it's
>> >> processing. Is there anything like that available? An option perhaps?
>>
>> --
>> Nick
>>
>>
>

  reply	other threads:[~2014-09-02 17:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02 12:32 Babel more verbose? Gary Oberbrunner
2014-09-02 14:15 ` John Kitchin
2014-09-02 14:54   ` Nick Dokos
2014-09-02 15:01     ` David Wagle
2014-09-02 17:23       ` Grant Rettke [this message]
2014-09-05 13:20       ` Gary Oberbrunner
2014-09-02 17:30     ` John Kitchin
2014-09-03  3:58       ` Nick Dokos

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAjq1mfartkVhJy0UZh8XtYpwXQL7L9a1cL3J9Rrn1pjrG-hug@mail.gmail.com \
    --to=gcr@wisdomandwonder.com \
    --cc=david.wagle@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

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

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