emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Agenda Search and org-agenda-text-search-extra-files
@ 2013-07-20 15:37 G. Martin Butz
  0 siblings, 0 replies; only message in thread
From: G. Martin Butz @ 2013-07-20 15:37 UTC (permalink / raw)
  To: org-mode mailing list

Hello,

I have some questions concerning the search function in org-mode:

(1) I have several files in listed in the variable 
/org-agenda-text-search-extra-files/. At lease one file is definitely 
not searched using /org-agenda-search-view/. It is an ordinary org file:

------------------------------8<------------------------
#+DATE: [2013-07-05 Di 09:10]
#+CATEGORY:
#+TAGS:
#+DESCRIPTION:
#+TITLE: Man kann nicht nicht zitieren - Ein Sammelsurium

Some Text here. Some more Text here...
------------------------------8<------------------------
I have now idea why the search function skips that file. Can anyone give 
a hint?

Using /org-occur/ the file will be searched like any other listed in 
/org-agenda-text-search-extra-files/.

(2) I also tried to set up the org-agenda-text-search-extra-files using 
an expression I found on the mailing list [1]; it would be easier if I 
had not to manually extend the variable any time a new file is added.

------------------------------8<------------------------
(directory-files "~/<directory>" t "^[^.#].*\\.\\(org$\\|org_archive$\\)")
------------------------------8<------------------------

I tried different versions because I was not sure how to interpret the 
example, e.g.:
------------------------------8<------------------------
  '(org-agenda-text-search-extra-files (quote (
(directory-files "~/org" t "^[^.#].*\\.\\(org$\\|org_archive$\\)")
)))

and

'(org-agenda-text-search-extra-files (quote (
   ("~/org" t "^[^.#].*\\.\\(org$\\|org_archive$\\)")
)))

and

'(org-agenda-text-search-extra-files (quote (
("~/org/" t "^[^.#].*\\.\\(org$\\|org_archive$\\)")
)))

but after committing a search org-mode tells me that "/org" or "/org/" 
ist not an org-file (which is obviously true and tells me that the 
directory and the regex is not concatenated, but how should it look?)

Many thanks for pointers to the right direction!

Thanks
Martin

--
[1] http://lists.gnu.org/archive/html/emacs-orgmode/2011-09/msg00267.html

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| G. Martin Butz | m.butz@hfk-bremen.de | www.mkblog.org |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-20 15:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-20 15:37 Agenda Search and org-agenda-text-search-extra-files G. Martin Butz

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