emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* tag search seems not to work.
@ 2016-06-16 16:09 Uwe Brauer
  2016-06-16 16:34 ` Some progress (was: tag search seems not to work.) Uwe Brauer
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Brauer @ 2016-06-16 16:09 UTC (permalink / raw)
  To: emacs-orgmode



Hi

I am using GNU emacs 25.1.50 (compiled yesterday) and the latest org
version available in ELPA.

I really never used tag search as provided by the agenda. So today I
just copied the examples of
http://orgmode.org/worg/org-tutorials/advanced-searching.html



* TODO Buy clothes for wedding                    :wedding:important:errands:
 SCHEDULED: <2010-12-01 Wed>
 :PROPERTIES:
 :estimated-cost: 100
 :END:
 [2010-11-17 Wed 12:22]

 I need to look spiffy for the big day!

  - [ ] Suit
  - [ ] Tie
  - [ ] Shoes
  - [ ] Hat

 Possible stores to visit:
 
 | Store           | Location               | Miles away |
 |-----------------+------------------------+------------|
 | The Suit King   | 1000 E. Washington St. |        5.1 |
 | Mr. Haberdasher | 259 Western Rd.        |        7.2 |


Into an org file and run, as indicated 

C-m a
and then I searched for wedding,

However nothing was found, I expected, as in occur, a buffer showing me
all the tags matching my search criterion, but there was none.

What do I miss?

thanks

Uwe Brauer 

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

* Some progress (was: tag search seems not to work.)
  2016-06-16 16:09 tag search seems not to work Uwe Brauer
@ 2016-06-16 16:34 ` Uwe Brauer
  2016-06-17  7:37   ` Some progress Marco Wahl
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Brauer @ 2016-06-16 16:34 UTC (permalink / raw)
  To: emacs-orgmode

>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:

   > Hi

   > I really never used tag search as provided by the agenda. So today I
   > just copied the examples of
   > http://orgmode.org/worg/org-tutorials/advanced-searching.html



   > * TODO Buy clothes for wedding                    :wedding:important:errands:
   >  SCHEDULED: <2010-12-01 Wed>
   >  :PROPERTIES:
   >  :estimated-cost: 100
   >  :END:
   >  [2010-11-17 Wed 12:22]

   >  I need to look spiffy for the big day!

   >   - [ ] Suit
   >   - [ ] Tie
   >   - [ ] Shoes
   >   - [ ] Hat

   >  Possible stores to visit:
 
   >  | Store           | Location               | Miles away |
   >  |-----------------+------------------------+------------|
   >  | The Suit King   | 1000 E. Washington St. |        5.1 |
   >  | Mr. Haberdasher | 259 Western Rd.        |        7.2 |


   > Into an org file and run, as indicated 

   > C-m a
   > and then I searched for wedding,

   > However nothing was found, I expected, as in occur, a buffer showing me
   > all the tags matching my search criterion, but there was none.

   > What do I miss?

It seems that I have to add the file in which I am searching to the list
of agenda files (https://stackoverflow.com/questions/24966333/emacs-org-mode-tags-not-found)
that however is not described in the manual nor is it intuitive.

Now I can search and find tags in headings, but I cannot find
properties, how do I find these?

thanks

Uwe Brauer 

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

* Re: Some progress
  2016-06-16 16:34 ` Some progress (was: tag search seems not to work.) Uwe Brauer
@ 2016-06-17  7:37   ` Marco Wahl
  2016-06-17  8:47     ` Uwe Brauer
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Wahl @ 2016-06-17  7:37 UTC (permalink / raw)
  To: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:
