Closed bixuanzju closed 12 years ago
When do you see that message? Is it during initialization or later on?
Every time I start it, I then switch to the message buffer to see if everything is working right. So then I see "Package assoc is obsolete" in the buffer...But anyway, so far it has no obvious impact on me. I am just curious...
I can see the same message, it appears in the very end, after initialization.
Prelude is powering up... Be patient, Master _4e6!
Warning: ad-Orig-kill-region called with 3 arguments, but accepts only 2
Loading /home/_4e6/.emacs.d/recentf...done
Cleaning up the recentf list...done (0 removed)
Warning: ad-Orig-kill-region called with 3 arguments, but accepts only 2
[yas] Loaded /home/_4e6/.emacs.d/elpa/yasnippet-20120422/snippets
[yas] Loaded ~/.emacs.d/snippets
[yas] Loaded /home/_4e6/.emacs.d/snippets/
[yas] Reloaded everything....
Loading /home/_4e6/.emacs.d/personal/auctex.el (source)...done
Loading /home/_4e6/.emacs.d/personal/ensime.el (source)...done
Loading /home/_4e6/.emacs.d/personal/jade-mode.el (source)...done
Loading /home/_4e6/.emacs.d/personal/tuareg-mode.el (source)...done
Prelude is ready to do thy bidding, Master _4e6!
Starting Emacs daemon.
Package assoc is obsolete!
When done with this frame, type C-x 5 0
It's probably just a deprecation warning in Emacs. I'll investigate it further.
FWIW: I can reproduce with
emacs --quick --eval "(require 'url)"
using GNU Emacs 24.1.50.2 HEAD in OSX
in my case i found it comes from the 'url package being required by
(require 'auto-install)
which in turn calls
(require 'url)
indeed, the file assoc.el is found in
/usr/local/share/emacs/24.1.50/lisp/obsolete/assoc.el
one way of not getting such warnings is given in http://stackoverflow.com/questions/5468952/how-do-i-hide-emacs-obsolete-variable-warnings
I don't recall the use of auto-install
anywhere in Prelude.
Hi,
I didntt mean to suggest that prelude used auto-install, only give some insight that it must be requiring assoc in some chain of dependencies.
Sleuthing, in your case, prelude winds up requiring the obsolete assoc by way of the traceback below.
The issue appear to be with the fact the some 'obsolete' packages are still required by other emacs packages.
Regards,
Malcolm
Debugger entered--Lisp error: (file-error "Cannot open load file" "assoc")
cl-defsubst-expand (cl-x) (block url-cookie-name (or (and (memq (aref cl-x 0) cl-struct-url-cookie-tags)) (error "%s accessing a non-%s" (quote url-cookie-name) (quote url-cookie))) (aref cl-x 1)) nil] 7] byte-compile cl-byte-compile-compiler-macro "/private/tmp/homebrew-emacs-HEAD-JPm7/lisp/url/url-cookie.el" compiler-macro-file purecopy file-name-nondirectory] 10)*
"archive-contents"] 3]()*
On Tue, May 1, 2012 at 2:54 PM, Bozhidar Batsov < reply@reply.github.com
wrote:
I don't recall the use of
auto-install
anywhere in Prelude.
Reply to this email directly or view it on GitHub: https://github.com/bbatsov/prelude/issues/143#issuecomment-5446502
Yep, I imagined that package.el
might be involved :-) Anyways - nothing we can do about that, Emacs's maintainers will probably update the affected packages soon enough.
Hello, I have no recall of using package.el However the problematic package indeed stop my full .emacs from being loaded completely. I narrow the problem down to the line: (setq org-log-done t org-agenda-files (list "~/org/work.org "~/org/home.org)) If I remove that line it works although I have some other functions that rely on "assoc" but now it is just a warning.
If assoc is no longer there, do we have a replacement for it that you know?
Thanks in advance
I read elsewhere "assoc is now implemented in c code" - http://www.emacswiki.org/emacs-en/assoc-deprecated
Presumably modules which require assoc can simply remove the require statement.
--Malcolm
On Thu, May 3, 2012 at 6:40 PM, donpicoro < reply@reply.github.com
wrote:
Hello, I have no recall of using package.el However the problematic package indeed stop my full .emacs from being loaded completely. I narrow the problem down to the line: (setq org-log-done t org-agenda-files (list "~/org/work.org "~/org/home.org)) If I remove that line it works although I have some other functions that rely on "assoc" but now it is just a warning.
If assoc is no longer there, do we have a replacement for it that you know?
Thanks in advance
Reply to this email directly or view it on GitHub: https://github.com/bbatsov/prelude/issues/143#issuecomment-5501267
That worked! Thank you @malcook
I find in Messages buffer "Package assoc is obsolete!". What does that mean? are there any problems with my config? Thanks!