emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Rainer M Krug <Rainer@krugs.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BABEL] BUG - error on tangling - disappears when changing the filename
Date: Mon, 30 Sep 2013 18:10:19 -0600	[thread overview]
Message-ID: <87had1rgug.fsf@gmail.com> (raw)
In-Reply-To: m2li2ekbq7.fsf@krugs.de

>>>
>>> The question is now why is this function org-babel-mark-file-as-tangled
>>> receives NULL as a buffer-file-name? 
>>
>> I'm not sure, but perhaps you could wrap the body of buffer-file-name in
>> a (when (buffer-file-name) ...) form to protect against null files.
>
> Sounds reasonable and I'll put it in to have properly tangled files when
> this happens - but then the file-local-variables would not be added if
> the file name is null. Is there any way that I could find out why this
> is happening (or under which conditions)?
>

I'm not sure why this is happening.  You could use edebug to step
through the tangling process by edebugging the `org-babel-tangle'
function with (C-u C-M-x) i.e., (eval-defun 'edebug-it).

Cheers,

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

      reply	other threads:[~2013-10-01  0:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-27 12:23 [BABEL] BUG - error on tangling - disappears when changing the filename Rainer M Krug
2013-09-27 13:30 ` Rainer M Krug
2013-09-27 13:44   ` Rainer M Krug
2013-09-28 12:22     ` Eric Schulte
2013-09-30  7:30       ` Rainer M Krug
2013-10-01  0:10         ` Eric Schulte [this message]

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=87had1rgug.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=Rainer@krugs.de \
    --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).