diff options
| author | Daiki Ueno | 2011-07-01 05:54:35 +0900 |
|---|---|---|
| committer | Daiki Ueno | 2011-07-01 05:54:35 +0900 |
| commit | 9ccd6e90d61cc3e995b1c37d3e6981fa511f6668 (patch) | |
| tree | 1569f30cd5169e22420b8e2b42dc0f3bc4125e7d | |
| parent | b14c0c5545592e86b968405c794c10bc55f95124 (diff) | |
| download | emacs-9ccd6e90d61cc3e995b1c37d3e6981fa511f6668.tar.gz emacs-9ccd6e90d61cc3e995b1c37d3e6981fa511f6668.zip | |
Prevent Gnus from loading PGG.
* mml2015.el (mml2015-use): Don't try to load PGG on Emacs 24, when EPG
is not fully working.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mml2015.el | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 8133964dd41..e66ae09d391 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-06-30 Daiki Ueno <ueno@unixuser.org> | ||
| 2 | |||
| 3 | * mml2015.el (mml2015-use): Don't try to load PGG on Emacs 24, when EPG | ||
| 4 | is not fully working. | ||
| 5 | |||
| 1 | 2011-06-30 Andrew Cohen <cohen@andy.bu.edu> | 6 | 2011-06-30 Andrew Cohen <cohen@andy.bu.edu> |
| 2 | 7 | ||
| 3 | * gnus-art.el (gnus-request-article-this-buffer): Use existing function | 8 | * gnus-art.el (gnus-request-article-this-buffer): Use existing function |
diff --git a/lisp/gnus/mml2015.el b/lisp/gnus/mml2015.el index df106bb6de8..d7070effde5 100644 --- a/lisp/gnus/mml2015.el +++ b/lisp/gnus/mml2015.el | |||
| @@ -55,9 +55,15 @@ | |||
| 55 | 'epg) | 55 | 'epg) |
| 56 | (error)) | 56 | (error)) |
| 57 | (progn | 57 | (progn |
| 58 | (ignore-errors (require 'pgg)) | 58 | (let ((abs-file (locate-library "pgg"))) |
| 59 | (and (fboundp 'pgg-sign-region) | 59 | ;; Don't load PGG if it is marked as obsolete |
| 60 | 'pgg)) | 60 | ;; (Emacs 24). |
| 61 | (when (and abs-file | ||
| 62 | (not (string-match-p "/obsolete/[^/]*\\'" | ||
| 63 | abs-file))) | ||
| 64 | (ignore-errors (require 'pgg)) | ||
| 65 | (and (fboundp 'pgg-sign-region) | ||
| 66 | 'pgg)))) | ||
| 61 | (progn (ignore-errors | 67 | (progn (ignore-errors |
| 62 | (load "mc-toplev")) | 68 | (load "mc-toplev")) |
| 63 | (and (fboundp 'mc-encrypt-generic) | 69 | (and (fboundp 'mc-encrypt-generic) |