Importing gnus-5.6.44.
[elisp/gnus.git-] / lisp / nngateway.el
index 41dc00a..2139885 100644 (file)
@@ -54,7 +54,7 @@ parameter -- the gateway address.")
            (nngateway-open-server server))
     ;; Rewrite the header.
     (let ((buf (current-buffer)))
-      (with-temp-buffer
+      (nnheader-temp-write nil
        (insert-buffer-substring buf)
        (message-narrow-to-head)
        (funcall nngateway-header-transformation nngateway-address)