Philipp Stephani <p.stephani2@gmail.com> writes:
> * lisp/emacs-lisp/gv.el (buffer-local-value): Remove.
Is it possible to just give an obsolete warning first?
I don't think it's possible in the sense of `make-obsolete' because the expander is not a named function.
It would be possible to use `display-warning' within the body of the setter, but that would only annoy users.
If necessary, we might add additional code to the `setf' macro to warn about this form in particular during byte compilation.