From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Anything.el for Windows Date: Tue, 19 Feb 2008 15:08:09 +0100 Message-ID: <87lk5h6nue.fsf@member.fsf.org> References: <87ve55gc7n.fsf@mundaneum.com> <87myq6iftr.fsf@mundaneum.com> <87odamcg3i.fsf@mundaneum.com> <87y79n65xz.fsf@mundaneum.com> <87r6ff4ngk.fsf@mundaneum.com> <873arumoua.fsf@mundaneum.com> <87myq2l4w5.fsf@mundaneum.com> <87skzqfvtt.fsf@mundaneum.com> <874pc6e3ne.fsf@mundaneum.com> <87y79icl8l.fsf@mundaneum.com> <874pc573y6.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1203430157 23868 80.91.229.12 (19 Feb 2008 14:09:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2008 14:09:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 15:09:41 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JRTA6-0002hj-US for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2008 15:09:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRT9c-0001or-43 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2008 09:09:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRT97-0001hV-NZ for help-gnu-emacs@gnu.org; Tue, 19 Feb 2008 09:08:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRT96-0001h0-PH for help-gnu-emacs@gnu.org; Tue, 19 Feb 2008 09:08:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRT96-0001gt-FI for help-gnu-emacs@gnu.org; Tue, 19 Feb 2008 09:08:32 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JRT95-0006Gs-SM for help-gnu-emacs@gnu.org; Tue, 19 Feb 2008 09:08:32 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JRT8v-0002BR-JF for help-gnu-emacs@gnu.org; Tue, 19 Feb 2008 14:08:21 +0000 Original-Received: from dslb-084-063-033-217.pools.arcor-ip.net ([84.63.33.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Feb 2008 14:08:21 +0000 Original-Received: from tassilo by dslb-084-063-033-217.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Feb 2008 14:08:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 86 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-033-217.pools.arcor-ip.net User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:vLec4YkQbxOAAlNx8fHO4NTz12k= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51679 Archived-At: Sébastien Vauban writes: Hi Sébastien, > delayed-sources = ((name . Tracker Search) (name . Locate)) > > But I never saw any "Locate" results... Ok, but at least the locate source should be processed. Please eval the following defun and invoke anything. Then go to *Messages* and see if there's an error message of the form Error processing source: ... --8<---------------cut here---------------start------------->8--- (defun anything-process-source (source) "Display matches from SOURCE according to its settings." (let (matches) (if (equal anything-pattern "") (progn (setq matches (anything-get-cached-candidates source)) (if (> (length matches) anything-candidate-number-limit) (setq matches (subseq matches 0 anything-candidate-number-limit)))) (condition-case err-var (let ((item-count 0) (functions (assoc-default 'match source)) exit) (unless functions (setq functions (list (lambda (candidate) (string-match anything-pattern candidate))))) (dolist (function functions) (let (newmatches) (dolist (candidate (anything-get-cached-candidates source)) (when (and (not (member candidate matches)) (funcall function (if (listp candidate) (car candidate) candidate))) (push candidate newmatches) (when anything-candidate-number-limit (incf item-count) (when (= item-count anything-candidate-number-limit) (setq exit t) (return))))) (setq matches (append matches (reverse newmatches))) (if exit (return))))) (invalid-regexp (setq matches nil)) (error (message "Error processing source %s: %s" source err-var)))) (let* ((transformer (assoc-default 'filtered-candidate-transformer source))) (if transformer (setq matches (funcall transformer matches source)))) (when matches (anything-insert-header (assoc-default 'name source)) (dolist (match matches) (when (and anything-enable-digit-shortcuts (not (eq anything-digit-shortcut-count 9))) (move-overlay (nth anything-digit-shortcut-count anything-digit-overlays) (line-beginning-position) (line-beginning-position)) (incf anything-digit-shortcut-count)) (anything-insert-match match 'insert))))) --8<---------------cut here---------------end--------------->8--- BTW: Do other sources that return files work for you, i.e. the file name history source? If not, then the problem might be that a candidate transformer for files doesn't work on windows. Bye, Tassilo -- Some people wear Superman pajamas. Superman wears Chuck Norris pajamas.