aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2014-06-18 10:57:27 +0300
committerJuri Linkov2014-06-18 10:57:27 +0300
commitd35b443a668c135c6cf5fbbd2417553c0f4ab9b8 (patch)
treef6aa8da9f527b7c9cedda79cd263efb56bfd9343
parentc18add241de89fc7c92200ffcd6b0f3ac083ba51 (diff)
downloademacs-d35b443a668c135c6cf5fbbd2417553c0f4ab9b8.tar.gz
emacs-d35b443a668c135c6cf5fbbd2417553c0f4ab9b8.zip
* lisp/dired.el (dired-mark-pop-up): Let-bind display-buffer-mark-dedicated to `soft'.
Fixes: debbugs:17554
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/dired.el5
-rw-r--r--lisp/window.el2
3 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2daf277166f..de2a8bd085b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-06-18 Juri Linkov <juri@jurta.org>
2
3 * dired.el (dired-mark-pop-up): Let-bind display-buffer-mark-dedicated
4 to `soft'. (Bug#17554)
5
12014-06-17 Stefan Monnier <monnier@iro.umontreal.ca> 62014-06-17 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * delsel.el (electric-newline-and-maybe-indent): Mark it as well 8 * delsel.el (electric-newline-and-maybe-indent): Mark it as well
diff --git a/lisp/dired.el b/lisp/dired.el
index 07fe6fe7d14..e4f297e8cc8 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -3099,7 +3099,10 @@ argument or confirmation)."
3099 ;; If FILES defaulted to the current line's file. 3099 ;; If FILES defaulted to the current line's file.
3100 (= (length files) 1)) 3100 (= (length files) 1))
3101 (apply function args) 3101 (apply function args)
3102 (let ((buffer (get-buffer-create (or buffer-or-name " *Marked Files*")))) 3102 (let ((buffer (get-buffer-create (or buffer-or-name " *Marked Files*")))
3103 ;; Mark *Marked Files* window as softly-dedicated, to prevent
3104 ;; other buffers e.g. *Completions* from reusing it (bug#17554).
3105 (display-buffer-mark-dedicated 'soft))
3103 (with-current-buffer buffer 3106 (with-current-buffer buffer
3104 (with-current-buffer-window 3107 (with-current-buffer-window
3105 buffer 3108 buffer
diff --git a/lisp/window.el b/lisp/window.el
index e9f4fd0b1d2..28dd6a8ab26 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5966,7 +5966,7 @@ live."
5966;; FIXME: By the way, there could be more levels of dedication: 5966;; FIXME: By the way, there could be more levels of dedication:
5967;; - `barely' dedicated doesn't prevent reuse of the window, only records that 5967;; - `barely' dedicated doesn't prevent reuse of the window, only records that
5968;; the window hasn't been used for something else yet. 5968;; the window hasn't been used for something else yet.
5969;; - `softly' dedicated only allows reuse when asked explicitly. 5969;; - `soft' (`softly') dedicated only allows reuse when asked explicitly.
5970;; - `strongly' never allows reuse. 5970;; - `strongly' never allows reuse.
5971(defvar display-buffer-mark-dedicated nil 5971(defvar display-buffer-mark-dedicated nil
5972 "If non-nil, `display-buffer' marks the windows it creates as dedicated. 5972 "If non-nil, `display-buffer' marks the windows it creates as dedicated.