X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fnngateway.el;h=74c556c761ce730cde1f7b4aca562703e11e28ff;hb=742b4c70b5a5ed4d320b1bb038daa17e49bed242;hp=2139885af1b56274cc4074a5839633cef622f600;hpb=6db487d2dbbc07a176ccf5a7d27cb3007f239649;p=elisp%2Fgnus.git- diff --git a/lisp/nngateway.el b/lisp/nngateway.el index 2139885..74c556c 100644 --- a/lisp/nngateway.el +++ b/lisp/nngateway.el @@ -1,5 +1,5 @@ ;;; nngateway.el --- posting news via mail gateways -;; Copyright (C) 1996,97,98 Free Software Foundation, Inc. +;; Copyright (C) 1996,97,98,99 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen ;; Keywords: news, mail @@ -25,6 +25,7 @@ ;;; Code: +(eval-when-compile (require 'cl)) (require 'nnoo) (require 'message) @@ -54,7 +55,7 @@ parameter -- the gateway address.") (nngateway-open-server server)) ;; Rewrite the header. (let ((buf (current-buffer))) - (nnheader-temp-write nil + (with-temp-buffer (insert-buffer-substring buf) (message-narrow-to-head) (funcall nngateway-header-transformation nngateway-address)