Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Anything" package requires w3m command...

126 views
Skip to first unread message

Sébastien Vauban

unread,
Dec 3, 2010, 4:01:36 PM12/3/10
to
Hi,

I want to re-use `anything', being such a day-to-day helper, with its
fantastic extra sources.

But, if I don't have W3m installed, I get this:

--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' variable correctly"))
error("Install w3m command in `exec-path' or set `w3m-command' variable correctly")
(progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly"))
(if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))
(when (not (stringp w3m-command)) (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly"))
eval-buffer(#<buffer *load*<10>> nil "c:/home/sva/Downloads/emacs/site-lisp/emacs-w3m/w3m.el" nil t) ; Reading at buffer position 9854
load-with-code-conversion("c:/home/sva/Downloads/emacs/site-lisp/emacs-w3m/w3m.el" "c:/home/sva/Downloads/emacs/site-lisp/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 loaded)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let ... ...) (message "%sRequiring `%s'...done" ... feature)))
require(w3m)
eval-buffer(#<buffer *load*<9>> nil "c:/home/sva/Downloads/emacs/site-lisp/emacs-w3m/w3m-bookmark.el" nil t) ; Reading at buffer position 1328
load-with-code-conversion("c:/home/sva/Downloads/emacs/site-lisp/emacs-w3m/w3m-bookmark.el" "c:/home/sva/Downloads/emacs/site-lisp/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 loaded)" ... 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(#<buffer *load*<8>> nil "c:/home/sva/Downloads/emacs/site-lisp/anything-config/anything-config.el" nil t) ; Reading at buffer position 131103
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 loaded)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let ... ...) (message "%sRequiring `%s'...done" ... feature)))
require(anything-config)
--8<---------------cut here---------------end--------------->8---

OK. The workaround, for me, is just: install Cygwin (I'm now forced on
windows) and w3m from it, and everything will run smoothly.

Though, as my .emacs file is used by other colleagues, I'd like not having to
impose that constraint. I need to have a config that just continues if w3m is
not there.

I've tried everything to understand from which sources this message was
coming. It seems to be from `anything-c-source-locate', but I don't understand
what to do to disable it...

My current config:

--8<---------------cut here---------------start------------->8---
(require 'anything)

;; select anything
(global-set-key (kbd "<f3>") 'anything)

;; (require 'anything-config) ; error!
--8<---------------cut here---------------end--------------->8---

The source that I really, really, really miss -- was it just one -- is
`anything-c-source-locate', and is not in the "base" anything package...

Anyone can help, please?

Best regards,
Seb

--
Sébastien Vauban

Andreas Politz

unread,
Dec 3, 2010, 5:00:06 PM12/3/10
to
Sébastien Vauban <wxhgmq...@spammotel.com> writes:

> Hi,
>
> I want to re-use `anything', being such a day-to-day helper, with its
> fantastic extra sources.
>
> But, if I don't have W3m installed, I get this:
>

> Debugger entered--Lisp error: (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")

[...]


> (if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))

[...]
> require(anything-config)

Have you tried to (setq w3m-command "") ?

-ap

Tim X

unread,
Dec 3, 2010, 5:57:28 PM12/3/10
to
Andreas Politz <pol...@fh-trier.de> writes:

While this may work, I think this is a bug. Emacs has the ability to
determine what is available at load time and should verify support
packages are there rather than just assume. I would report this as a
bug.

Tim

--
tcross (at) rapttech dot com dot au

Sébastien Vauban

unread,
Dec 6, 2010, 6:27:20 AM12/6/10
to
Hi Andreas,

Andreas Politz wrote:


> Sébastien Vauban <wxhgmq...@spammotel.com> writes:
>> I want to re-use `anything', being such a day-to-day helper, with its
>> fantastic extra sources.
>>
>> But, if I don't have W3m installed, I get this:
>>
>> Debugger entered--Lisp error: (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")

>> (if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))

>> require(anything-config)
>
> Have you tried to (setq w3m-command "") ?

That did work... Thanks for the tip which is of great help (until it gets fixed)...

Sébastien Vauban

unread,
Dec 6, 2010, 6:33:25 AM12/6/10
to
Hi Tim,

Tim X wrote:
>> Have you tried to (setq w3m-command "") ?
>

> While this may work, I think this is a bug. Emacs has the ability to
> determine what is available at load time and should verify support
> packages are there rather than just assume. I would report this as a
> bug.

DONE.

Elena

unread,
Dec 6, 2010, 9:40:53 AM12/6/10
to
On Dec 6, 11:27 am, Sébastien Vauban <wxhgmqzgw...@spammotel.com>
wrote:

> Hi Andreas,
>
> Andreas Politz wrote:
> > Sébastien Vauban <wxhgmqzgw...@spammotel.com> writes:
> >> I want to re-use `anything', being such a day-to-day helper, with its
> >> fantastic extra sources.
>
> >> But, if I don't have W3m installed, I get this:
>
> >> Debugger entered--Lisp error: (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")
> >>   (if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))
> >>   require(anything-config)
>
> > Have you tried to (setq w3m-command "") ?
>
> That did work... Thanks for the tip which is of great help (until it gets fixed)...

What configuration are you running? Mine is GNU Emacs 23.2 on Windows
XP.

I'm experiencing the same issue, and (setq w3m-command "") just
changes the error from:

if: Install w3m command in `exec-path' or set `w3m-command' variable
correctly

to:

Error: (file-error "Searching for program" "no such file or directory"
"")

Sébastien Vauban

unread,
Dec 17, 2010, 10:14:04 AM12/17/10
to
Hi Elena,

Elena wrote:
> On Dec 6, 11:27 am, Sébastien Vauban <wxhgmqzgw...@spammotel.com>
> wrote:
>> Hi Andreas,
>>
>> Andreas Politz wrote:
>> > Sébastien Vauban <wxhgmqzgw...@spammotel.com> writes:
>> >> I want to re-use `anything', being such a day-to-day helper, with its
>> >> fantastic extra sources.
>>
>> >> But, if I don't have W3m installed, I get this:
>>
>> >> Debugger entered--Lisp error: (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")
>> >>   (if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))
>> >>   require(anything-config)
>>
>> > Have you tried to (setq w3m-command "") ?
>>
>> That did work... Thanks for the tip which is of great help (until it gets fixed)...
>
> What configuration are you running? Mine is GNU Emacs 23.2 on Windows
> XP.

GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-10-14 on LENNART-69DE564 (patched)


> I'm experiencing the same issue, and (setq w3m-command "") just
> changes the error from:
>
> if: Install w3m command in `exec-path' or set `w3m-command' variable
> correctly
>
> to:
>
> Error: (file-error "Searching for program" "no such file or directory"
> "")

You're right. It does *not* work. I don't know why I have had the impression
it was working...

But, nope, if you don't have W3M installed, you'll get Emacs stopped during
loading the conf file. Very very annoying.

Elena

unread,
Dec 17, 2010, 12:44:41 PM12/17/10
to
On Dec 17, 4:14 pm, Sébastien Vauban <wxhgmqzgw...@spammotel.com>

Removing references to "w3m" from anything-config.el seems a rather
pervasive fix. I'll check whether the maintainer is willing to do it.

However, please note that "anything-config" is not necessary for
"anything" to work. It's just a shared configuration from an user.

Elena

unread,
Dec 17, 2010, 2:17:33 PM12/17/10
to
Thierry Volpiatto, an anything-config maintainer, has quickly and
kindly answered my questions about the issues we are experiencing. He
has asked me to forward his reply on this newsgroup, which I'm doing
right now.

Thierry's reply follows:

Hi Elena,
thanks to report that.

> > Dear maintainers of anything-config,
> >
> > thank you for sharing such package.
> >
> > An user has posted a question on gnu.emacs.help about
> > anything-config.el being dependent on w3m at load time. I've checked
> > anything-config.el and such dependency seems rather pervasive (many
> > occurrences of it, I'm not skilled enough to understand better).
> > Since Emacs users on platforms other than *nix cannot install w3m,
> > they can't load anything-config either. Do you think such dependency
> > could be removed?

There is no dependency on w3m, it is not needed.
I just tried it on windowsXP in a virtualbox with no problem.
I think these user have old sources of anything in their config or old
versions of anything-config.el.
Please try again with emacs -Q and just require anything-config.el.
use last versions from git:
URL git://repo.or.cz/anything-config.git
http://repo.or.cz/r/anything-config.git

However trying that, i just notice that anything-find-files fail if
tramp is not loaded.
I will commit a fix for that in few minutes.

> > Here is the post on gnu.emacs.help:
> >
> > http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/fa290817eadcc487/d5d288dd43fe966d#d5d288dd43fe966d

Could you forward this on emacs-help?
Thanks.

> > Thanks.
> > Elena

Thierry Volpiatto

unread,
Dec 17, 2010, 2:20:39 PM12/17/10
to help-gn...@gnu.org
Elena <egar...@gmail.com> writes:

No, you should use anything-config.el.
If you don't use it you will have a poor experience with anything even
if anything (alone) work.

The correct way to install anything is:

(require 'anything-config)

You need only the files anything.el and anything-config.el.

You can also require anything-match-plugin.el that's all.

--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997


Thierry Volpiatto

unread,
Dec 18, 2010, 1:56:35 AM12/18/10
to help-gn...@gnu.org
Sébastien Vauban <wxhgmq...@spammotel.com>
writes:

> Hi Elena,
>
> Elena wrote:
>> On Dec 6, 11:27 am, Sébastien Vauban <wxhgmqzgw...@spammotel.com>
>> wrote:
>>> Hi Andreas,
>>>
>>> Andreas Politz wrote:
>>> > Sébastien Vauban <wxhgmqzgw...@spammotel.com> writes:
>>> >> I want to re-use `anything', being such a day-to-day helper, with its
>>> >> fantastic extra sources.
>>>
>>> >> But, if I don't have W3m installed, I get this:
>>>
>>> >> Debugger entered--Lisp error: (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")
>>> >>   (if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))
>>> >>   require(anything-config)

There is not such code in anything-config.el or anything.el,
this error message come from somewhere else.

>>> > Have you tried to (setq w3m-command "") ?
>>>
>>> That did work... Thanks for the tip which is of great help (until it gets fixed)...
>>
>> What configuration are you running? Mine is GNU Emacs 23.2 on Windows
>> XP.
>
> GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-10-14 on LENNART-69DE564 (patched)
>
>
>> I'm experiencing the same issue, and (setq w3m-command "") just
>> changes the error from:
>>
>> if: Install w3m command in `exec-path' or set `w3m-command' variable
>> correctly
>>
>> to:
>>
>> Error: (file-error "Searching for program" "no such file or directory"
>> "")
>
> You're right. It does *not* work. I don't know why I have had the impression
> it was working...
>
> But, nope, if you don't have W3M installed, you'll get Emacs stopped during
> loading the conf file. Very very annoying.

Something other than anything-config.el or anything.el is loaded
somewhere in your config, or you use old libraries of anything.

As said to Elena, i can't reproduce this on a windowsXP without
w3m.

Please start with emacs -Q and (require 'anything-config)
No more.

Elena

unread,
Dec 20, 2010, 4:18:58 AM12/20/10
to
On Dec 18, 6:56 am, Thierry Volpiatto <thierry.volpia...@gmail.com>
wrote:

> Please start with emacs -Q and (require 'anything-config)
> No more.

Thank you, Thierry, for helping us. Indeed, the issue is absent in
"emacs -Q".

I've found the offending line to be:

(eval-when-compile (require 'w3m-bookmark nil t))

Both the original poster and I have downloaded the "emacs-w3m"
interface, which contains "w3m-bookmark". Emacs fails to load this
package on Windows, because the external app "w3m" is missing.

I solved the issue by restarting Emacs without the "emacs-w3m"
directory in its load-path.

Sébastien Vauban

unread,
Dec 20, 2010, 7:40:53 AM12/20/10
to
Hi Elena and Thierry,

Thanks Elena for having gone ahead with this thread... and contacted Thierry.

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' variable correctly"))
error("Install w3m command in `exec-path' or set `w3m-command' variable correctly")


(progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly"))
(if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))

(when (not (stringp w3m-command)) (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly"))
eval-buffer(#<buffer *load*<3>> nil "c:/home/sva/src/emacs-w3m/w3m.el" nil 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 loaded)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let ... ...) (message "%sRequiring `%s'...done" ... feature)))
require(w3m)

eval-buffer(#<buffer *load*<2>> nil "c:/home/sva/src/emacs-w3m/w3m-bookmark.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 loaded)" ... 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(#<buffer *load*> nil "c:/home/sva/Downloads/emacs/site-lisp/anything-config/anything-config.el" nil t) ; Reading at buffer position 176537


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 loaded)" ... 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 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. 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 "<f3>") 'my/anything))

(setq anything-command-map-prefix-key "<f4>")

(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 twice"))

(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---

--
Sébastien Vauban

Elena

unread,
Dec 20, 2010, 8:42:40 AM12/20/10
to
On Dec 20, 12:40 pm, Sébastien Vauban <wxhgmqzgw...@spammotel.com>
wrote:

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))

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.

This is a very useful snippet of code! Thanks for sharing.

Sébastien Vauban

unread,
Dec 20, 2010, 10:17:56 AM12/20/10
to
Hi Elena,

Elena wrote:


> On Dec 20, 12:40 pm, Sébastien Vauban wrote:
>>
>> --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' variable correctly"))
>>   error("Install w3m command in `exec-path' or set `w3m-command' variable correctly")
>>   (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly"))
>>   (if (not (stringp w3m-command)) (progn (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly")))
>>   (when (not (stringp w3m-command)) (error "Install w3m command in `exec-path' or set `w3m-command' variable correctly"))
>>   eval-buffer(#<buffer  *load*<3>> nil "c:/home/sva/src/emacs-w3m/w3m.el" nil 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 loaded)" ... feature)) (t (message "%sRequiring `%s'" ... feature) (let ... ...) (message "%sRequiring `%s'...done" ... feature)))
>>   require(w3m)

>>   (...)


>>   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.  Start 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? 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...

Elena

unread,
Dec 20, 2010, 11:24:44 AM12/20/10
to
On Dec 20, 3:17 pm, Sébastien Vauban <wxhgmqzgw...@spammotel.com>
wrote:

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 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.  Start 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?  The
> assumption that such a buffer already exists is maybe too strong?  Or 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.

Thierry Volpiatto

unread,
Dec 20, 2010, 1:32:00 PM12/20/10
to help-gn...@gnu.org
Hi Sébastien,

Sébastien Vauban <wxhgmq...@spammotel.com>
writes:

> 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):
>

Please use:

(require 'anything-config)

nothing else.

Then start adding your personal code progressively and see step by step
what is wrong.

Sébastien Vauban

unread,
Feb 9, 2011, 5:29:08 PM2/9/11
to
Hi Thierry,

Thierry Volpiatto wrote:
> Sébastien Vauban <wxhgmq...@spammotel.com> writes:
>
>> 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):
>
> Please use:
>
> (require 'anything-config)
>
> nothing else.
>
> Then start adding your personal code progressively and see step by step
> what is wrong.

I got a very minimal configuration now...

#+begin_src emacs-lisp
(message "Minimal Emacs...")

(add-to-list 'load-path (expand-file-name "~/src/anything-config"))

(setq debug-on-error t)

;; open anything
(require 'anything-config) ; loads `anything.el' too

;; ;; locate program with its list of arguments
;; (setq anything-c-locate-command "locate -i -r %s")

;; source of candidates for anything
(anything-set-sources
`(

,anything-c-source-locate ; find files everywhere
))

;; allow input of accented characters
(set-input-mode nil nil 1)

(message "Minimal Emacs... Done")
#+end_src

which exhibits the following error:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "No buffer named *anything*")
set-buffer("*anything*")
(save-current-buffer (set-buffer anything-buffer) (setq anything-compiled-sources nil anything-sources sources anything-last-sources-local sources) (anything-log-eval anything-compiled-sources anything-sources))
(with-current-buffer anything-buffer (setq anything-compiled-sources nil anything-sources sources anything-last-sources-local sources) (anything-log-eval anything-compiled-sources anything-sources))
anything-set-sources((((name . "Locate") (candidates . anything-c-locate-init) (type . file) (requires-pattern . 3) (delayed))))
eval-buffer(#<buffer *load*> nil "/cygdrive/c/home/sva/.emacs-minimal.el" nil t) ; Reading at buffer position 432
load-with-code-conversion("/cygdrive/c/home/sva/.emacs-minimal.el" "/cygdrive/c/home/sva/.emacs-minimal.el" nil t)
load("/cygdrive/c/home/sva/.emacs-minimal.el" nil t)
command-line-1(("-l" "~/.emacs-minimal.el"))
command-line()
normal-top-level()
--8<---------------cut here---------------end--------------->8---

Tested with version of Anything git pull'ed this afternoon.

GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-10-14 on LENNART-69DE564 (patched)

Best regards,
Seb

--
Sébastien Vauban

Thierry Volpiatto

unread,
Feb 11, 2011, 2:07:35 AM2/11/11
to help-gn...@gnu.org
Hi Sébastien,

Sébastien Vauban <wxhgmq...@spammotel.com>
writes:

> I got a very minimal configuration now...


>
> #+begin_src emacs-lisp
> (message "Minimal Emacs...")
>
> (add-to-list 'load-path (expand-file-name "~/src/anything-config"))
>
> (setq debug-on-error t)
>
> ;; open anything
> (require 'anything-config) ; loads `anything.el' too
>
> ;; ;; locate program with its list of arguments
> ;; (setq anything-c-locate-command "locate -i -r %s")
>
> ;; source of candidates for anything
> (anything-set-sources
> `(
> ,anything-c-source-locate ; find files everywhere
> ))

Remove this, incorrect and unneeded.
Just use f5-a l or see anything menu.

> ;; allow input of accented characters
> (set-input-mode nil nil 1)

Don't know about your locale setting, but normally you don't need this.


> (message "Minimal Emacs... Done")
> #+end_src

BTW, you can use now the anything mailing list.
You can subscribe here:
https://groups.google.com/group/emacs-anything?hl=en

or use gmane.emacs.anything

0 new messages