From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
Philipp Stephani <p.stephani2@gmail.com> writes:<= br>
> Thanks for this great analysis. Given this, it seems that the place
> definition for `buffer-local-value' should be removed from gv.el.<= br>
But hmm - surely there are other functions where `cl-letf' doesn't<= br> exactly restore the previous state - `alist-get', for example:
#+begin_src emacs-lisp
(setq my-alist '((x . 1)))
(ignore (cl-letf (((alist-get 'y my-alist) 17)) my-alist))
my-alist
=3D=3D> ((y) (x . 1))
#+end_src
(admittedly, this is not as serious as the `buffer-local-value' case).<= br> Also, as another, different problematic case, the manual warns about
`point' to be used with `cl-letf'.
So, I wonder if, instead of removing the gv-setter definition for
`buffer-local-value', we should instead add some more text about how
`cl-letf' can have surprising effects to the manual.