emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [BABEL] BUG - error on tangling - disappears when changing the f


From: Eric Schulte
Subject: Re: [O] [BABEL] BUG - error on tangling - disappears when changing the filename
Date: Mon, 30 Sep 2013 18:10:19 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

>>>
>>> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]