aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno2008-07-17 06:21:14 +0000
committerDaiki Ueno2008-07-17 06:21:14 +0000
commit64cc2f2cca248c8e8ce2e5a24129042173349208 (patch)
tree61ff828560b1b2a38dde14d952259ad9c5c5eb38
parentfacfbbbdad272decb23553d827fbc2c0fabaf078 (diff)
downloademacs-64cc2f2cca248c8e8ce2e5a24129042173349208.tar.gz
emacs-64cc2f2cca248c8e8ce2e5a24129042173349208.zip
(epa-key-list-mode): Use run-mode-hooks.
(epa-key-mode): Ditto. (epa-info-mode): Ditto.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/epa.el6
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5b03b663fb8..65b7e033a96 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-07-17 Daiki Ueno <ueno@unixuser.org>
2
3 * epa.el (epa-key-list-mode): Use run-mode-hooks.
4 (epa-key-mode): Ditto.
5 (epa-info-mode): Ditto.
6
12008-07-17 Glenn Morris <rgm@gnu.org> 72008-07-17 Glenn Morris <rgm@gnu.org>
2 8
3 * term/ns-win.el (ns-handle-switch): Simplify. Handle the numeric case. 9 * term/ns-win.el (ns-handle-switch): Simplify. Handle the numeric case.
diff --git a/lisp/epa.el b/lisp/epa.el
index 18c2ff3e289..2c86c5fdd4c 100644
--- a/lisp/epa.el
+++ b/lisp/epa.el
@@ -327,7 +327,7 @@ You should bind this variable with `let', but do not set it globally.")
327 (make-local-variable 'epa-exit-buffer-function) 327 (make-local-variable 'epa-exit-buffer-function)
328 (make-local-variable 'revert-buffer-function) 328 (make-local-variable 'revert-buffer-function)
329 (setq revert-buffer-function 'epa--key-list-revert-buffer) 329 (setq revert-buffer-function 'epa--key-list-revert-buffer)
330 (run-hooks 'epa-key-list-mode-hook)) 330 (run-mode-hooks 'epa-key-list-mode-hook))
331 331
332(defun epa-key-mode () 332(defun epa-key-mode ()
333 "Major mode for a key description." 333 "Major mode for a key description."
@@ -344,7 +344,7 @@ You should bind this variable with `let', but do not set it globally.")
344 ;; if buffer-file-name is not set. 344 ;; if buffer-file-name is not set.
345 (font-lock-set-defaults) 345 (font-lock-set-defaults)
346 (make-local-variable 'epa-exit-buffer-function) 346 (make-local-variable 'epa-exit-buffer-function)
347 (run-hooks 'epa-key-mode-hook)) 347 (run-mode-hooks 'epa-key-mode-hook))
348 348
349(defun epa-info-mode () 349(defun epa-info-mode ()
350 "Major mode for `epa-info-buffer'." 350 "Major mode for `epa-info-buffer'."
@@ -355,7 +355,7 @@ You should bind this variable with `let', but do not set it globally.")
355 truncate-lines t 355 truncate-lines t
356 buffer-read-only t) 356 buffer-read-only t)
357 (use-local-map epa-info-mode-map) 357 (use-local-map epa-info-mode-map)
358 (run-hooks 'epa-info-mode-hook)) 358 (run-mode-hooks 'epa-info-mode-hook))
359 359
360(defun epa-mark-key (&optional arg) 360(defun epa-mark-key (&optional arg)
361 "Mark a key on the current line. 361 "Mark a key on the current line.