aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-07-21 19:08:48 +0000
committerStefan Monnier2005-07-21 19:08:48 +0000
commit7573397b97583f7b4df7ae96f006a4a1138ab461 (patch)
tree0f21719a0b51d8bb3823b97f4dbffb2b03d34017
parentaf5e96cdb45b903722afe09637621db783bcba7f (diff)
downloademacs-7573397b97583f7b4df7ae96f006a4a1138ab461.tar.gz
emacs-7573397b97583f7b4df7ae96f006a4a1138ab461.zip
(mm-uu-copy-to-buffer): Use with-current-buffer.
-rw-r--r--lisp/gnus/ChangeLog7
-rw-r--r--lisp/gnus/mm-uu.el19
2 files changed, 16 insertions, 10 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7a22f9b16db..0e6e4ae283e 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,10 @@
12005-07-21 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * mml.el (mml-minibuffer-read-disposition): Don't use inline by default
4 for text/rtf. Display default in prompt. Pass default for M-n.
5
6 * mm-uu.el (mm-uu-copy-to-buffer): Use with-current-buffer.
7
12005-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> 82005-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 9
3 * gnus-msg.el (gnus-button-mailto): Remove 10 * gnus-msg.el (gnus-button-mailto): Remove
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index ad40ffb4564..5d8f696fe41 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -111,8 +111,8 @@ This can be either \"inline\" or \"attachment\".")
111 "^exit 0$" 111 "^exit 0$"
112 mm-uu-shar-extract) 112 mm-uu-shar-extract)
113 (forward 113 (forward
114;;; Thanks to Edward J. Sabol <sabol@alderaan.gsfc.nasa.gov> and 114 ;; Thanks to Edward J. Sabol <sabol@alderaan.gsfc.nasa.gov> and
115;;; Peter von der Ah\'e <pahe@daimi.au.dk> 115 ;; Peter von der Ah\'e <pahe@daimi.au.dk>
116 "^-+ \\(Start of \\)?Forwarded message" 116 "^-+ \\(Start of \\)?Forwarded message"
117 "^-+ End \\(of \\)?forwarded message" 117 "^-+ End \\(of \\)?forwarded message"
118 mm-uu-forward-extract 118 mm-uu-forward-extract
@@ -186,13 +186,12 @@ To disable dissecting shar codes, for instance, add
186(defun mm-uu-copy-to-buffer (&optional from to) 186(defun mm-uu-copy-to-buffer (&optional from to)
187 "Copy the contents of the current buffer to a fresh buffer. 187 "Copy the contents of the current buffer to a fresh buffer.
188Return that buffer." 188Return that buffer."
189 (save-excursion 189 (let ((obuf (current-buffer))
190 (let ((obuf (current-buffer)) 190 (coding-system
191 (coding-system 191 ;; Might not exist in non-MULE XEmacs
192 ;; Might not exist in non-MULE XEmacs 192 (when (boundp 'buffer-file-coding-system)
193 (when (boundp 'buffer-file-coding-system) 193 buffer-file-coding-system)))
194 buffer-file-coding-system))) 194 (with-current-buffer (generate-new-buffer " *mm-uu*")
195 (set-buffer (generate-new-buffer " *mm-uu*"))
196 (setq buffer-file-coding-system coding-system) 195 (setq buffer-file-coding-system coding-system)
197 (insert-buffer-substring obuf from to) 196 (insert-buffer-substring obuf from to)
198 (current-buffer)))) 197 (current-buffer))))
@@ -496,5 +495,5 @@ Return that buffer."
496 495
497(provide 'mm-uu) 496(provide 'mm-uu)
498 497
499;;; arch-tag: 7db076bf-53db-4320-aa19-ca76a1d2ab2c 498;; arch-tag: 7db076bf-53db-4320-aa19-ca76a1d2ab2c
500;;; mm-uu.el ends here 499;;; mm-uu.el ends here