From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Re: "Anything" package requires w3m command... Date: Mon, 20 Dec 2010 13:40:53 +0100 Organization: Sebastien Vauban Message-ID: <80vd2ohb1m.fsf@missioncriticalit.com> References: <80ipzazi33.fsf@missioncriticalit.com> <87d3picyah.fsf@fh-trier.de> <804oar16qv.fsf@missioncriticalit.com> <9e2a7518-2fc7-43dc-8dac-195805205968@k38g2000vbc.googlegroups.com> <80oc8ksa83.fsf@missioncriticalit.com> <0cc97c59-70f0-4b7a-8508-3e943544e73b@y3g2000vbm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292852458 28894 80.91.229.12 (20 Dec 2010 13:40:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 13:40:58 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Dec 20 14:40:53 2010 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.69) (envelope-from ) id 1PUfyl-0005QK-08 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 14:40:52 +0100 Original-Received: from localhost ([127.0.0.1]:37350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUfyi-0001Ia-GP for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 08:40:40 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 194 Injection-Info: mx03.eternal-september.org; posting-host="No+jx9xcG75RY5G9Zb0asg"; logging-data="28089"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX1/e8lgW4pOWGQDYJn7zh7Rg" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:GAh/VNwlqYUaHDfzLWzKy1zEFAk= sha1:ZTCKayCdoAp+2gIxxcfoq1EWlnA= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:183447 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:77696 Archived-At: Hi Elena and Thierry, Thanks Elena for having gone ahead with this thread... and contacted Thierr= y. Regarding `w3m-bookmark', I indeed saw such messages in the past. It must be related to the problem. --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (error "Install w3m command in `exec-path' or= set `w3m-command' variable correctly") signal(error ("Install w3m command in `exec-path' or set `w3m-command' va= riable correctly")) error("Install w3m command in `exec-path' or set `w3m-command' variable c= orrectly") (progn (error "Install w3m command in `exec-path' or set `w3m-command' va= riable correctly")) (if (not (stringp w3m-command)) (progn (error "Install w3m command in `ex= ec-path' or set `w3m-command' variable correctly"))) (when (not (stringp w3m-command)) (error "Install w3m command in `exec-pa= th' or set `w3m-command' variable correctly")) eval-buffer(#> nil "c:/home/sva/src/emacs-w3m/w3m.el" n= il t) ; Reading at buffer position 11512 load-with-code-conversion("c:/home/sva/src/emacs-w3m/w3m.el" "c:/home/sva= /src/emacs-w3m/w3m.el" nil t) orig-require(w3m nil nil) (let ((my/require-depth ...)) (orig-require feature filename noerror)) (cond ((member feature features) (message "%sRequiring `%s' (already load= ed)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let ... ...= ) (message "%sRequiring `%s'...done" ... feature))) require(w3m) eval-buffer(#> nil "c:/home/sva/src/emacs-w3m/w3m-bookm= ark.el" nil t) ; Reading at buffer position 1346 load-with-code-conversion("c:/home/sva/src/emacs-w3m/w3m-bookmark.el" "c:= /home/sva/src/emacs-w3m/w3m-bookmark.el" t t) orig-require(w3m-bookmark nil t) (let ((my/require-depth ...)) (orig-require feature filename noerror)) (cond ((member feature features) (message "%sRequiring `%s' (already load= ed)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let ... ...= ) (message "%sRequiring `%s'...done" ... feature))) require(w3m-bookmark nil t) (progn (require (quote w3m-bookmark) nil t)) (eval-when-compile (require (quote w3m-bookmark) nil t)) eval-buffer(# nil "c:/home/sva/Downloads/emacs/site-lisp/= anything-config/anything-config.el" nil t) ; Reading at buffer position 17= 6537 load-with-code-conversion("c:/home/sva/Downloads/emacs/site-lisp/anything= -config/anything-config.el" "c:/home/sva/Downloads/emacs/site-lisp/anything= -config/anything-config.el" nil t) orig-require(anything-config nil nil) (let ((my/require-depth ...)) (orig-require feature filename noerror)) (cond ((member feature features) (message "%sRequiring `%s' (already load= ed)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let ... ...= ) (message "%sRequiring `%s'...done" ... feature))) require(anything-config) --8<---------------cut here---------------end--------------->8--- Now, following Thierry's advice, I've git pull'ed `anything' just 10 min ag= o, and tried to relaunch my Emacs. I now have a different error (maybe hiding the above one, from a previous run): --8<---------------cut here---------------start------------->8--- Warning (initialization): An error occurred while loading `c:/home/sva/.ema= cs': error: No buffer named *anything* To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. --8<---------------cut here---------------end--------------->8--- and the following backtrace: with the following lines in my `.emacs': --8<---------------cut here---------------start------------->8--- ;; open anything (when (require 'anything) (defun my/anything () (interactive) (anything :sources '( anything-c-source-buffers anything-c-source-file-name-history ;; anything-c-source-info-pages ; get rid of messages echo'ed in ; minibuffer prompt anything-c-source-info-elisp anything-c-source-man-pages anything-c-source-locate anything-c-source-emacs-commands ) :buffer " *my/anything*")) ;; select anything (global-set-key (kbd "") 'my/anything)) (setq anything-command-map-prefix-key "") (when (require 'anything-config) (require 'anything-c-yasnippet) ;; source of candidates for anything (anything-set-sources `( ,anything-c-source-buffers ,anything-c-source-file-name-history ,anything-c-source-files-in-current-dir ,anything-c-source-man-pages ,anything-c-source-recentf ,anything-c-source-bookmarks ,anything-c-source-locate ; find files everywhere ,anything-c-source-emacs-functions ,anything-c-source-info-cl ,anything-c-source-info-elisp )) ;; do not show more candidates than this limit from individual ;; sources (setq anything-candidate-number-limit 999) ;; the user has to be idle for this many seconds, before candidates ;; from *delayed* sources are collected (useful for sources involving ;; heavy operations, so that candidates from the source are not ;; retrieved unnecessarily if the user keeps typing) (setq anything-idle-delay 0.9) ; 1.3 works nicely ;; the user has to be idle for this many seconds, before ALL ;; candidates are collected (also effective for *non-delayed* ;; sources) (setq anything-input-idle-delay 0.4) ; 0.6 works nicely ;; uses the current window to show the candidates (setq anything-samewindow t) ;; candidates separator of `multiline' source (setq anything-candidate-separator (propertize "--separator-------------------------------" 'face 'separator-face)) ;; suppress displaying sources which are out of screen at first (setq anything-quick-update t) ;; don't save history information to file (remove-hook 'kill-emacs-hook 'anything-c-adaptive-save-history)) --8<---------------cut here---------------end--------------->8--- Do you have an idea why this is occurring? Best regards, Seb PS- By far, what I really want `anything' for is the `locate' stuff... PS2- My `require' is wrapped to output debug messages: --8<---------------cut here---------------start------------->8--- ;; REPLACES ORIGINAL in `C source code' (dumped) ;; redefine require to leave a trace of packages being loaded (if (not (fboundp 'orig-require)) (fset 'orig-require (symbol-function 'require)) (message "The code to redefine `require' should not be loaded tw= ice")) (defvar my/require-depth 0) (defun require (feature &optional filename noerror) "Leave a trace of packages being loaded." (cond ((member feature features) (message "%sRequiring `%s' (already loaded)" (concat (make-string (* 2 my/require-depth) ? ) "+-> ") feature)) (t (message "%sRequiring `%s'" (concat (make-string (* 2 my/require-depth) ? ) "+-> ") feature) (let ((my/require-depth (+ 1 my/require-depth))) (orig-require feature filename noerror)) (message "%sRequiring `%s'...done" (concat (make-string (* 2 my/require-depth) ? ) "+-> ") feature)))))) --8<---------------cut here---------------end--------------->8--- --=20 S=C3=A9bastien Vauban