X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fpgg-pgp5.el;h=796310bcfdc7b97cb87bf527973a7398d28301e4;hb=c85ff27626350a909ee39474fecac012fec8cd26;hp=a21e244bbd09f845bb01fee40131d2e6f725083c;hpb=b719a6d1d90bb76a5f2cb4072064606b9bc0ca06;p=gnus diff --git a/lisp/pgg-pgp5.el b/lisp/pgg-pgp5.el index a21e244bb..796310bcf 100644 --- a/lisp/pgg-pgp5.el +++ b/lisp/pgg-pgp5.el @@ -1,18 +1,19 @@ ;;; pgg-pgp5.el --- PGP 5.* support for PGG. -;; Copyright (C) 1999, 2000, 2002, 2003, 2004, -;; 2005, 2006 Free Software Foundation, Inc. +;; Copyright (C) 1999-2000, 2002-2011 Free Software Foundation, Inc. ;; Author: Daiki Ueno ;; Created: 1999/11/02 ;; Keywords: PGP, OpenPGP +;; Package: pgg +;; Obsolete-since: 24.1 ;; This file is part of GNU Emacs. -;; GNU Emacs is free software; you can redistribute it and/or modify +;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 2, or (at your option) -;; any later version. +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,9 +21,7 @@ ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301, USA. +;; along with GNU Emacs. If not, see . ;;; Code: @@ -88,8 +87,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (errors-buffer pgg-errors-buffer) (process-connection-type nil) process status exit-status) - (with-current-buffer (let ((default-enable-multibyte-characters t)) - (get-buffer-create output-buffer)) + (with-current-buffer (get-buffer-create output-buffer) (buffer-disable-undo) (erase-buffer)) (when passphrase @@ -133,8 +131,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (defun pgg-pgp5-lookup-key (string &optional type) "Search keys associated with STRING." (let ((args (list "+language=en" "-l" string))) - (with-current-buffer (let ((default-enable-multibyte-characters t)) - (get-buffer-create pgg-output-buffer)) + (with-current-buffer (get-buffer-create pgg-output-buffer) (buffer-disable-undo) (erase-buffer) (apply #'call-process pgg-pgp5-pgpk-program nil t nil args) @@ -157,7 +154,7 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (args (append `("+NoBatchInvalidKeys=off" "-fat" "+batchmode=1" - ,@(if recipients + ,@(if (or recipients pgg-encrypt-for-me) (apply #'append (mapcar (lambda (rcpt) (list "-r" @@ -258,5 +255,4 @@ Bourne shell or its equivalent \(not tcsh) is needed for \"2>\"." (provide 'pgg-pgp5) -;;; arch-tag: 3dbd1073-6b3a-466c-9f55-5c587ffa6d7b ;;; pgg-pgp5.el ends here