emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [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/)]
@ 2023-09-14  4:43 Tianshu Wang
  2023-09-14 11:18 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Tianshu Wang @ 2023-09-14  4:43 UTC (permalink / raw)
  To: emacs-orgmode

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.

Emacs  : GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a))
 of 2023-05-25
Package: Org mode version 9.6.6 (release_9.6.6 @ /opt/homebrew/Cellar/emacs-head@30/30.0.50_1/share/emacs/30.0.50/lisp/org/)

--
Tianshu Wang


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

* 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/)]
  2023-09-14  4:43 [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/)] Tianshu Wang
@ 2023-09-14 11:18 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-09-14 11:18 UTC (permalink / raw)
  To: Tianshu Wang; +Cc: emacs-orgmode

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>


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

end of thread, other threads:[~2023-09-14 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-14  4:43 [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/)] Tianshu Wang
2023-09-14 11:18 ` 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).