Re: The meaning of / inverted in the agenda

2023-04-26 Thread Esteban Ordóñez
I liked this exercise because it taught me very simply how to use
org-agenda!  Thank you both.  :-)



Re: The meaning of / inverted in the agenda

2023-04-25 Thread John Wiegley
> Ihor Radchenko  writes:

> What am I missing?

My apologies, I really don't know what errant behavior had crept into my
configuration, but even now as I tried the steps, I saw that it had flipped
again, making the "fix" I proposed entirely incorrect, as you surmised. This
is really quite strange, I'm not even sure how my configuration had led to an
inversion of the tag filtering behavior.

Anyway, I reverted that change and now all things are working fine. Sorry
again for the noise.

-- 
John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2



Re: The meaning of / inverted in the agenda

2023-04-25 Thread Ihor Radchenko


John Wiegley  writes:
>> May you please provide a reproducer or at least more details?
>
> - Enter the Org-agenda
> - Press '/ t' to filter by the tag identified by 't'
> - Note that it hides those tags, rather than showing only those tags

I just tried

1. emacs -Q
2. C-x C-f /tmp/1.org 
3.

* TODO This :t:
* TODO Another one :t2:

4. M-x org-agenda  < t
5. Observe two todo items displayed
6. / t 
7. Observe "This" item matching "t" tag displayed.

What am I missing?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: The meaning of / inverted in the agenda

2023-04-25 Thread John Wiegley
> Ihor Radchenko  writes:

> "John Wiegley"  writes:
>> In previous version of Org-mode, I was used to "/ t" showing me only
>> entries that matched the tag keyed by 't'. Now it hides them instead.

> May you please provide a reproducer or at least more details?

- Enter the Org-agenda
- Press '/ t' to filter by the tag identified by 't'
- Note that it hides those tags, rather than showing only those tags

> which is fishy because "+" for "exclude" does not look right.

My thoughts too.

--
John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2



Re: The meaning of / inverted in the agenda

2023-04-25 Thread Ihor Radchenko
"John Wiegley"  writes:

> In previous version of Org-mode, I was used to "/ t" showing me only entries
> that matched the tag keyed by 't'. Now it hides them instead.

May you please provide a reproducer or at least more details?

> I was able to
> fix this using:
>
> modified   lisp/org-agenda.el
> @@ -8578,7 +8578,7 @@ also press `-' or `+' to switch between filtering and 
> excluding."
>(org-agenda-filter-show-all-tag)
>(setq tag (car a))
>(setq org-agenda-tag-filter
> - (cons (concat (if exclude "-" "+") tag)
> + (cons (concat (if exclude "+" "-") tag)

which is fishy because "+" for "exclude" does not look right.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



The meaning of / inverted in the agenda

2023-04-25 Thread John Wiegley
In previous version of Org-mode, I was used to "/ t" showing me only entries
that matched the tag keyed by 't'. Now it hides them instead. I was able to
fix this using:

modified   lisp/org-agenda.el
@@ -8578,7 +8578,7 @@ also press `-' or `+' to switch between filtering and 
excluding."
   (org-agenda-filter-show-all-tag)
   (setq tag (car a))
   (setq org-agenda-tag-filter
-   (cons (concat (if exclude "-" "+") tag)
+   (cons (concat (if exclude "+" "-") tag)
  (if accumulate current nil)))
   (org-agenda-filter-apply org-agenda-tag-filter 'tag expand))
  (t (error "Invalid tag selection character %c" char)

The documentation for '/' says that "Keep only those lines in the agenda
buffer that have a specific tag.", so I'm pretty sure the current behavior is
a bug?

--
John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2