]> git.eshelyaron.com Git - emacs.git/commitdiff
(nnheader-init-server-buffer): Use with-current-buffer.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 12 Mar 2008 19:07:16 +0000 (19:07 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 12 Mar 2008 19:07:16 +0000 (19:07 +0000)
(nnheader-string-as-multibyte): Remove.

lisp/gnus/ChangeLog
lisp/gnus/nnheader.el

index 91a52e87c409690af1d5b9dd22d8201b2ec72554..026b2779ec68f4d2f75147feaaaf483705c260eb 100644 (file)
@@ -1,5 +1,8 @@
 2008-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * nnheader.el (nnheader-init-server-buffer): Use with-current-buffer.
+       (nnheader-string-as-multibyte): Remove.
+
        * mm-view.el: Use inhibit-read-only.
        (mm-inline-text-html-render-with-w3, mm-inline-message): Use dolist.
        (mm-pkcs7-signed-magic, mm-pkcs7-enveloped-magic): Use just string
index b448d40f104f8923a47341408d535d1106d01f19..7bb573a49509b75dc839a8a62d493dba4b5bb29e 100644 (file)
@@ -572,10 +572,9 @@ the line could be found."
 
 (defun nnheader-init-server-buffer ()
   "Initialize the Gnus-backend communication buffer."
-  (save-excursion
-    (unless (gnus-buffer-live-p nntp-server-buffer)
-      (setq nntp-server-buffer (get-buffer-create " *nntpd*")))
-    (set-buffer nntp-server-buffer)
+  (unless (gnus-buffer-live-p nntp-server-buffer)
+    (setq nntp-server-buffer (get-buffer-create " *nntpd*")))
+  (with-current-buffer nntp-server-buffer
     (mm-enable-multibyte)
     (erase-buffer)
     (kill-all-local-variables)
@@ -1060,7 +1059,6 @@ See `find-file-noselect' for the arguments."
 
 (defalias 'nnheader-cancel-timer 'cancel-timer)
 (defalias 'nnheader-cancel-function-timers 'cancel-function-timers)
-(defalias 'nnheader-string-as-multibyte 'string-as-multibyte)
 
 (defun nnheader-accept-process-output (process)
   (accept-process-output
@@ -1077,5 +1075,5 @@ See `find-file-noselect' for the arguments."
 
 (provide 'nnheader)
 
-;;; arch-tag: a9c4b7d9-52ae-4ec9-b196-dfd93124d202
+;; arch-tag: a9c4b7d9-52ae-4ec9-b196-dfd93124d202
 ;;; nnheader.el ends here