emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Need absolute org-attach-id-dir to attach in buffers without filename
@ 2021-09-01 17:53 Nick Anderson
  2021-10-01  9:27 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Anderson @ 2021-09-01 17:53 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 802 bytes --]

I have an org-mode file that contains headings with attachments. When I
`org-mime-org-buffer-htmlize' I get an error, `"Need absolute
`org-attach-id-dir' to attach in buffers without filename"'.
`org-attach-id-dir' has the value `data/'. I get this error even when I
am in the buffer for the file, not simply a capture buffer. This seems
to come [from org-attach].

The buffer name is name of the file, but not named using the absolute
path to the file, is that why I am getting the error?

Looking at `buffer-file-name' while visiting the file indicates that the
value is the full path, but local in buffer it's not the full path and
the global value is nil.

Thanks


[from org-attach]
<https://github.com/emacs-mirror/emacs/blob/3af9e84ff59811734dcbb5d55e04e1fdb7051e77/lisp/org/org-attach.el#L394>

[-- Attachment #1.2: Type: text/html, Size: 883 bytes --]

[-- Attachment #2: Type: text/plain, Size: 17 bytes --]

--
Nick Anderson

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-01  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-01 17:53 Need absolute org-attach-id-dir to attach in buffers without filename Nick Anderson
2021-10-01  9:27 ` Ihor Radchenko

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).