mhayashi1120 / Emacs-erefactor

Emacs-Lisp refactoring utilities
26 stars 6 forks source link

obsolete function ‘preceding-sexp’ #5

Open notuntoward opened 4 years ago

notuntoward commented 4 years ago

The version of erefactor that I get from elpa causes this warning message every time I start emacs 27.1:

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

Looks like it needs to be updated.

PhilHudson commented 2 years ago

Bump bump bump

HarmVanDerVegt commented 1 year ago

You can fix this locally by replacing the preceding-sexp call with elisp--preceding-sexp in your local copy of erefactor.

  1. Go to ~/.emacs.d/elpa/erefactor<date>/erefactor.el.
  2. Replace the statement.
  3. M-x byte-compile-file, ignore the warnings that pop up.
  4. Test by opening a fresh emacs.
PhilHudson commented 1 year ago

Or see the safer fix in my pull request #6