Re: [O] org-search-view skips over commented subtrees
On 8.5.2013, at 00:14, Samuel Wales wrote: > Hi Bastien, > > On 5/7/13, Bastien wrote: >> IMHO this would be too much, since the let-binding solution is there >> already. > > I won't object to whatever decision is made, but it made me curious: > is it not there for inheritance? > > This raises another question. Is it possible to do a let for each of > the built-in views? Yes, by creating a custom view using the same keys as the built-in view. > > Also, is it possible to do a let for the view that you get when you > RET on a timestamp? No, this is currently not possible. - Carsten > > Samuel > > -- > The Kafka Pandemic: http://thekafkapandemic.blogspot.com > > The disease DOES progress. MANY people have died from it. ANYBODY can get > it. >
Re: [O] org-search-view skips over commented subtrees
Hi Bastien, On 5/7/13, Bastien wrote: > IMHO this would be too much, since the let-binding solution is there > already. I won't object to whatever decision is made, but it made me curious: is it not there for inheritance? This raises another question. Is it possible to do a let for each of the built-in views? Also, is it possible to do a let for the view that you get when you RET on a timestamp? Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Re: [O] org-search-view skips over commented subtrees
Hi Samuel, Samuel Wales writes: > Ideally, the variable would allow a list of search types (along the > lines of org-agenda-use-tag-inheritance). I wonder if that would make > sense? IMHO this would be too much, since the let-binding solution is there already. -- Bastien
Re: [O] org-search-view skips over commented subtrees
Hi Sebastien, On 5/7/13, Sebastien Vauban wrote: > I understand, maybe wrongly though, that he agrees not seeing COMMENTed > headlines in "C-c a a", but not in "C-c a s" results. He'll tell us... Yes, that is correct, thank you. (There is also the apparent inconsistency between commented subtrees and "# " comments.) I use a mixture of custom and built-in commands, and direct calls to org-search-view, so it is not clear how I will cover all needed cases conveniently, but I now realize that it is possible. I wasn't aware of the variable. Thanks to Bastien for that and Carsten for the custom let. Ideally, the variable would allow a list of search types (along the lines of org-agenda-use-tag-inheritance). I wonder if that would make sense? Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it.
Re: [O] org-search-view skips over commented subtrees
On 7 mei 2013, at 14:39, Bastien wrote: > > > "Sebastien Vauban" > writes: > >> Isn't here the problem that the OP makes a difference between "agenda >> generation" and "results for a search". I guess he agrees COMMENTed trees >> should not participate in agendas, but well in regexp searches. > > But Samuel *is* using the agenda, no? And then he can use a custom command to define a search view wich modified the setting of this variable. - Carsten
Re: [O] org-search-view skips over commented subtrees
Bastien wrote: > Sebastien Vauban writes: > >> Isn't here the problem that the OP makes a difference between "agenda >> generation" and "results for a search". I guess he agrees COMMENTed trees >> should not participate in agendas, but well in regexp searches. > > But Samuel *is* using the agenda, no? I understand from his description: >>> When I search for a {regexp}, using the agenda, with restriction set to >>> the current file, I get entries that contain matching text in ordinary >>> lines and entries that contain matching text in commented lines. This is >>> desired. that he's using "C-c a < s" to make his search. I understand, maybe wrongly though, that he agrees not seeing COMMENTed headlines in "C-c a a", but not in "C-c a s" results. He'll tell us... Best regards, Seb -- Sebastien Vauban
Re: [O] org-search-view skips over commented subtrees
"Sebastien Vauban" writes: > Isn't here the problem that the OP makes a difference between "agenda > generation" and "results for a search". I guess he agrees COMMENTed trees > should not participate in agendas, but well in regexp searches. But Samuel *is* using the agenda, no? -- Bastien
Re: [O] org-search-view skips over commented subtrees
Bastien wrote: > Samuel Wales writes: > >> However, the COMMENT keyword on a headline stops results from showing. >> This is not desired. It is also inconsistent with commented lines. >> >> I strongly prefer for all matches to show up, whether commented or >> not. However, in principle there could be an option to not match >> anything that is commented. If such an option is desired, however, I >> suggest the safer value of nil as a default. > > There is such an option: > > (setq org-agenda-skip-comment-trees nil) > > It defaults to `t' which I think is a good default. Isn't here the problem that the OP makes a difference between "agenda generation" and "results for a search". I guess he agrees COMMENTed trees should not participate in agendas, but well in regexp searches. Best regards, Seb -- Sebastien Vauban
Re: [O] org-search-view skips over commented subtrees
Hi Samuel, Samuel Wales writes: > However, the COMMENT keyword on a headline stops results from showing. > This is not desired. It is also inconsistent with commented lines. > > I strongly prefer for all matches to show up, whether commented or > not. However, in principle there could be an option to not match > anything that is commented. If such an option is desired, however, I > suggest the safer value of nil as a default. There is such an option: (setq org-agenda-skip-comment-trees nil) It defaults to `t' which I think is a good default. HTH, -- Bastien
[O] org-search-view skips over commented subtrees
When I search for a {regexp}, using the agenda, with restriction set to the current file, I get entries that contain matching text in ordinary lines and entries that contain matching text in commented lines. This is desired. However, the COMMENT keyword on a headline stops results from showing. This is not desired. It is also inconsistent with commented lines. I strongly prefer for all matches to show up, whether commented or not. However, in principle there could be an option to not match anything that is commented. If such an option is desired, however, I suggest the safer value of nil as a default. Thanks. Samuel -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it.