branch: externals/bufferlo commit e86169ee5d6dff92103ae03b3bf702c145aeffc0 Author: Florian Rommel <m...@florommel.de> Commit: Florian Rommel <m...@florommel.de>
Make bufferlo--with-temp-buffer safer --- bufferlo.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bufferlo.el b/bufferlo.el index 24684d5e00..08ec7d8612 100644 --- a/bufferlo.el +++ b/bufferlo.el @@ -1035,10 +1035,10 @@ string, FACE is the face for STR." ;; NOTE: Undocumented in `make-frame' that the current buffer cannot be ;; conventionally hidden (space as first character). `with-temp-buffer' -;; doesn't work either in this context. +;; doesn't work either in this context (for the same reason). (defmacro bufferlo--with-temp-buffer (&rest body) - "Execute BODY with \"*bufferlo tenp buffer*\" current buffer." - (let ((buff-name "*bufferlo temp buffer*")) + "Execute BODY with \"*bufferlo temp buffer*\" current buffer." + (let ((buff-name (generate-new-buffer-name "*bufferlo temp buffer*"))) (with-current-buffer (get-buffer-create buff-name t) (unwind-protect `(progn ,@body)