[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/epa.el,v
From: |
Michael W. Olson |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/epa.el,v |
Date: |
Tue, 12 Feb 2008 01:24:21 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Michael W. Olson <mwolson> 08/02/12 01:24:20
Index: lisp/epa.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/epa.el,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- lisp/epa.el 10 Feb 2008 21:59:27 -0000 1.5
+++ lisp/epa.el 12 Feb 2008 01:24:20 -0000 1.6
@@ -45,10 +45,9 @@
:type 'integer
:group 'epa)
-(defcustom epa-global-minor-modes '(epa-dired-mode
- epa-file-mode
+(defcustom epa-global-minor-modes '(epa-global-dired-mode
epa-global-mail-mode
- epa-menu-mode)
+ epa-file-mode)
"Globally defined minor modes to hook into other modes."
:type '(repeat symbol)
:group 'epa)
@@ -240,7 +239,7 @@
(defvar epa-menu nil)
(defconst epa-menu-items
- '("EasyPG Assistant"
+ '("Encryption/Decryption"
("Decrypt"
["File" epa-decrypt-file
:help "Decrypt a file"]
@@ -1220,28 +1219,23 @@
;; (make-obsolete 'epa-sign-keys "Do not use.")
;;;###autoload
-(define-minor-mode epa-menu-mode
- "Minor mode to hook EasyPG into the menu-bar."
- :global t :init-value nil :group 'epa :version "23.1"
- (unless epa-menu
- (easy-menu-define epa-menu nil "EasyPG Assistant global menu"
- epa-menu-items))
- (easy-menu-remove-item nil '("Tools") "EasyPG Assistant")
- (if epa-menu-mode
- (easy-menu-add-item nil '("Tools") epa-menu)))
-
-;;;###autoload
(define-minor-mode epa-mode
"Minor mode to hook EasyPG into various modes.
See `epa-global-minor-modes'."
:global t :init-value nil :group 'epa :version "23.1"
+ (unless epa-menu
+ (easy-menu-define epa-menu nil "EasyPG Assistant global menu"
+ epa-menu-items))
+ (easy-menu-remove-item nil '("Tools") "Encryption/Decryption")
+ (if epa-mode
+ (easy-menu-add-item nil '("Tools") epa-menu))
(let ((modes epa-global-minor-modes)
symbol)
(while modes
(setq symbol (car modes))
(if (and symbol
(fboundp symbol))
- (funcall symbol (if epa-mode 1 0))
+ (funcall symbol epa-mode)
(message "`%S' not found" (car modes)))
(setq modes (cdr modes)))))
- [Emacs-diffs] Changes to emacs/lisp/epa.el,v, Miles Bader, 2008/02/08
- [Emacs-diffs] Changes to emacs/lisp/epa.el,v, Dan Nicolaescu, 2008/02/09
- [Emacs-diffs] Changes to emacs/lisp/epa.el,v, Michael W. Olson, 2008/02/10
- [Emacs-diffs] Changes to emacs/lisp/epa.el,v, Michael W. Olson, 2008/02/10
- [Emacs-diffs] Changes to emacs/lisp/epa.el,v,
Michael W. Olson <=