hchbaw / eval-sexp-fu.el

Tiny functionality enhancements for evaluating sexps

Home Page:https://github.com/hchbaw/eval-sexp-fu.el/wiki?http://wiki.github.com/hchbaw/eval-sexp-fu.el

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

preceding-sexp is deprecated in emacs 25

shlomiv opened this issue · comments

Hey, its not yet a bug, but you should probably move away from preceding-sexp for emacs 25.

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

Add an if condition to use different version function?

(if (version< emacs-version "24")
      'preceding-sexp
    'elisp--preceding-sexp)

Now Emacs 25.1 is released. I think really should update now.

It could be resolved by #3 and #5, so please reopen this issue if it does not work.

Anyway thank you very much for your reports.