|
|
Up |
|
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Feb 4, 2008 04:03
Hello,
I've read, not so long ago, about the fantastic `anything.el'
package, which opens pretty anything in a few keystrokes.
What's really great about it, is its integration with Locate and
Tracker (under Ubuntu). Unmissable, once tried...
How could I replicate such behaviors under Windows (that I have
to use for work -- can't avoid it yet) where neither one neither
the other exists by default?
Other question: can we impose an order for the presentation of
the different sources? It seems the order specified by my
`anything-sources' variable is not taken into account.
Best regards,
Seb
--
Sébastien Vauban
|
| |
|
| | 26 Comments |
|
  |
Author: Tassilo HornTassilo Horn Date: Feb 4, 2008 12:36
Sébastien Vauban spammotel.com> writes:
Hi Sébastien,
> How could I replicate such behaviors under Windows (that I have to use
> for work -- can't avoid it yet) where neither one neither the other
> exists by default?
I'm not sure, but maybe you can install both with Cygwin [1].
> Other question: can we impose an order for the presentation of the
> different sources? It seems the order specified by my
> `anything-sources' variable is not taken into account.
I think it should use the order in anything-sources with the exception
of asynchronous sources. Of course both locate and tracker are
asynchronous sources, so currently you cannot control the order there.
But there's a TODO in anything.el:
,----[ ~/elisp/anything.el ]
| ;; - results from async sources should appear in the order they are
| ;; specified in anything-sources
`----
|
| Show full article (0.93Kb) |
|
| | no comments |
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Feb 6, 2008 03:27
Hi Tassilo,
>> It is like if the [locate] process was not called or ... ?
>> Though, I've no error messages returned...
>> What could I do to check where the problem comes from?
>
> The first thing I'd do is to ensure locate really gets called.
> Does cygwin have top?
Yes, it is available from `System/procps'. Got it installed.
Works from the shell.
> If yes you can use that to see if M-x anything fires up a
> locate process.
Changed the process to launch with the following:
--8<---------------cut here---------------start------------->8---
(setq anything-c-locate-options '("top"))
--8<---------------cut here---------------end--------------->8---
... but nothing happens. Like if it was not called at all -
while still part of my anything sources.
Seb
|
| Show full article (0.80Kb) |
| no comments |
|
  |
Author: Tassilo HornTassilo Horn Date: Feb 6, 2008 05:49
Sébastien Vauban spammotel.com> writes:
Hi Sébastien,
>> If yes 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.
And please check if locate accepts the options given in
anything-c-locate-options. (locate
--help in a terminal)
Bye,
Tassilo
|
| |
| no comments |
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Feb 11, 2008 07:24
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.
|
| Show full article (3.93Kb) |
| no comments |
|
  |
Author: Tassilo HornTassilo Horn Date: Feb 11, 2008 09:10
Sébastien Vauban spammotel.com> writes:
Hi Sébastien,
> 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.
Strange. Could you please eval the following expression and report back
what happens?
(let ((buf "*locate*"))
(apply 'start-process "locate-process" buf
(append anything-c-locate-options
(list "pattern")))
(pop-to-buffer buf)) ;; <-- Press `C-x C-e' behind the last closing
;; parenthesis.
Bye,
Tassilo
--
No person, no idea, and no religion deserves to be illegal to insult,
not even the Church of Emacs. (Richard M. Stallman)
|
| |
| no comments |
|
  |
Author: Sébastien VaubanSébastien Vauban Date: Feb 12, 2008 03:17
Hi Tassilo,
>> 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.
>
> Strange. Could you please eval the following expression and
> report back what happens?
>
> (let ((buf "*locate*"))
> (apply 'start-process "locate-process" buf
> (append anything-c-locate-options
> (list "pattern")))
> (pop-to-buffer buf)) ;; <-- Press `C-x C-e' behind the last closing
> ;; parenthesis.
Yes, it does create a new buffer, in which the following is to
be found:
|
| Show full article (1.31Kb) |
| no comments |
|
  |
Author: Tassilo HornTassilo Horn Date: Feb 12, 2008 07:47
Sébastien Vauban spammotel.com> writes:
Hi Sébastien,
>> Strange. Could you please eval the following expression and report
>> back what happens?
>>
>> (let ((buf "*locate*"))
>> (apply 'start-process "locate-process" buf
>> (append anything-c-locate-options
>> (list "pattern")))
>> (pop-to-buffer buf)) ;; <-- Press `C-x C-e' behind the last closing
>> ;; parenthesis.
>
> Yes, it does create a new buffer, in which the following is to be
> found:
[...]
Really strange. The code above is a copy of the command
anything-c-source-locate uses to get the candidates list. Did you
redefine it or use an home-brewn locate source in anything-sources?
|
| Show full article (1.05Kb) |
| no comments |
|
  |
|
|
  |
|
|
  |
Author: Tassilo HornTassilo Horn Date: Feb 12, 2008 23:55
Sébastien Vauban spammotel.com> writes:
Hi Sébastien,
>> Anyway, please paste your anything-sources, so that I can check if I
>> can reproduce the bug here.
>
> Yes, sure. Here it is (`C-h v' in GNU Emacs/Windows):
[...]
> Value:
> (((name . "Locate")
> (candidates lambda nil
> (apply 'start-process "locate-process" nil
> (append anything-c-locate-options
> (list anything-pattern))))
> (type . file)
> (requires-pattern . 3)
> (delayed))
[...]
> ((name . "Info Pages")
> (candidates lambda nil
> (if anything-c-info-pages anything-c-info-pages
> (setq anything-c-info-pages
> (save-window-excursion...
|
| Show full article (2.17Kb) |
| no comments |
|
RELATED THREADS |
  |
|
|
|
|
|