赵一宇 writes:
> Yes you're right.
> The problem exists in indirect buffer, not narrowed buffer, in which
> base-directory is nil in this case. That's why I wonder if
>(base-directory (and buffer-file-name
> (file-name-directory base-file-name)))
>
赵一宇 writes:
> When I try to execute ob-block in a narrowed buffer, there seems to have
> a error on org-babel-result-to-file, with msg "wrong argument type
> stringp, nil"
>
> and the reason is at line marked as -2->, which "buffer-file-name" would
> be nil when in narrowed buffer.
Thanks
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.