Mercurial > emacs
changeset 92775:d9f180e8f9ac
(nnheader-init-server-buffer): Use with-current-buffer.
(nnheader-string-as-multibyte): Remove.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 12 Mar 2008 19:07:16 +0000 |
parents | 3035f32851cf |
children | cb44c6d29ee0 |
files | lisp/gnus/ChangeLog lisp/gnus/nnheader.el |
diffstat | 2 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog Wed Mar 12 19:04:56 2008 +0000 +++ b/lisp/gnus/ChangeLog Wed Mar 12 19:07:16 2008 +0000 @@ -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
--- a/lisp/gnus/nnheader.el Wed Mar 12 19:04:56 2008 +0000 +++ b/lisp/gnus/nnheader.el Wed Mar 12 19:07:16 2008 +0000 @@ -572,10 +572,9 @@ (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 @@ (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 @@ (provide 'nnheader) -;;; arch-tag: a9c4b7d9-52ae-4ec9-b196-dfd93124d202 +;; arch-tag: a9c4b7d9-52ae-4ec9-b196-dfd93124d202 ;;; nnheader.el ends here