diff options
| author | Stefan Monnier | 2010-05-25 13:53:37 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-05-25 13:53:37 -0400 |
| commit | 397eb3f3e779ed4bd20facb34e4b418f65540643 (patch) | |
| tree | b9352164bd11df295538c5d7bf665c563e57e35d | |
| parent | 605d1fd9a9a619c8c60f26a1bd72eaf6aa845cb3 (diff) | |
| download | emacs-397eb3f3e779ed4bd20facb34e4b418f65540643.tar.gz emacs-397eb3f3e779ed4bd20facb34e4b418f65540643.zip | |
* epa.el (epa--select-keys): Don't explicitly delete the window since
that can fail (e.g. sole window in frame). Use dedication instead.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/epa.el | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3346fcf497a..ed5d215a953 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-25 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * epa.el (epa--select-keys): Don't explicitly delete the window since | ||
| 4 | that can fail (e.g. sole window in frame). Use dedication instead. | ||
| 5 | |||
| 1 | 2010-05-19 Uday S Reddy <u.s.reddy@cs.bham.ac.uk> (tiny change) | 6 | 2010-05-19 Uday S Reddy <u.s.reddy@cs.bham.ac.uk> (tiny change) |
| 2 | 7 | ||
| 3 | * textmodes/fill.el (fill-region): Don't fill past the end (bug#6201). | 8 | * textmodes/fill.el (fill-region): Don't fill past the end (bug#6201). |
diff --git a/lisp/epa.el b/lisp/epa.el index ea438f0073a..8d77d6938b1 100644 --- a/lisp/epa.el +++ b/lisp/epa.el | |||
| @@ -508,13 +508,12 @@ If ARG is non-nil, mark the key." | |||
| 508 | (set-keymap-parent (current-local-map) widget-keymap) | 508 | (set-keymap-parent (current-local-map) widget-keymap) |
| 509 | (setq epa-exit-buffer-function #'abort-recursive-edit) | 509 | (setq epa-exit-buffer-function #'abort-recursive-edit) |
| 510 | (goto-char (point-min)) | 510 | (goto-char (point-min)) |
| 511 | (pop-to-buffer (current-buffer))) | 511 | (let ((display-buffer-mark-dedicated 'soft)) |
| 512 | (pop-to-buffer (current-buffer)))) | ||
| 512 | (unwind-protect | 513 | (unwind-protect |
| 513 | (progn | 514 | (progn |
| 514 | (recursive-edit) | 515 | (recursive-edit) |
| 515 | (epa--marked-keys)) | 516 | (epa--marked-keys)) |
| 516 | (if (get-buffer-window epa-keys-buffer) | ||
| 517 | (delete-window (get-buffer-window epa-keys-buffer))) | ||
| 518 | (kill-buffer epa-keys-buffer)))) | 517 | (kill-buffer epa-keys-buffer)))) |
| 519 | 518 | ||
| 520 | ;;;###autoload | 519 | ;;;###autoload |