aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2015-01-06 16:32:09 -0500
committerSam Steingold2015-01-06 16:32:09 -0500
commit95295df44cc2b6e0e2442aeff96b0fe2ceac405c (patch)
treefb4212908118725d2d1a6218f267ff1c201691fc
parentc7511666094a87021e0f3685657bfc9e380d67a7 (diff)
downloademacs-95295df44cc2b6e0e2442aeff96b0fe2ceac405c.tar.gz
emacs-95295df44cc2b6e0e2442aeff96b0fe2ceac405c.zip
Use generic `display-buffer-alist' instead of mode-specific customizations.
* lisp/shell.el (shell-display-buffer-actions): Remove, use `display-buffer-alist' instead.
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/shell.el9
3 files changed, 9 insertions, 10 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 3a53c9c02a5..4d704ce5c67 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -193,9 +193,10 @@ Unicode standards.
193 193
194When you invoke `shell' interactively, the *shell* buffer will now 194When you invoke `shell' interactively, the *shell* buffer will now
195display in a new window. However, you can customize this behavior via 195display in a new window. However, you can customize this behavior via
196the new `shell-display-buffer-actions' variable. For example, to get 196the `display-buffer-alist' variable. For example, to get
197the old behavior -- *shell* buffer displays in current window -- use 197the old behavior -- *shell* buffer displays in current window -- use
198(setq shell-display-buffer-actions '(display-buffer-same-window)). 198(add-to-list 'display-buffer-alist
199 '("^\\*shell\\*$" . (display-buffer-same-window))).
199 200
200** ido 201** ido
201*** New command `ido-bury-buffer-at-head' bound to C-S-b 202*** New command `ido-bury-buffer-at-head' bound to C-S-b
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 76ba2cd4c80..71889ceffe2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12015-01-06 Sam Steingold <sds@gnu.org>
2
3 * shell.el (shell-display-buffer-actions): Remove,
4 use `display-buffer-alist' instead.
5
12015-01-05 Dmitry Gutov <dgutov@yandex.ru> 62015-01-05 Dmitry Gutov <dgutov@yandex.ru>
2 7
3 * progmodes/xref.el (xref--insert-xrefs): Add `help-echo' property 8 * progmodes/xref.el (xref--insert-xrefs): Add `help-echo' property
diff --git a/lisp/shell.el b/lisp/shell.el
index 6e336eb1403..f71d1407a49 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -309,13 +309,6 @@ for Shell mode only."
309 (const :tag "on" t)) 309 (const :tag "on" t))
310 :group 'shell) 310 :group 'shell)
311 311
312(defcustom shell-display-buffer-actions display-buffer-base-action
313 "The `display-buffer' actions for the `*shell*' buffer."
314 :type display-buffer--action-custom-type
315 :risky t
316 :version "25.1"
317 :group 'shell)
318
319(defvar shell-dirstack nil 312(defvar shell-dirstack nil
320 "List of directories saved by pushd in this buffer's shell. 313 "List of directories saved by pushd in this buffer's shell.
321Thus, this does not include the shell's current directory.") 314Thus, this does not include the shell's current directory.")
@@ -726,7 +719,7 @@ Otherwise, one argument `-i' is passed to the shell.
726 719
727 ;; The buffer's window must be correctly set when we call comint (so 720 ;; The buffer's window must be correctly set when we call comint (so
728 ;; that comint sets the COLUMNS env var properly). 721 ;; that comint sets the COLUMNS env var properly).
729 (pop-to-buffer buffer shell-display-buffer-actions) 722 (pop-to-buffer buffer)
730 (unless (comint-check-proc buffer) 723 (unless (comint-check-proc buffer)
731 (let* ((prog (or explicit-shell-file-name 724 (let* ((prog (or explicit-shell-file-name
732 (getenv "ESHELL") shell-file-name)) 725 (getenv "ESHELL") shell-file-name))