emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "G. Martin Butz" <mb@mkblog.org>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Agenda Search and org-agenda-text-search-extra-files
Date: Sat, 20 Jul 2013 17:37:57 +0200	[thread overview]
Message-ID: <51EAAED5.4090500@mkblog.org> (raw)


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:

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

Some Text here. Some more Text here...
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 

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

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

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


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


'(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!


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

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

                 reply	other threads:[~2013-07-20 15:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51EAAED5.4090500@mkblog.org \
    --to=mb@mkblog.org \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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