From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: Re: "Anything" package requires w3m command... Date: Mon, 20 Dec 2010 08:24:44 -0800 (PST) Organization: http://groups.google.com Message-ID: 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> <80y67ka2xn.fsf@missioncriticalit.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: dough.gmane.org 1292863252 21480 80.91.229.12 (20 Dec 2010 16:40:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 16:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 20 17:40:48 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 1PUin1-0005Ll-9L for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 17:40:47 +0100 Original-Received: from localhost ([127.0.0.1]:34205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUin1-0000qM-1D for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 11:40:47 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!j3g2000vbi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 100 Original-NNTP-Posting-Host: 89.96.190.244 Original-X-Trace: posting.google.com 1292862284 31934 127.0.0.1 (20 Dec 2010 16:24:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 20 Dec 2010 16:24:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j3g2000vbi.googlegroups.com; posting-host=89.96.190.244; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:183461 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:77707 Archived-At: On Dec 20, 3:17=A0pm, S=E9bastien Vauban wrote: > Hi Elena, > > > > Elena wrote: > > On Dec 20, 12:40=A0pm, S=E9bastien Vauban wrote: > > >> --8<---------------cut here---------------start------------->8--- > >> Debugger entered--Lisp error: (error "Install w3m command in `exec-pat= h' or set `w3m-command' variable correctly") > >> =A0 signal(error ("Install w3m command in `exec-path' or set `w3m-comm= and' variable correctly")) > >> =A0 error("Install w3m command in `exec-path' or set `w3m-command' var= iable correctly") > >> =A0 (progn (error "Install w3m command in `exec-path' or set `w3m-comm= and' variable correctly")) > >> =A0 (if (not (stringp w3m-command)) (progn (error "Install w3m command= in `exec-path' or set `w3m-command' variable correctly"))) > >> =A0 (when (not (stringp w3m-command)) (error "Install w3m command in `= exec-path' or set `w3m-command' variable correctly")) > >> =A0 eval-buffer(#> nil "c:/home/sva/src/emacs-w3m/= w3m.el" nil t) =A0; Reading at buffer position 11512 > >> =A0 load-with-code-conversion("c:/home/sva/src/emacs-w3m/w3m.el" "c:/h= ome/sva/src/emacs-w3m/w3m.el" nil t) > >> =A0 orig-require(w3m nil nil) > >> =A0 (let ((my/require-depth ...)) (orig-require feature filename noerr= or)) > >> =A0 (cond ((member feature features) (message "%sRequiring `%s' (alrea= dy loaded)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let = ... ...) (message "%sRequiring `%s'...done" ... feature))) > >> =A0 require(w3m) > >> =A0 (...) > >> =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 > > =A0 =A0(if (executable-find w3m-command) > > =A0 =A0 =A0 =A0 =A0 =A0(add-to-list 'load-path "/path/to/emacs-w3m") > > =A0 =A0 =A0 =A0 =A0 =A0(warn "Executable %s not found, emacs-w3m packag= e not added to load- > > path." w3m-command)) > > In my case, it is a bit different as the load-path is automatically compu= ted > (recursive scan of all folders under the root one)... Just like mine is. However, I've put "troublesome" packages into a directory at the same level as my auto-scanned root directory (that is: not a child of the latter). I've done that with other folders which are included on a case basis: OS specific packages, "backports" from newer versions of Emacs, etc. Moreover, I've tweaked the procedure which adds directories to leave out those which end with ".BAK" or ".OLD". That way it's easy to just rename a directory and have it left out. I'll post my tweak when I have time. > > > > >> Now, following Thierry's advice, I've git pull'ed `anything' just 10 m= in ago, > >> and tried to relaunch my Emacs. > > >> I now have a different error (maybe hiding the above one, from a previ= ous > >> 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. =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= was. > > 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?= =A0The > assumption that such a buffer already exists is maybe too strong? =A0Or I= do > something wrong so that the assumption gets broken? I don't remember/know whether it is an issue of anything.el. Maybe it's a contributed package? Yes, contacting the maintainer is the right solution.