Mercurial > emacs
diff lisp/progmodes/compile.el @ 102102:0d562146f921
Require comint at top level to fix the last patch.
author | Sam Steingold <sds@gnu.org> |
---|---|
date | Wed, 18 Feb 2009 15:37:40 +0000 |
parents | 1867fcb8720e |
children | b39c9d4ea068 |
line wrap: on
line diff
--- a/lisp/progmodes/compile.el Wed Feb 18 12:55:35 2009 +0000 +++ b/lisp/progmodes/compile.el Wed Feb 18 15:37:40 2009 +0000 @@ -72,6 +72,7 @@ (eval-when-compile (require 'cl)) (require 'tool-bar) +(require 'comint) (defvar font-lock-extra-managed-props) (defvar font-lock-keywords) @@ -1155,7 +1156,7 @@ (or mode (setq mode 'compilation-mode)) (let* ((name-of-mode (if (eq mode t) - (prog1 "compilation" (require 'comint)) + "compilation" (replace-regexp-in-string "-mode$" "" (symbol-name mode)))) (thisdir default-directory) outwin outbuf)