emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Victor A. Stoichita" <victor@svictor.net>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: strange behavior of @ in tag searches
Date: Mon, 21 Dec 2020 00:05:39 +0100	[thread overview]
Message-ID: <87pn34rscc.fsf@svictor.net> (raw)
In-Reply-To: <87mty89kvy.fsf@svictor.net>


> 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

I just realized that with "emacs -Q" both searches yield the 
expected results.
I have emacs 27.1 which ships org-mode 9.3.
Could I have set inadvertently something that changes the meaning 
of @ in tag searches? Or was there a change in that respect 
between 9.3 and 9.4.3?



  reply	other threads:[~2020-12-20 23:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-20 22:52 strange behavior of @ in tag searches Victor A. Stoichita
2020-12-20 23:05 ` Victor A. Stoichita [this message]
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

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87pn34rscc.fsf@svictor.net \
    --to=victor@svictor.net \
    --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 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).