[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21201: 25.0.50; (buffer-modified-p) errors inside cl-letf
From: |
Nicolas Richard |
Subject: |
bug#21201: 25.0.50; (buffer-modified-p) errors inside cl-letf |
Date: |
Fri, 07 Aug 2015 00:50:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Artur Malabarba <bruce.connor.am@gmail.com> writes:
> 2015-08-06 21:07 GMT+01:00 Nicolas Richard <youngfrog@members.fsf.org>:
>> (gv-define-setter buffer-modified-p (flag &optional buf)
>> - `(with-current-buffer ,buf
>> - (set-buffer-modified-p ,flag)))
>> + (if buf
>> + `(with-current-buffer ,buf
>> + (set-buffer-modified-p ,flag))
>> + `(set-buffer-modified-p ,flag)))
>
> Don't know if it's possible, but shouldn't it try to ensure that it's
> in the same buffer as before?
I agree with you, but I don't know how to do that.