bbatsov / prelude

Prelude is an enhanced Emacs 25.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.
https://prelude.emacsredux.com
5.1k stars 1.85k forks source link

"Package assoc is obsolete!" #143

Closed bixuanzju closed 12 years ago

bixuanzju commented 12 years ago

I find in Messages buffer "Package assoc is obsolete!". What does that mean? are there any problems with my config? Thanks!

bbatsov commented 12 years ago

When do you see that message? Is it during initialization or later on?

bixuanzju commented 12 years ago

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

4e6 commented 12 years ago

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
bbatsov commented 12 years ago

It's probably just a deprecation warning in Emacs. I'll investigate it further.

malcook commented 12 years ago

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

bbatsov commented 12 years ago

I don't recall the use of auto-install anywhere in Prelude.

malcook commented 12 years ago

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

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

bbatsov commented 12 years ago

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.

donpicoro commented 12 years ago

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

malcook commented 12 years ago

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

bixuanzju commented 12 years ago

That worked! Thank you @malcook