[patch] sign, then encrypt with mime-edit-pgp-enclose-buffer

Yoichi NAKAYAMA yoichi at geiin.org
Sun Dec 14 14:35:28 JST 2003


Hi, folks
I think the patch is useful.
May I just apply this? Or, should I introduce some variable to switch behavior?
-- 
Yoichi Nakayama

At Sun, 07 Dec 2003 23:15:26 +0100, Andreas Fuchs wrote:
> 
> --- /home/asf/dl/src/semi-1.14.5/mime-edit.el	Mon Nov 11 06:15:10 2002
> +++ /usr/local/share/emacs/site-lisp/semi/mime-edit.el	Sun Dec  7 22:50:06 2003
> @@ -2566,18 +2566,13 @@
>  		   (match-end 0)
>  		 )))
>  	)
> -    (if beg
> -	(dolist (pgp-processing mime-edit-pgp-processing)
> -	  (case pgp-processing
> -	    (sign
> -	     (mime-edit-enclose-pgp-signed-region 
> -	      beg (point-max))
> -	     )
> -	    (encrypt
> -	     (mime-edit-enclose-pgp-encrypted-region 
> -	      beg (point-max))
> -	     )))
> -      )))
> +    (when beg
> +      (if (member 'sign mime-edit-pgp-processing)
> +	  (mime-edit-enclose-pgp-signed-region 
> +	   beg (point-max)))
> +      (if (member 'encrypt mime-edit-pgp-processing)
> +	  (mime-edit-enclose-pgp-encrypted-region 
> +	   beg (point-max))))))
>  
>  
>  ;;; @ split
-- 
Yoichi Nakayama



More information about the Emacs-mime-en mailing list