* Bug in filtered version
@ 2020-07-01 12:23 Ismael Bouya
2020-07-03 6:20 ` Kyle Meyer
0 siblings, 1 reply; 3+ messages in thread
From: Ismael Bouya @ 2020-07-01 12:23 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 744 bytes --]
Dear org-mode users,
I would like to report a bug in filtered mode for org-mode. Take this
given file as example:
-----------
* Some heading 1
** Some header to remove :sometag:
** Some header to keep :othertag:
-----------
(note that last two headers are *at the same level*)
Now filter with `C-c / m sometag`. It will show only "Some header to
remove". However, if you remove that heading (with C-k) it will also
remove the next one, which is a quite surprising behavior.
Is there a way to avoid getting bitten by this?
(It also works if you filter with / t and you have a TODO followed by a
non-TODO)
Kind regards,
--
Ismael
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in filtered version
2020-07-01 12:23 Bug in filtered version Ismael Bouya
@ 2020-07-03 6:20 ` Kyle Meyer
2020-07-03 12:49 ` Ismael Bouya
0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2020-07-03 6:20 UTC (permalink / raw)
To: Ismael Bouya; +Cc: emacs-orgmode
Ismael Bouya writes:
> I would like to report a bug in filtered mode for org-mode. Take this
> given file as example:
> -----------
> * Some heading 1
> ** Some header to remove :sometag:
> ** Some header to keep :othertag:
> -----------
>
> (note that last two headers are *at the same level*)
>
> Now filter with `C-c / m sometag`. It will show only "Some header to
> remove". However, if you remove that heading (with C-k) it will also
> remove the next one, which is a quite surprising behavior.
> Is there a way to avoid getting bitten by this?
Setting org-ctrl-k-protect-subtree should catch this.
You might also be interested in configuring org-show-context-detail, in
particular the value for tags-tree.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in filtered version
2020-07-03 6:20 ` Kyle Meyer
@ 2020-07-03 12:49 ` Ismael Bouya
0 siblings, 0 replies; 3+ messages in thread
From: Ismael Bouya @ 2020-07-03 12:49 UTC (permalink / raw)
To: Kyle Meyer; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
(Fri, Jul 03, 2020 at 02:20:24AM -0400) Kyle Meyer :
> > Now filter with `C-c / m sometag`. It will show only "Some header to
> > remove". However, if you remove that heading (with C-k) it will also
> > remove the next one, which is a quite surprising behavior.
> > Is there a way to avoid getting bitten by this?
>
> Setting org-ctrl-k-protect-subtree should catch this.
>
> You might also be interested in configuring org-show-context-detail, in
> particular the value for tags-tree.
Thanks for the hints Kyle, I found something workable with the two
variables (even though not perfect, at least I won’t lose entries
without knowing it).
Kind regards,
--
Ismael
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-03 12:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-01 12:23 Bug in filtered version Ismael Bouya
2020-07-03 6:20 ` Kyle Meyer
2020-07-03 12:49 ` Ismael Bouya
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).