>    > I really never used tag search as provided by the agenda. So today I
>    > just copied the examples of
>    > http://orgmode.org/worg/org-tutorials/advanced-searching.html
>
>    > * TODO Buy clothes for wedding                    :wedding:important:errands:
>    >  SCHEDULED: <2010-12-01 Wed>
>    >  :PROPERTIES:
>    >  :estimated-cost: 100
>    >  :END:
>    >  [2010-11-17 Wed 12:22]
>
> [...]
>    > However nothing was found, I expected, as in occur, a buffer showing me
>    > all the tags matching my search criterion, but there was none.
>
>    > What do I miss?
>
> It seems that I have to add the file in which I am searching to the
> list of agenda files
> (https://stackoverflow.com/questions/24966333/emacs-org-mode-tags-not-found)
> that however is not described in the manual nor is it intuitive.

I disagree.  The agenda is based on agenda files.  So it's clear that
the agenda-tag-search applies only to the agenda files.  And it's in the
manual in section (info "(org) Tag searches").

> Now I can search and find tags in headings, but I cannot find
> properties, how do I find these?

* TODO Buy clothes for wedding
 :PROPERTIES:
 :estimated_cost: 100
 :END:

C-c a m estimated_cost="100"

finds the subtree.

Note the underscore instead of the hyphen.  '-' in the property name
breaks the search AFAICS.

See further (info "(org) Tag searches") which also has something about
searching for tags in the current buffer.


Best regards,
-- 
Marco Wahl -- GPG: 0x49010A040A3AE6F2

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

* Re: Some progress
  2016-06-17  7:37   ` Some progress Marco Wahl
@ 2016-06-17  8:47     ` Uwe Brauer
  2016-06-17 15:37       ` Marco Wahl
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Brauer @ 2016-06-17  8:47 UTC (permalink / raw)
  To: emacs-orgmode

>>> "Marco" == Marco Wahl <marcowahlsoft@gmail.com> writes:

    > Uwe Brauer <oub@mat.ucm.es> writes:
    >>>>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:

    > I disagree.  The agenda is based on agenda files.  So it's clear that
    > the agenda-tag-search applies only to the agenda files.  And it's in the
    > manual in section (info "(org) Tag searches").


Well ok, I found the paragraph in question, you are right, 

    >> Now I can search and find tags in headings, but I cannot find
    >> properties, how do I find these?

    > * TODO Buy clothes for wedding
    >  :PROPERTIES:
    >  :estimated_cost: 100
    >  :END:

    > C-c a m estimated_cost="100"

    > finds the subtree.

    > Note the underscore instead of the hyphen.  '-' in the property name
    > breaks the search AFAICS.

    > See further (info "(org) Tag searches") which also has something about
    > searching for tags in the current buffer.

Thanks!

But, the point is: suppose I do not recall the exact content of that
property, so I would like to search for all PROPERTIES which contain
estimated_cost. How can I do that?

It seems that (org-entry-properties nil) is the command in question



regards

Uwe 

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

* Re: Some progress
  2016-06-17  8:47     ` Uwe Brauer
@ 2016-06-17 15:37       ` Marco Wahl
  0 siblings, 0 replies; 5+ messages in thread
From: Marco Wahl @ 2016-06-17 15:37 UTC (permalink / raw)
  To: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

>
>     > * TODO Buy clothes for wedding
>     >  :PROPERTIES:
>     >  :estimated_cost: 100
>     >  :END:
>
>     > C-c a m estimated_cost="100"
>
>     > finds the subtree.
>
>     > Note the underscore instead of the hyphen.  '-' in the property name
>     > breaks the search AFAICS.
>
>     > See further (info "(org) Tag searches") which also has something about
>     > searching for tags in the current buffer.
>
> Thanks!
>
> But, the point is: suppose I do not recall the exact content of that
> property, so I would like to search for all PROPERTIES which contain
> estimated_cost. How can I do that?

What about just searching the text?

C-c a / :estimated_cost:


Ciao,
-- 
Marco Wahl -- GPG: 0x49010A040A3AE6F2

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

end of thread, other threads:[~2016-06-17 15:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 16:09 tag search seems not to work Uwe Brauer
2016-06-16 16:34 ` Some progress (was: tag search seems not to work.) Uwe Brauer
2016-06-17  7:37   ` Some progress Marco Wahl
2016-06-17  8:47     ` Uwe Brauer
2016-06-17 15:37       ` Marco Wahl

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