Suggested by Glenn Morris <rgm@gnu.org>.
+2007-12-28 Reiner Steib <Reiner.Steib@gmx.de>
+
+ * mml-sec.el, sieve-manage.el, smime.el: Simplify loading of
+ password-cache or password. Suggested by Glenn Morris <rgm@gnu.org>.
+
2007-12-21 Teodor Zlatanov <tzz@lifelogs.com>
* imap.el (imap-authenticate): Use current-buffer instead of buffer,
* encrypt.el: Clarify documentation for the new pgg method.
(encrypt-file-alist): Add PGG option.
(encrypt-insert-file-contents, encrypt-write-file-contents): Use PGG
- functionality. Abstract password key and messaging to external functions.
+ functionality. Abstract password key and messaging to external
+ functions.
(encrypt-password-key, encrypt-get-passphrase-if-needed)
- (encrypt-message-method-and-cipher): Add new convenience external functions.
+ (encrypt-message-method-and-cipher): Add new convenience external
+ functions.
(encrypt-pgg-encode-buffer, encrypt-pgg-decode-buffer)
(encrypt-pgg-process-buffer): Add PGG functionality glue.
(eval-when-compile (require 'cl))
-(if (featurep 'xemacs)
- ;; Not all XEmacs versions support `noerror' arg of `require'.
- (or (featurep 'password-cache)
- (load "password-cache" t)
- (require 'password))
- (or (require 'password-cache nil t)
- (require 'password)))
+(if (locate-library "password-cache")
+ (require 'password-cache)
+ (require 'password))
(autoload 'mml2015-sign "mml2015")
(autoload 'mml2015-encrypt "mml2015")
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
-(if (featurep 'xemacs)
- ;; Not all XEmacs versions support `noerror' arg of `require'.
- (or (featurep 'password-cache)
- (load "password-cache" t)
- (require 'password))
- (or (require 'password-cache nil t)
- (require 'password)))
+(if (locate-library "password-cache")
+ (require 'password-cache)
+ (require 'password))
(eval-when-compile
(require 'sasl)
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
(require 'dig)
-(if (featurep 'xemacs)
- ;; Not all XEmacs versions support `noerror' arg of `require'.
- (or (featurep 'password-cache)
- (load "password-cache" t)
- (require 'password))
- (or (require 'password-cache nil t)
- (require 'password)))
+(if (locate-library "password-cache")
+ (require 'password-cache)
+ (require 'password))
(eval-when-compile (require 'cl))