emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* strange behavior of @ in tag searches
@ 2020-12-20 22:52 Victor A. Stoichita
  2020-12-20 23:05 ` Victor A. Stoichita
  0 siblings, 1 reply; 8+ messages in thread
From: Victor A. Stoichita @ 2020-12-20 22:52 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1419 bytes --]

Hi,

I’m a bit puzzled by the behavior of the agenda search when tags 
have hierarchical structure and start with @. I attach two 
minimal examples.

In testfiles.org I have:
--8<---------------cut here---------------start------------->8---
#+TAGS: [ @anthro : bib ]

* my anthro 
  task                                               :@anthro:
* my bib 
  task                                                      :bib:
--8<---------------cut here---------------end--------------->8---

I restrict the search to the buffer and search for the tag 
"@anthro".
I would expect to get the two headings "my anthro task" and "my 
bib task".
Instead, I only get "my bib task".

Now in testfiles2.org I have:
--8<---------------cut here---------------start------------->8---
#+TAGS: [ anthro2 : bib2 ]

* my anthro2 
  task                                              :@anthro2:
* my bib2 
  task                                                     :bib2:
--8<---------------cut here---------------end--------------->8---

Notice that here the parent tag set in the header does not start 
with @ while the tag on "my anthro2 task" starts with @.
When I search for "anthro2" (no @), I would expect to get only "my 
bib2 task". But here I get both headings.

Am I missing something? Does @ have a special meaning in tags?

This is with org mode version 9.4.3. 

Regards,
Victor




[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: testfiles_2.org --]
[-- Type: text/x-org, Size: 180 bytes --]

#+TAGS: [ anthro2 : bib2 ]

* my anthro2 task                                              :@anthro2:
* my bib2 task                                                         :bib2:

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: testfiles.org --]
[-- Type: text/x-org, Size: 183 bytes --]

#+TAGS: [ @anthro : bib ]

* my anthro task                                                    :@anthro:
* my bib task                                                           :bib:

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

end of thread, other threads:[~2020-12-24  8:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-20 22:52 strange behavior of @ in tag searches Victor A. Stoichita
2020-12-20 23:05 ` Victor A. Stoichita
2020-12-21  3:38   ` Ihor Radchenko
2020-12-22 22:18     ` Kyle Meyer
2020-12-22 23:34       ` Ihor Radchenko
2020-12-23 10:26         ` Victor A. Stoichita
2020-12-24  2:56           ` Ihor Radchenko
2020-12-24  8:21             ` Victor A. Stoichita

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