From mboxrd@z Thu Jan 1 00:00:00 1970 From: "G. Martin Butz" Subject: Agenda Search and org-agenda-text-search-extra-files Date: Sat, 20 Jul 2013 17:37:57 +0200 Message-ID: <51EAAED5.4090500@mkblog.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0ZEQ-0000Je-S0 for emacs-orgmode@gnu.org; Sat, 20 Jul 2013 11:38:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V0ZEO-0001Mi-Vo for emacs-orgmode@gnu.org; Sat, 20 Jul 2013 11:38:02 -0400 Received: from vwp11191.webpack.hosteurope.de ([91.250.68.65]:44065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V0ZEO-0001ML-Jn for emacs-orgmode@gnu.org; Sat, 20 Jul 2013 11:38:00 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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 "~/" 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 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~