gabrielelanaro / emacs-for-python

Collection of emacs extensions specifically collected for python development, with workflow guidelines!
http://gabrielelanaro.github.com/emacs-for-python
GNU General Public License v3.0
810 stars 151 forks source link

After update: Package assoc is obsolete! #115

Closed nehalecky closed 11 years ago

nehalecky commented 11 years ago

Recently updated via git pull (had been about a year since I initially cloned), and I am now receiving this message upon loading emacs:

`flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'. [3 times]
Loading /Users/nehalecky/.emacs.d/emacs-for-python/extensions/snippet-helpers.el (source)...done
Loading /Users/nehalecky/.emacs.d/emacs-for-python/epy-init.el (source)...done
`flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
For information about GNU Emacs and the GNU system, type C-h C-a.
Package assoc is obsolete!

Any thoughts are appreciated, thanks!

gabrielelanaro commented 11 years ago

I suspect it's something related to the emacs version. Are you using the 24,3 right? It seems that there are two packages that cointain the macro 'flet', one is yasnippet, the other is auto-complete.

In yasnippet it seems that this is gone in the last version. I think it's gone also for auto-complete, but if I update auto-complete I will break the compatibility with versions < 24.3

Does this message prevent some feature from working?

As a quick-fix you may try to replace all the instances of 'flet' with cl-flet. To do this you can:

1) go in the emacs-for-python directory 2) run

grep -r flet .

3) It will tell you which files have the word flet in them, edit them and replace with cl-flet

./extensions/auto-complete/auto-complete.el:        (flet ((add-attribute (name value &optional append) (add-to-list 'source (cons name value) append)))
./extensions/yasnippet/yasnippet.el:      (flet ((yas/define-snippets
./extensions/yasnippet/yasnippet.el:  (flet ((yas/fom-set-next-fom (fom nextfom)