diff options
| author | Chong Yidong | 2009-12-05 21:05:51 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-12-05 21:05:51 +0000 |
| commit | 925f8c706646b93de86d50c8f9b283da423c20a0 (patch) | |
| tree | 9fc879003fa163a71a177813752c55657c5a73b5 | |
| parent | 503edac9d6283c9bea492000369605e948af1fe7 (diff) | |
| download | emacs-925f8c706646b93de86d50c8f9b283da423c20a0.tar.gz emacs-925f8c706646b93de86d50c8f9b283da423c20a0.zip | |
* shell.el (shell): Require ansi-color (Bug#5113).
* ansi-color.el (ansi-color-for-comint-mode): Default to t.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/ansi-color.el | 2 | ||||
| -rw-r--r-- | lisp/shell.el | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ab2fb6207a2..858543834e2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2009-12-05 Chong Yidong <cyd@stupidchicken.com> | 1 | 2009-12-05 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * shell.el (shell): Require ansi-color (Bug#5113). | ||
| 4 | |||
| 5 | * ansi-color.el (ansi-color-for-comint-mode): Default to t. | ||
| 6 | |||
| 3 | * hl-line.el (global-hl-line-highlight): Minor doc fix (Bug#4925). | 7 | * hl-line.el (global-hl-line-highlight): Minor doc fix (Bug#4925). |
| 4 | 8 | ||
| 5 | 2009-12-05 Alan Mackenzie <acm@muc.de> | 9 | 2009-12-05 Alan Mackenzie <acm@muc.de> |
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el index e343f560169..f691aca2d1b 100644 --- a/lisp/ansi-color.el +++ b/lisp/ansi-color.el | |||
| @@ -157,7 +157,7 @@ map. This color map is stored in the variable `ansi-color-map'." | |||
| 157 | ;; Convenience functions for comint modes (eg. shell-mode) | 157 | ;; Convenience functions for comint modes (eg. shell-mode) |
| 158 | 158 | ||
| 159 | 159 | ||
| 160 | (defcustom ansi-color-for-comint-mode nil | 160 | (defcustom ansi-color-for-comint-mode t |
| 161 | "Determines what to do with comint output. | 161 | "Determines what to do with comint output. |
| 162 | If nil, do nothing. | 162 | If nil, do nothing. |
| 163 | If the symbol `filter', then filter all SGR control sequences. | 163 | If the symbol `filter', then filter all SGR control sequences. |
diff --git a/lisp/shell.el b/lisp/shell.el index 0f7eca3557e..dbc64c10908 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -554,6 +554,7 @@ Otherwise, one argument `-i' is passed to the shell. | |||
| 554 | (read-file-name | 554 | (read-file-name |
| 555 | "Default directory: " default-directory default-directory | 555 | "Default directory: " default-directory default-directory |
| 556 | t nil 'file-directory-p)))))))) | 556 | t nil 'file-directory-p)))))))) |
| 557 | (require 'ansi-color) | ||
| 557 | (setq buffer (get-buffer-create (or buffer "*shell*"))) | 558 | (setq buffer (get-buffer-create (or buffer "*shell*"))) |
| 558 | ;; Pop to buffer, so that the buffer's window will be correctly set | 559 | ;; Pop to buffer, so that the buffer's window will be correctly set |
| 559 | ;; when we call comint (so that comint sets the COLUMNS env var properly). | 560 | ;; when we call comint (so that comint sets the COLUMNS env var properly). |