Skip to content

Instantly share code, notes, and snippets.

@iantruslove
Created June 28, 2017 16:57
Show Gist options
  • Save iantruslove/481f25b70856314d3975e8c8a054f637 to your computer and use it in GitHub Desktop.
Save iantruslove/481f25b70856314d3975e8c8a054f637 to your computer and use it in GitHub Desktop.
Fixing the "‘preceding-sexp’ is an obsolete function (as of 25.1)" emacs startup error
Check out this (sadly unmerged) PR:
https://github.com/hchbaw/eval-sexp-fu.el/pull/3/files
replacing preceding-sexp with elisp--preceding-sexp by danielschranz · Pull Request #3 · hchbaw/eval-sexp-fu.el
This is to avoid the obsolete warning in Emacs 25.1 (see: http://doc.endlessparentheses.com/Fun/preceding-sexp.html)
find your eval-sexp-fu source file, and patch it - there's 2 replacements of preceding-sexp with elisp--preceding-sexp
the file is something like ~/.emacs.d/elpa/eval-sexp-fu-20131230.1351/eval-sexp-fu.el
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment