[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Agenda Search and org-agenda-text-search-extra-files
From: |
G. Martin Butz |
Subject: |
[O] Agenda Search and org-agenda-text-search-extra-files |
Date: |
Sat, 20 Jul 2013 17:37:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
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 | address@hidden | www.mkblog.org |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Agenda Search and org-agenda-text-search-extra-files,
G. Martin Butz <=