changeset 97719:73388588c9b4

(epa--key-widget-action): Save the selected window to make `widget-button-click-moves-point' work. (Bug#733).
author Daiki Ueno <ueno@unixuser.org>
date Tue, 26 Aug 2008 03:11:45 +0000
parents bb0e27c55c2e
children b2594691f8f2
files lisp/ChangeLog lisp/epa.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Aug 26 03:05:04 2008 +0000
+++ b/lisp/ChangeLog	Tue Aug 26 03:11:45 2008 +0000
@@ -1,3 +1,8 @@
+2008-08-26  Daiki Ueno  <ueno@unixuser.org>
+
+	* epa.el (epa--key-widget-action): Save the selected window to
+	make `widget-button-click-moves-point' work.  (Bug#733).
+
 2008-08-26  Glenn Morris  <rgm@gnu.org>
 
 	* progmodes/gud.el (tramp-file-name-localname)
--- a/lisp/epa.el	Tue Aug 26 03:05:04 2008 +0000
+++ b/lisp/epa.el	Tue Aug 26 03:11:45 2008 +0000
@@ -269,7 +269,8 @@
   :help-echo 'epa--key-widget-help-echo)
 
 (defun epa--key-widget-action (widget &optional event)
-  (epa--show-key (widget-get widget :value)))
+  (save-selected-window
+    (epa--show-key (widget-get widget :value))))
 
 (defun epa--key-widget-value-create (widget)
   (let* ((key (widget-get widget :value))