[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5273: 23.1; format-alist encode vs write-region-post-annotation-func
From: |
Stefan Monnier |
Subject: |
bug#5273: 23.1; format-alist encode vs write-region-post-annotation-function |
Date: |
Sun, 10 Jan 2010 00:25:14 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) |
>> Does the patch below help?
> Yep.
Thanks, installed.
> The format-count thing should keep a lid on temp buffers if the to-fn
> errors out (I do that if the contents are no good), though I still
> slightly wonder that it ought to be with-temp-buffer or something.
Not sure what you're referring to, but at least the issue of temp
buffers accumulating if to-fn errors out is indeed a problem, but not
a new one, so the patch doesn't make things worse.
with-temp-buffer is not an option, since the new "temp" buffer (usually)
needs to be returned as the new current-buffer at the end of
the function.
Stefan