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: Tassilo Horn
Subject: Re: Anything.el for Windows
Date: Thu, 14 Feb 2008 14:57:58 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

Sébastien Vauban <zthjwsqqafhv@spammotel.com> writes:

Hi Sébastien,

[...]

>> Is it possible that you use an outdated version of
>> anything-config.el?
>
> Not really. Here are the differences between my original
> anything-sources.el and the latest one on [2].

[...]

> From what I understand, nothing that would explain my problem?

Correct.

> I've git'ted your file as well (2nd try), but my problem still stays!?

Ok.

> FYI, here's my `anything-sources' with the latest "sources" file:
>
> 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
>                         (save-excursion
>                           (require 'info)
>                           (Info-find-node "dir" "top")
>                           (goto-char
>                            (point-min))
>                           (let
>                               ((info-topic-regexp "\\* +\\([^:]+: 
> ([^)]+)[^.]*\\)\\.")
>                                topics)
>                             (while
>                                 (re-search-forward info-topic-regexp nil t)
>                               (add-to-list 'topics
>                                            (match-string-no-properties 1)))
>                             (goto-char
>                              (point-min))
>                             (Info-exit)
>                             topics))))))
>   (action
>    ("Show with Info" lambda
>     (node-str)
>     (info
>      (replace-regexp-in-string "^[^:]+: " "" node-str))))
>   (requires-pattern . 2)))
>
> The problem seems to stay, even with the updated versions of both
> `anything.el' and `anything-sources.el'.

Indeed, it's the same error...

> Can you help me?

Are those the only settings that you have?

--8<---------------cut here---------------start------------->8---
;; open anything
(GNUEmacs
    (when (require 'anything-config)  ; loads `anything.el' too

        ;; source of candidates for anything
        (setq anything-sources
              (list anything-c-source-locate
                    anything-c-source-tracker-search
                    anything-c-source-bookmarks          ;; 1
                    anything-c-source-file-name-history  ;; 2
                    anything-c-source-buffers            ;; 3
                    anything-c-source-man-pages          ;; 4
                    anything-c-source-info-pages         ;; 5
                    ))

        ;; do not show more candidates than this limit from inidividual sources
        (setq anything-candidate-number-limit 10)

        ;; make anything minibuffer better input latency
        (defadvice anything-check-minibuffer-input (around sit-for activate)
          (if (sit-for anything-idle-delay t)
              ad-do-it))

        ;; select anything
        (global-set-key [(f3)] 'anything)))
--8<---------------cut here---------------end--------------->8---

What is `GNUEmacs'?

Anyway, to me it looks all right.  I suspect you have a broken
anything-c-source-info-pages lying around somewhere.  Because this is
defvar'ed the broken value won't be overwritten when requiring
anything-config.  What does `C-h v anything-c-source-info-pages' say?

Bye,
Tassilo
-- 
Windows: So easy to admin, even a worm can do it.





reply via email to

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