summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2010-03-31 18:02:53 +0300
committerJuri Linkov <juri@jurta.org>2010-03-31 18:02:53 +0300
commit67189e62385af5b1e848d02528055958abbfe659 (patch)
tree000e50a278a5447b7b93ad7a53f0795065d8bbf1
parent1546c55901a99229848a1381aac2e618f5d6c04a (diff)
downloademacs-67189e62385af5b1e848d02528055958abbfe659.tar.gz
* simple.el (keyboard-escape-quit): Raise deselecting the active
region higher than exiting the minibuffer. http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg00904.html
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/simple.el4
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bdc40f44a2d..f7b3c7a1c2c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
2010-03-31 Juri Linkov <juri@jurta.org>
+ * simple.el (keyboard-escape-quit): Raise deselecting the active
+ region higher than exiting the minibuffer.
+ http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg00904.html
+
+2010-03-31 Juri Linkov <juri@jurta.org>
+
* image.el (image-animated-p): Use `image-metadata' instead of
`image-extension-data'. Get GIF extenstion data from metadata
property `extension-data'.
diff --git a/lisp/simple.el b/lisp/simple.el
index ea70e6cbd06..b126637904e 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5490,12 +5490,12 @@ cancel the use of the current buffer (for special-purpose buffers),
or go back to just one window (by deleting all but the selected window)."
(interactive)
(cond ((eq last-command 'mode-exited) nil)
+ ((region-active-p)
+ (deactivate-mark))
((> (minibuffer-depth) 0)
(abort-recursive-edit))
(current-prefix-arg
nil)
- ((region-active-p)
- (deactivate-mark))
((> (recursion-depth) 0)
(exit-recursive-edit))
(buffer-quit-function