mhayashi1120 / Emacs-erefactor

Emacs-Lisp refactoring utilities
26 stars 6 forks source link

Fix preceding-sexp depreaction warning in Emacs 25 #2

Open Archenoth opened 8 years ago

Archenoth commented 8 years ago

As of this commit, preceding-sexp is deprecated in Emacs in favor of a new name "elisp--preceding-sexp".

This means that every time you start Emacs with erefactor configuration, you get this nifty message:

‘preceding-sexp’ is an obsolete function (as of 25.1); use ‘elisp--preceding-sexp’ instead.

This pull request updates all calls to preceding-sexp to elisp--preceding-sexp, and adds an alias to it for older versions of Emacs. (Since the rename is reasonably new)

Chandlercjy commented 5 years ago

Thank you! Hope this pull request will be accepted as soon as possible!

notuntoward commented 4 years ago

@mhayashi1120, it would be great to see @Archenoth's package merged. I just had the same problem and this would have fixed it.