[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] org-babel-result-to-file failed when buffer is narrowed [9.7
From: |
Ihor Radchenko |
Subject: |
Re: [BUG] org-babel-result-to-file failed when buffer is narrowed [9.7 (9.7-??-f7aa8c1 @ c:/Users/yhht/.config/emacs/.local/straight/build-29.0.60/org/)] |
Date: |
Mon, 17 Jul 2023 09:08:42 +0000 |
赵一宇 <zhyznd@163.com> 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)))
> should be
> (base-directory (and base-file-name
> (file-name-directory base-file-name)))
> where base-file-name is non-nil.
Makes sense.
Fixed, on main.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c730caf51
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>