emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [FEATURE REQUEST] Introduce support for FILETAGS in the org-set/togg


From: Ihor Radchenko
Subject: Re: [FEATURE REQUEST] Introduce support for FILETAGS in the org-set/toggle-tag function. [9.6.6 (release_9.6.6 @ /opt/homebrew/Cellar/emacs-head@30/30.0.50_1/share/emacs/30.0.50/lisp/org/)]
Date: Thu, 14 Sep 2023 11:18:48 +0000

Tianshu Wang <wang@tianshu.me> writes:

> I am seeking this support because when adding Attachments to Org File
> without Headlines, I get a user-error: Before first headline at position
> 1 in buffer filename.org, even if the attachment has been successfully
> added. I hope there are no errors, and the #+FILETAGS of filename.org
> buffer has added `org-attach-auto-tag'. After a simple exploration, I
> found that this requires the support of org-set/toggle-tag to modify
> FILETAGS.

Confirmed.
Steps to reproduce:

1. emacs -Q
2. Open a new Org file
3. C-c C-a c <select some file> <RET>
4. Get an error "Before first heading ..."

The problem is that `org-attach-attach' tries to set "ATTACH" flag
running `org-set-tags'. And `org-set-tags' does not know how to set file
tags.

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



reply via email to

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