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 16:17:56 +0100 Organization: Sebastien Vauban Message-ID: <80y67ka2xn.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> <80vd2ohb1m.fsf@missioncriticalit.com> <14da5ebc-0d52-4812-a532-9842fc839dd2@q18g2000vbm.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 1292859643 2134 80.91.229.12 (20 Dec 2010 15:40:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 15:40:43 +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 16:40:39 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 1PUhqn-0007u5-97 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 16:40:38 +0100 Original-Received: from localhost ([127.0.0.1]:44541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUhql-0000dG-Fd for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 10:40:35 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 88 Injection-Info: mx03.eternal-september.org; posting-host="No+jx9xcG75RY5G9Zb0asg"; logging-data="2736"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX18yQy7o4t0Th7wyVvkJ0ppC" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt) X-Archive: encrypt Cancel-Lock: sha1:wxyGkedK0jTqeLduMZhCQ0mQOsg= sha1:UQaGMM50TlzSN1/Nm+O4Su3fnBs= X-Url: Under construction... Original-Xref: usenet.stanford.edu gnu.emacs.help:183459 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:77704 Archived-At: Hi Elena, Elena wrote: > On Dec 20, 12:40=C2=A0pm, S=C3=A9bastien Vauban wrote: >> >> --8<---------------cut here---------------start------------->8--- >> Debugger entered--Lisp error: (error "Install w3m command in `exec-path'= or set `w3m-command' variable correctly") >> =C2=A0 signal(error ("Install w3m command in `exec-path' or set `w3m-com= mand' variable correctly")) >> =C2=A0 error("Install w3m command in `exec-path' or set `w3m-command' va= riable correctly") >> =C2=A0 (progn (error "Install w3m command in `exec-path' or set `w3m-com= mand' variable correctly")) >> =C2=A0 (if (not (stringp w3m-command)) (progn (error "Install w3m comman= d in `exec-path' or set `w3m-command' variable correctly"))) >> =C2=A0 (when (not (stringp w3m-command)) (error "Install w3m command in = `exec-path' or set `w3m-command' variable correctly")) >> =C2=A0 eval-buffer(#> nil "c:/home/sva/src/emacs-= w3m/w3m.el" nil t) =C2=A0; Reading at buffer position 11512 >> =C2=A0 load-with-code-conversion("c:/home/sva/src/emacs-w3m/w3m.el" "c:/= home/sva/src/emacs-w3m/w3m.el" nil t) >> =C2=A0 orig-require(w3m nil nil) >> =C2=A0 (let ((my/require-depth ...)) (orig-require feature filename noer= ror)) >> =C2=A0 (cond ((member feature features) (message "%sRequiring `%s' (alre= ady loaded)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let= ... ...) (message "%sRequiring `%s'...done" ... feature))) >> =C2=A0 require(w3m) >> =C2=A0 (...) >> =C2=A0 require(anything-config) >> --8<---------------cut here---------------end--------------->8--- > > Yes, that's the same problem. I think a fix would be to add "emacs- w3m" > directory only when "w3m-command" is defined and available, like this > (snippet not tested, I'm busy right now): > > ;; Add emacs-w3m path to load-path only when w3m-command is available. > (when w3m-command > (if (executable-find w3m-command) > (add-to-list 'load-path "/path/to/emacs-w3m") > (warn "Executable %s not found, emacs-w3m package not added to load- > path." w3m-command)) In my case, it is a bit different as the load-path is automatically computed (recursive scan of all folders under the root one)... >> Now, following Thierry's advice, I've git pull'ed `anything' just 10 min= ago, >> 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/.= emacs': >> >> error: No buffer named *anything* >> >> To ensure normal operation, you should investigate and remove the >> cause of the error in your initialization file. =C2=A0Start Emacs with >> the `--debug-init' option to view a complete error backtrace. >> --8<---------------cut here---------------end--------------->8--- > > I've read something about this issue, but I don't remember what the fix w= as. > If I'm not mistaken, creating "*anything*" buffer in advance fixed the > issue. Sorry for not being able to provide definitive answers right now. Maybe it'd be good that to be checked directly in the `anything' package? = The assumption that such a buffer already exists is maybe too strong? Or I do something wrong so that the assumption gets broken? >> PS2- My `require' is wrapped to output debug messages: > > This is a very useful snippet of code! Thanks for sharing. You're welcome. That's how we all can make progress... Best regards, Seb --=20 S=C3=A9bastien Vauban