all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Anderson <nick@cmdln.org>
To: emacs-orgmode@gnu.org
Subject: Need absolute org-attach-id-dir to attach in buffers without filename
Date: Wed, 01 Sep 2021 12:53:52 -0500	[thread overview]
Message-ID: <87ilzk5gi7.fsf@cmdln.org> (raw)


[-- 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

             reply	other threads:[~2021-09-01 17:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-01 17:53 Nick Anderson [this message]
2021-10-01  9:27 ` Need absolute org-attach-id-dir to attach in buffers without filename Ihor Radchenko

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ilzk5gi7.fsf@cmdln.org \
    --to=nick@cmdln.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.