From: morioka Date: Sat, 15 Mar 1997 22:40:50 +0000 (+0000) Subject: (mime-article/view-application/pgp): Use `insert-buffer-substring'. X-Git-Tag: Hokutetsu-Ishikawa-new~118 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=28a96599369094a839af7dfd2628662d91dd9709;p=elisp%2Fsemi.git (mime-article/view-application/pgp): Use `insert-buffer-substring'. --- diff --git a/mime-pgp.el b/mime-pgp.el index e463ab9..69c9c80 100644 --- a/mime-pgp.el +++ b/mime-pgp.el @@ -5,7 +5,7 @@ ;; Author: MORIOKA Tomohiko ;; Created: 1995/12/7 ;; Renamed: 1997/2/27 from tm-pgp.el -;; Version: $Id: mime-pgp.el,v 0.10 1997-03-15 22:27:53 morioka Exp $ +;; Version: $Id: mime-pgp.el,v 0.11 1997-03-15 22:40:50 morioka Exp $ ;; Keywords: PGP, security, MIME, multimedia, mail, news ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces). @@ -53,14 +53,13 @@ (p-win (or (get-buffer-window mime::article/preview-buffer) (get-largest-window))) (new-name (format "%s-%s" (buffer-name) cnum)) + (the-buf (current-buffer)) (mother mime::article/preview-buffer) (mode major-mode) - text-decoder - (str (buffer-substring beg end)) - ) + text-decoder) (set-buffer (get-buffer-create new-name)) (erase-buffer) - (insert str) + (insert-buffer-substring the-buf beg end) (cond ((progn (goto-char (point-min)) (re-search-forward "^-+BEGIN PGP SIGNED MESSAGE-+$" nil t)