comparison lisp/progmodes/compile.el @ 90667:dbe3f29e61d6

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 505-522) - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: etc/TUTORIAL.cn: Updated. - Merge from erc--emacs--22 * gnus--rel--5.10 (patch 164-167) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-137
author Miles Bader <miles@gnu.org>
date Tue, 21 Nov 2006 08:56:38 +0000
parents bb0e318b7c53 636627b25f70
children f1d13e615070
comparison
equal deleted inserted replaced
90666:00d54c8fa693 90667:dbe3f29e61d6
395 "Directory to restore to when doing `recompile'.") 395 "Directory to restore to when doing `recompile'.")
396 396
397 (defvar compilation-directory-matcher 397 (defvar compilation-directory-matcher
398 '("\\(?:Entering\\|Leavin\\(g\\)\\) directory `\\(.+\\)'$" (2 . 1)) 398 '("\\(?:Entering\\|Leavin\\(g\\)\\) directory `\\(.+\\)'$" (2 . 1))
399 "A list for tracking when directories are entered or left. 399 "A list for tracking when directories are entered or left.
400 Nil means not to track directories, e.g. if all file names are absolute. The 400 If nil, do not track directories, e.g. if all file names are absolute. The
401 first element is the REGEXP matching these messages. It can match any number 401 first element is the REGEXP matching these messages. It can match any number
402 of variants, e.g. different languages. The remaining elements are all of the 402 of variants, e.g. different languages. The remaining elements are all of the
403 form (DIR . LEAVE). If for any one of these the DIR'th subexpression 403 form (DIR . LEAVE). If for any one of these the DIR'th subexpression
404 matches, that is a directory name. If LEAVE is nil or the corresponding 404 matches, that is a directory name. If LEAVE is nil or the corresponding
405 LEAVE'th subexpression doesn't match, this message is about going into another 405 LEAVE'th subexpression doesn't match, this message is about going into another
1067 (format "TERMCAP=emacs:co#%d:tc=unknown:" 1067 (format "TERMCAP=emacs:co#%d:tc=unknown:"
1068 (window-width)))) 1068 (window-width))))
1069 ;; Set the EMACS variable, but 1069 ;; Set the EMACS variable, but
1070 ;; don't override users' setting of $EMACS. 1070 ;; don't override users' setting of $EMACS.
1071 (unless (getenv "EMACS") 1071 (unless (getenv "EMACS")
1072 (list (concat "EMACS=" invocation-directory invocation-name))) 1072 (list "EMACS=t"))
1073 (list "INSIDE_EMACS=t")
1073 (copy-sequence process-environment)))) 1074 (copy-sequence process-environment))))
1074 (set (make-local-variable 'compilation-arguments) 1075 (set (make-local-variable 'compilation-arguments)
1075 (list command mode name-function highlight-regexp)) 1076 (list command mode name-function highlight-regexp))
1076 (set (make-local-variable 'revert-buffer-function) 1077 (set (make-local-variable 'revert-buffer-function)
1077 'compilation-revert-buffer) 1078 'compilation-revert-buffer)