* Re: "Anything" package requires w3m command... [not found] ` <9e2a7518-2fc7-43dc-8dac-195805205968@k38g2000vbc.googlegroups.com> @ 2010-12-17 15:14 ` Sébastien Vauban 2010-12-17 17:44 ` Elena ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: Sébastien Vauban @ 2010-12-17 15:14 UTC (permalink / raw) To: help-gnu-emacs-mXXj517/zsQ Hi Elena, Elena wrote: > On Dec 6, 11:27 am, Sébastien Vauban <wxhgmqzgw...-geNee64TY+jnSPmRt5Z81g@public.gmane.orgm> > wrote: >> Hi Andreas, >> >> Andreas Politz wrote: >> > Sébastien Vauban <wxhgmqzgw...-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> 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. Best regards, Seb -- Sébastien Vauban ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-17 15:14 ` "Anything" package requires w3m command Sébastien Vauban @ 2010-12-17 17:44 ` Elena 2010-12-17 19:17 ` Elena 2010-12-17 19:20 ` Thierry Volpiatto 2010-12-18 6:56 ` Thierry Volpiatto [not found] ` <mailman.11.1292655456.28168.help-gnu-emacs@gnu.org> 2 siblings, 2 replies; 13+ messages in thread From: Elena @ 2010-12-17 17:44 UTC (permalink / raw) To: help-gnu-emacs On Dec 17, 4:14 pm, Sébastien Vauban <wxhgmqzgw...@spammotel.com> wrote: > 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. > > Best regards, > Seb > > -- > Sébastien Vauban 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. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-17 17:44 ` Elena @ 2010-12-17 19:17 ` Elena 2010-12-17 19:20 ` Thierry Volpiatto 1 sibling, 0 replies; 13+ messages in thread From: Elena @ 2010-12-17 19:17 UTC (permalink / raw) To: help-gnu-emacs 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-17 17:44 ` Elena 2010-12-17 19:17 ` Elena @ 2010-12-17 19:20 ` Thierry Volpiatto 1 sibling, 0 replies; 13+ messages in thread From: Thierry Volpiatto @ 2010-12-17 19:20 UTC (permalink / raw) To: help-gnu-emacs Elena <egarrulo@gmail.com> writes: > On Dec 17, 4:14 pm, Sébastien Vauban <wxhgmqzgw...@spammotel.com> > wrote: >> 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. >> >> Best regards, >> Seb >> >> -- >> Sébastien Vauban > > 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. 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-17 15:14 ` "Anything" package requires w3m command Sébastien Vauban 2010-12-17 17:44 ` Elena @ 2010-12-18 6:56 ` Thierry Volpiatto [not found] ` <mailman.11.1292655456.28168.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 13+ messages in thread From: Thierry Volpiatto @ 2010-12-18 6:56 UTC (permalink / raw) To: help-gnu-emacs Sébastien Vauban <wxhgmqzgwmuf@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. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <mailman.11.1292655456.28168.help-gnu-emacs@gnu.org>]
* Re: "Anything" package requires w3m command... [not found] ` <mailman.11.1292655456.28168.help-gnu-emacs@gnu.org> @ 2010-12-20 9:18 ` Elena 2010-12-20 12:40 ` Sébastien Vauban 0 siblings, 1 reply; 13+ messages in thread From: Elena @ 2010-12-20 9:18 UTC (permalink / raw) To: help-gnu-emacs 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. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-20 9:18 ` Elena @ 2010-12-20 12:40 ` Sébastien Vauban 2010-12-20 13:42 ` Elena ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: Sébastien Vauban @ 2010-12-20 12:40 UTC (permalink / raw) To: help-gnu-emacs-mXXj517/zsQ 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-20 12:40 ` Sébastien Vauban @ 2010-12-20 13:42 ` Elena 2010-12-20 15:17 ` Sébastien Vauban 2010-12-20 18:32 ` Thierry Volpiatto [not found] ` <mailman.4.1292869981.10555.help-gnu-emacs@gnu.org> 2 siblings, 1 reply; 13+ messages in thread From: Elena @ 2010-12-20 13:42 UTC (permalink / raw) To: help-gnu-emacs On Dec 20, 12:40 pm, Sébastien Vauban <wxhgmqzgw...@spammotel.com> wrote: > 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--- 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)) > > 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? 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. > > 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--- This is a very useful snippet of code! Thanks for sharing. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-20 13:42 ` Elena @ 2010-12-20 15:17 ` Sébastien Vauban 2010-12-20 16:24 ` Elena 0 siblings, 1 reply; 13+ messages in thread From: Sébastien Vauban @ 2010-12-20 15:17 UTC (permalink / raw) To: help-gnu-emacs-mXXj517/zsQ 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... Best regards, Seb -- Sébastien Vauban ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-20 15:17 ` Sébastien Vauban @ 2010-12-20 16:24 ` Elena 0 siblings, 0 replies; 13+ messages in thread From: Elena @ 2010-12-20 16:24 UTC (permalink / raw) To: help-gnu-emacs On Dec 20, 3:17 pm, Sébastien Vauban <wxhgmqzgw...@spammotel.com> wrote: > 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)... 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. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2010-12-20 12:40 ` Sébastien Vauban 2010-12-20 13:42 ` Elena @ 2010-12-20 18:32 ` Thierry Volpiatto [not found] ` <mailman.4.1292869981.10555.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 13+ messages in thread From: Thierry Volpiatto @ 2010-12-20 18:32 UTC (permalink / raw) To: help-gnu-emacs Hi Sébastien, Sébastien Vauban <wxhgmqzgwmuf@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. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 ^ permalink raw reply [flat|nested] 13+ messages in thread
[parent not found: <mailman.4.1292869981.10555.help-gnu-emacs@gnu.org>]
* Re: "Anything" package requires w3m command... [not found] ` <mailman.4.1292869981.10555.help-gnu-emacs@gnu.org> @ 2011-02-09 22:29 ` Sébastien Vauban 2011-02-11 7:07 ` Thierry Volpiatto 0 siblings, 1 reply; 13+ messages in thread From: Sébastien Vauban @ 2011-02-09 22:29 UTC (permalink / raw) To: help-gnu-emacs-mXXj517/zsQ Hi Thierry, Thierry Volpiatto wrote: > Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: "Anything" package requires w3m command... 2011-02-09 22:29 ` Sébastien Vauban @ 2011-02-11 7:07 ` Thierry Volpiatto 0 siblings, 0 replies; 13+ messages in thread From: Thierry Volpiatto @ 2011-02-11 7:07 UTC (permalink / raw) To: help-gnu-emacs Hi Sébastien, Sébastien Vauban <wxhgmqzgwmuf@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 -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-02-11 7:07 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <80ipzazi33.fsf@missioncriticalit.com> [not found] ` <87d3picyah.fsf@fh-trier.de> [not found] ` <804oar16qv.fsf@missioncriticalit.com> [not found] ` <9e2a7518-2fc7-43dc-8dac-195805205968@k38g2000vbc.googlegroups.com> 2010-12-17 15:14 ` "Anything" package requires w3m command Sébastien Vauban 2010-12-17 17:44 ` Elena 2010-12-17 19:17 ` Elena 2010-12-17 19:20 ` Thierry Volpiatto 2010-12-18 6:56 ` Thierry Volpiatto [not found] ` <mailman.11.1292655456.28168.help-gnu-emacs@gnu.org> 2010-12-20 9:18 ` Elena 2010-12-20 12:40 ` Sébastien Vauban 2010-12-20 13:42 ` Elena 2010-12-20 15:17 ` Sébastien Vauban 2010-12-20 16:24 ` Elena 2010-12-20 18:32 ` Thierry Volpiatto [not found] ` <mailman.4.1292869981.10555.help-gnu-emacs@gnu.org> 2011-02-09 22:29 ` Sébastien Vauban 2011-02-11 7:07 ` Thierry Volpiatto
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).