unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Sébastien Vauban" <zthjwsqqafhv@spammotel.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Anything.el for Windows
Date: Mon, 11 Feb 2008 16:24:22 +0100	[thread overview]
Message-ID: <874pcfjz2x.fsf@mundaneum.com> (raw)
In-Reply-To: mailman.7036.1202305782.18990.help-gnu-emacs@gnu.org

Hi Tassilo,

>>> You can use that to see if M-x anything fires up a locate
>>> process.
>>
>> Changed the process to launch with the following:
>>
>> (setq anything-c-locate-options '("top"))
>>
>> ... but nothing happens. Like if it was not called at all - while
>> still part of my anything sources.
>
> No, don't touch anything-c-locate-options. You should invoke
> `top' in a terminal and then fire up anything and watch in
> top's output if a locate process is started then.

Stupid from me!  Sorry.

To answer your question, no, `M-x anything' does not fire up a
`locate' process (checked with `top -d 0.1' - *correctly*
working under cygwin). I don't understand why.

On the other hand, `M-x locate' does well launch a `locate'
process, with the following result (as example, for the pattern
`diary') outputted in a buffer:

--8<---------------cut here---------------start------------->8---
  /:
 Matches for diary:

    /cygdrive/c/Media/Download/emacs/site-lisp/.TEMP/diary-outlook.el
    /cygdrive/c/Media/Download/emacs/site-lisp/emacs-w3m-cvs/shimbun/sb-tdiary-ml.el
    /cygdrive/c/Media/Download/emacs/site-lisp/emacs-w3m-cvs/shimbun/sb-tdiary.el
    /cygdrive/c/Media/Download/emacs/site-lisp/gnus-cvs/lisp/gnus-diary.el
    /cygdrive/c/Media/Download/emacs/site-lisp/gnus-cvs/lisp/nndiary.el
    /cygdrive/c/Program Files/Emacs/emacs/lisp/calendar/diary-lib.el
    /cygdrive/c/Program Files/Emacs/emacs/lisp/calendar/diary-lib.elc
    /cygdrive/c/Program Files/Emacs/emacs/lisp/gnus/gnus-diary.el
    /cygdrive/c/Program Files/Emacs/emacs/lisp/gnus/gnus-diary.elc
    /cygdrive/c/Program Files/Emacs/emacs/lisp/gnus/nndiary.el
    /cygdrive/c/Program Files/Emacs/emacs/lisp/gnus/nndiary.elc
    /cygdrive/z/.emacs_backups/!drive_z!home!diary-birthdays.~1~
    /cygdrive/z/.emacs_backups/!drive_z!home!diary.~1~
    /cygdrive/z/.svn/prop-base/diary-birthdays.svn-base
    /cygdrive/z/.svn/prop-base/diary.svn-base
    /cygdrive/z/.svn/text-base/diary-birthdays.svn-base
    /cygdrive/z/.svn/text-base/diary.svn-base
    /cygdrive/z/diary
    /cygdrive/z/diary-birthdays
    /cygdrive/z/Media/Download/emacs/site-lisp/.TEMP/diary-outlook.el
    /cygdrive/z/Media/Download/emacs/site-lisp/emacs-w3m-cvs/shimbun/sb-tdiary-ml.el
    /cygdrive/z/Media/Download/emacs/site-lisp/emacs-w3m-cvs/shimbun/sb-tdiary.el
    /cygdrive/z/Media/Download/emacs/site-lisp/gnus-cvs/lisp/gnus-diary.el
    /cygdrive/z/Media/Download/emacs/site-lisp/gnus-cvs/lisp/nndiary.el
--8<---------------cut here---------------end--------------->8---


> And please check if locate accepts the options given in
> anything-c-locate-options.

Yes, it does support `-i' and `-r', as you can see (extracted
from my bash terminal window):

--8<---------------cut here---------------start------------->8---
[Administrator@CLARK-VBW] ~>locate -i -r pattern
/cygdrive/c/cygwin/lib/perl5/5.8/unicore/lib/gc_sc/PatternS.pl
/cygdrive/c/cygwin/lib/perl5/5.8/unicore/lib/gc_sc/PatternW.pl
/cygdrive/c/Program Files/Microsoft Visual Studio 8/Xml/1033/Snippets/xsd/Attributes/pattern.snippet
/cygdrive/c/Program Files/Microsoft Visual Studio 8/Xml/1033/Snippets/xsd/SimpleTypes/pattern.snippet
/cygdrive/z/.gimp-2.2/patterns
--8<---------------cut here---------------end--------------->8---


> (locate --help in a terminal)

--8<---------------cut here---------------start------------->8---
[Administrator@CLARK-VBW] ~>locate --help
Usage: locate [-d path | --database=path] [-e | -E | --[non-]existing]
      [-i | --ignore-case] [-w | --wholename] [-b | --basename]
      [--limit=N | -l N] [-S | --statistics] [-0 | --null] [-c | --count]
      [-P | -H | --nofollow] [-L | --follow] [-m | --mmap ] [ -s | --stdio ]
      [-A | --all] [-p | --print] [-r | --regex ] [--regextype=TYPE]
      [--max-database-age D] [--version] [--help]
      pattern...
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sébastien Vauban


  parent reply	other threads:[~2008-02-11 15:24 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04 12:03 Anything.el for Windows Sébastien Vauban
2008-02-04 20:36 ` Tassilo Horn
     [not found] ` <mailman.6969.1202157424.18990.help-gnu-emacs@gnu.org>
2008-02-05 16:07   ` Sébastien Vauban
2008-02-05 17:00     ` Tassilo Horn
     [not found]     ` <mailman.7003.1202230839.18990.help-gnu-emacs@gnu.org>
2008-02-06 11:27       ` Sébastien Vauban
2008-02-06 13:49         ` Tassilo Horn
     [not found]         ` <mailman.7036.1202305782.18990.help-gnu-emacs@gnu.org>
2008-02-11 15:24           ` Sébastien Vauban [this message]
2008-02-11 17:10             ` Tassilo Horn
     [not found]             ` <mailman.7291.1202749829.18990.help-gnu-emacs@gnu.org>
2008-02-12 11:17               ` Sébastien Vauban
2008-02-12 15:47                 ` Tassilo Horn
     [not found]                 ` <mailman.7338.1202831286.18990.help-gnu-emacs@gnu.org>
2008-02-12 16:08                   ` Sébastien Vauban
2008-02-13  7:55                     ` Tassilo Horn
     [not found]                     ` <mailman.7363.1202889358.18990.help-gnu-emacs@gnu.org>
2008-02-14 13:08                       ` Sébastien Vauban
2008-02-14 13:57                         ` Tassilo Horn
     [not found]                         ` <mailman.7403.1202997494.18990.help-gnu-emacs@gnu.org>
2008-02-14 14:33                           ` Sébastien Vauban
2008-02-14 14:54                             ` Tassilo Horn
     [not found]                             ` <mailman.7405.1203000915.18990.help-gnu-emacs@gnu.org>
2008-02-15 11:38                               ` Sébastien Vauban
2008-02-15 12:44                                 ` Tassilo Horn
     [not found]                                 ` <mailman.7443.1203079486.18990.help-gnu-emacs@gnu.org>
2008-02-15 13:34                                   ` Sébastien Vauban
2008-02-15 19:47                                     ` Tassilo Horn
     [not found]                                     ` <mailman.7458.1203104854.18990.help-gnu-emacs@gnu.org>
2008-02-18  9:38                                       ` Sébastien Vauban
2008-02-18 13:26                                         ` Tassilo Horn
     [not found]                                         ` <mailman.7571.1203341195.18990.help-gnu-emacs@gnu.org>
2008-02-18 14:32                                           ` Sébastien Vauban
2008-02-18 15:04                                             ` Tassilo Horn
     [not found]                                             ` <mailman.7574.1203347089.18990.help-gnu-emacs@gnu.org>
2008-02-18 15:55                                               ` Sébastien Vauban
2008-02-18 17:07                                                 ` Tassilo Horn
     [not found]                                                 ` <mailman.7582.1203354459.18990.help-gnu-emacs@gnu.org>
2008-02-19  8:20                                                   ` Sébastien Vauban
2008-02-19 14:08                                                     ` Tassilo Horn
     [not found]                                                     ` <mailman.7630.1203430115.18990.help-gnu-emacs@gnu.org>
2008-02-19 15:49                                                       ` Sébastien Vauban
2008-02-19 17:00                                                         ` Tassilo Horn
     [not found]                                                         ` <mailman.7636.1203440454.18990.help-gnu-emacs@gnu.org>
2008-02-20 12:16                                                           ` Sébastien Vauban
2008-02-20 13:33                                                             ` Tassilo Horn

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=874pcfjz2x.fsf@mundaneum.com \
    --to=zthjwsqqafhv@spammotel.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

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