From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?S=E9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Re: Anything.el for Windows Date: Tue, 12 Feb 2008 17:08:33 +0100 Organization: Sebastien Vauban Message-ID: <87odamcg3i.fsf@mundaneum.com> References: <87ve55gc7n.fsf@mundaneum.com> <87ir138k0h.fsf@mundaneum.com> <87r6fqpbno.fsf@mundaneum.com> <874pcfjz2x.fsf@mundaneum.com> <87myq6iftr.fsf@mundaneum.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1202834487 12052 80.91.229.12 (12 Feb 2008 16:41:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2008 16:41:27 +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 12 17:41:48 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 1JOyBx-0003XV-2i for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2008 17:41:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOyBT-0004D8-Ka for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2008 11:40:39 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!eweka.nl!hq-usenetpeers.eweka.nl!proxad.net!feeder1-2.proxad.net!nerim.net!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Www-site: Under construction... User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:27kyG228x+QXkMYZoavc+ljNcJI= Original-Lines: 150 Original-NNTP-Posting-Date: 12 Feb 2008 16:08:33 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1202832513 reader0.news.be.easynet.net 1585 [::ffff:81.188.7.152]:57957 Original-X-Complaints-To: abuse@be.easynet.net Original-Xref: shelby.stanford.edu gnu.emacs.help:156079 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:51457 Archived-At: Hi Tassilo, >>> 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? Nope. See the relevant extract from my `.emacs' file: --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 sou= rces (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--- > 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): --8<---------------cut here---------------start------------->8--- anything-sources is a variable defined in `anything.el'. Its value is shown below. Documentation: The source of candidates for anything. [...] Value:=20 (((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 . "Tracker Search") (candidates lambda nil (start-process "tracker-search-process" nil "tracker-search" = anything-pattern)) (type . file) (requires-pattern . 3) (delayed)) ((name . "Bookmarks") (init lambda nil (require 'bookmark)) (candidates . bookmark-all-names) (action ("Jump to Bookmark" . bookmark-jump))) ((name . "File Name History") (candidates . file-name-history) (match anything-c-match-on-file-name anything-c-match-on-directory-name) (type . file)) ((name . "Buffers") (candidates . anything-c-buffer-list) (volatile) (type . buffer)) ((name . "Manual Pages") (candidates lambda nil (if anything-c-man-pages anything-c-man-pages (setq anything-c-man-pages (condition-case nil (progn (require 'woman) (woman-file-name "") (sort (mapcar 'car woman-topic-all-completions) 'string-lessp)) (error nil))))) (action ("Show with Woman" . woman)) (requires-pattern . 2)) ((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))) --8<---------------cut here---------------end--------------->8--- Thanks again for your help!!! Best regards, Seb --=20 S=E9bastien=A0Vauban