diff options
| author | Glenn Morris | 2007-08-11 03:02:05 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-08-11 03:02:05 +0000 |
| commit | be9471017088eaf3e7bde1c042c299079336d235 (patch) | |
| tree | d17bec43ec0414c7dd66fdd88aba8cbb8f73ee53 | |
| parent | 8e80bfc5b93ebe821c6b87532d147f74aa2db7b1 (diff) | |
| download | emacs-be9471017088eaf3e7bde1c042c299079336d235.tar.gz emacs-be9471017088eaf3e7bde1c042c299079336d235.zip | |
(compilation-buffer-name): Don't check compilation-arguments. It is
superfluous, and the variable isn't even set when this function is
called.
| -rw-r--r-- | lisp/progmodes/compile.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index d7283037b6f..2bed6ce39a6 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -979,8 +979,7 @@ Otherwise, construct a buffer name from MODE-NAME." | |||
| 979 | (funcall name-function mode-name)) | 979 | (funcall name-function mode-name)) |
| 980 | (compilation-buffer-name-function | 980 | (compilation-buffer-name-function |
| 981 | (funcall compilation-buffer-name-function mode-name)) | 981 | (funcall compilation-buffer-name-function mode-name)) |
| 982 | ((and (eq mode-command major-mode) | 982 | ((eq mode-command major-mode) |
| 983 | (eq major-mode (nth 1 compilation-arguments))) | ||
| 984 | (buffer-name)) | 983 | (buffer-name)) |
| 985 | (t | 984 | (t |
| 986 | (concat "*" (downcase mode-name) "*")))) | 985 | (concat "*" (downcase mode-name) "*")))) |
| @@ -1032,7 +1031,7 @@ Returns the compilation buffer created." | |||
| 1032 | (with-current-buffer | 1031 | (with-current-buffer |
| 1033 | (setq outbuf | 1032 | (setq outbuf |
| 1034 | (get-buffer-create | 1033 | (get-buffer-create |
| 1035 | (compilation-buffer-name name-of-mode mode name-function))) | 1034 | (compilation-buffer-name name-of-mode mode name-function))) |
| 1036 | (let ((comp-proc (get-buffer-process (current-buffer)))) | 1035 | (let ((comp-proc (get-buffer-process (current-buffer)))) |
| 1037 | (if comp-proc | 1036 | (if comp-proc |
| 1038 | (if (or (not (eq (process-status comp-proc) 'run)) | 1037 | (if (or (not (eq (process-status comp-proc) 'run)) |