Subject: Re: bug#21201: 25.0.50; (buffer-modified-p) errors inside cl-letf

From: Noam Postavsky <[email-masked]>
Date: Mon, 27 Aug 2018 20:01:26 -0400

tags 21201 fixed
close 21201 27.1
quit

Noam Postavsky <[email-masked]> writes:

>  (gv-define-setter buffer-modified-p (flag &optional buf)
> -  `(with-current-buffer ,buf
> -     (set-buffer-modified-p ,flag)))
> +  (macroexp-let2 nil buffer `(or ,buf (current-buffer))
> +    `(with-current-buffer ,buffer
> +       (set-buffer-modified-p ,flag))))

Pushed to master.

[1: c8b86362d4]: 2018-08-27 18:54:23 -0400
  Allow setf of buffer-modified-p without argument (Bug#21201)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c8b86362d45a07e0aec0041cade551c3c663ea8c