Mercurial > emacs
comparison lisp/gnus/mm-decode.el @ 57243:c5e16264557d
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-575
Merge from gnus--rel--5.10
Patches applied:
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-34
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-35
- miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-36
Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 27 Sep 2004 07:44:44 +0000 |
parents | 353df9943a65 |
children | df80d19d7a2e e23928ac5a97 |
comparison
equal
deleted
inserted
replaced
57242:ffd8d52f457c | 57243:c5e16264557d |
---|---|
621 | 621 |
622 (defun mm-copy-to-buffer () | 622 (defun mm-copy-to-buffer () |
623 "Copy the contents of the current buffer to a fresh buffer." | 623 "Copy the contents of the current buffer to a fresh buffer." |
624 (save-excursion | 624 (save-excursion |
625 (let ((obuf (current-buffer)) | 625 (let ((obuf (current-buffer)) |
626 (multibyte enable-multibyte-characters) | |
627 beg) | 626 beg) |
628 (goto-char (point-min)) | 627 (goto-char (point-min)) |
629 (search-forward-regexp "^\n" nil t) | 628 (search-forward-regexp "^\n" nil t) |
630 (setq beg (point)) | 629 (setq beg (point)) |
631 (set-buffer (generate-new-buffer " *mm*")) | 630 (set-buffer |
632 ;; Preserve the data's unibyteness (for url-insert-file-contents). | 631 ;; Preserve the data's unibyteness (for url-insert-file-contents). |
633 (set-buffer-multibyte multibyte) | 632 (let ((default-enable-multibyte-characters (mm-multibyte-p))) |
633 (generate-new-buffer " *mm*"))) | |
634 (insert-buffer-substring obuf beg) | 634 (insert-buffer-substring obuf beg) |
635 (current-buffer)))) | 635 (current-buffer)))) |
636 | 636 |
637 (defun mm-display-parts (handle &optional no-default) | 637 (defun mm-display-parts (handle &optional no-default) |
638 (if (stringp (car handle)) | 638 (if (stringp (car handle)) |