help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anything.el for Windows


From: Sébastien Vauban
Subject: Re: Anything.el for Windows
Date: Mon, 11 Feb 2008 16:24:22 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

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---
address@hidden ~>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---
address@hidden ~>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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]