home *** CD-ROM | disk | FTP | other *** search
-
- (defvar compilation-mode-hook nil "\
- *List of hook functions run by `compilation-mode' (see `run-hooks').")
-
- (defconst compilation-window-height nil "\
- *Number of lines in a compilation window. If nil, use Emacs default.")
-
- (defvar compilation-error-list nil "\
- List of error message descriptors for visiting erring functions.
- Each error descriptor is a cons (or nil). Its car is a marker pointing to
- an error message. If its cdr is a marker, it points to the text of the
- line the message is about. If its cdr is a cons, it is a list
- ((DIRECTORY . FILE) LINE [COLUMN]). Or its cdr may be nil if that
- error is not interesting.
-
- The value may be t instead of a list; this means that the buffer of
- error messages should be reparsed the next time the list of errors is wanted.
-
- Some other commands (like `diff') use this list to control the error
- message tracking facilites; if you change its structure, you should make
- sure you also change those packages. Perhaps it is better not to change
- it at all.")
-
- (defvar compilation-old-error-list nil "\
- Value of `compilation-error-list' after errors were parsed.")
-
- (defvar compilation-parse-errors-function (quote compilation-parse-errors) "\
- Function to call to parse error messages from a compilation.
- It takes args LIMIT-SEARCH and FIND-AT-LEAST.
- If LIMIT-SEARCH is non-nil, don't bother parsing past that location.
- If FIND-AT-LEAST is non-nil, don't bother parsing after finding that
- many new errors.
- It should read in the source files which have errors and set
- `compilation-error-list' to a list with an element for each error message
- found. See that variable for more info.")
-
- (defvar compilation-buffer-name-function nil "\
- Function to compute the name of a compilation buffer.
- The function receives one argument, the name of the major mode of the
- compilation buffer. It should return a string.
- nil means compute the name with `(concat \"*\" (downcase major-mode) \"*\")'.")
-
- (defvar compilation-finish-function nil "\
- *Function to call when a compilation process finishes.
- It is called with two arguments: the compilation buffer, and a string
- describing how the process finished.")
-
- (defvar compilation-last-buffer nil "\
- The most recent compilation buffer.
- A buffer becomes most recent when its compilation is started
- or when it is used with \\[next-error] or \\[compile-goto-error].")
-
- (defvar compilation-in-progress nil "\
- List of compilation processes now running.")
-
- (or (assq (quote compilation-in-progress) minor-mode-alist) (setq minor-mode-alist (cons (quote (compilation-in-progress " Compiling")) minor-mode-alist)))
-
- (defvar compilation-parsing-end nil "\
- Position of end of buffer when last error messages were parsed.")
-
- (defvar compilation-error-message "No more errors" "\
- Message to print when no more matches are found.")
-
- (defvar compilation-num-errors-found)
-
- (defvar compilation-error-regexp-alist (quote (("
- \\([^:(
- ]+\\)[:(][ ]*\\([0-9]+\\)[:) ]" 1 2) ("[ :]\\([^:(
- ]+\\)[:(](+[ ]*\\([0-9]+\\))[:) ]*$" 1 2) ("([ ]*\\([^:(
- ]+\\)[:(][ ]*\\([0-9]+\\))" 1 2) ("
- fort: [^:
- ]*: \\([^
- ]*\\), line \\([0-9]+\\):" 1 2) ("\\(
- \\|on \\)[Ll]ine[ ]+\\([0-9]+\\)[ ]+of[ ]+\"?\\([^\":
- ]+\\)\"?:" 3 2) ("\"\\([^,\"
- ]+\\)\", lines? \\([0-9]+\\)[:., -]" 1 2) ("rror: \\([^,\"
- ]+\\)[,:] \\(line \\)?\\([0-9]+\\):" 1 3) ("in line \\([0-9]+\\) of file \\([^
- ]+[^.
- ]\\)\\.? " 2 1) ("
- [EW], \\([^(
- ]*\\)(\\([0-9]+\\),[ ]*\\([0-9]+\\)" 1 2 3) ("
- \\\"\\([^
- \\\"]+\\)\\\",[ ]*\\([0-9]+\\),[ ]*\\([0-9]+\\): Error" 1 2 3) ("
- \\\"\\([^
- \\\"]+\\)\\\",[ ]*\\([0-9]+\\),[ ]*\\([0-9]+\\): Warning" 1 2 3) ("
- \\([^
- ]+\\) \\([0-9]+\\) Warning" 1 2) ("
- \\([^
- ]+\\) \\([0-9]+\\) Error" 1 2))) "Alist that specifies how to match errors in compiler output.
- Each element has the form (REGEXP FILE-IDX LINE-IDX [COLUMN-IDX]).
- If REGEXP matches, the FILE-IDX'th subexpression gives the file name, and
- the LINE-IDX'th subexpression gives the line number. If COLUMN-IDX is
- given, the COLUMN-IDX'th subexpression gives the column number on that line.")
-
- (defvar compilation-read-command t "\
- If not nil, M-x compile reads the compilation command to use.
- Otherwise, M-x compile just uses the value of `compile-command'.")
-
- (defvar compilation-ask-about-save t "\
- If not nil, M-x compile asks which buffers to save before compiling.
- Otherwise, it saves all modified buffers without asking.")
-
- (defvar grep-regexp-alist (quote (("^\\([^:(
- ]+\\)[:( ]+\\([0-9]+\\)[:) ]" 1 2))) "Regexp used to match grep hits. See `compilation-error-regexp-alist'.")
-
- (defvar grep-command "grep -n " "\
- Last grep command used in \\{grep}; default for next grep.")
-
- (defvar compilation-search-path (quote (nil)) "\
- *List of directories to search for source files named in error messages.
- Elements should be directory names, not file names of directories.
- nil as an element means to try the default directory.")
-
- (defvar compile-command "make -k " "\
- Last shell command used to do a compilation; default for next compilation.
-
- Sometimes it is useful for files to supply local values for this variable.
- You might also use mode hooks to specify it in certain modes, like this:
-
- (setq c-mode-hook
- '(lambda () (or (file-exists-p \"makefile\") (file-exists-p \"Makefile\")
- (progn (make-local-variable 'compile-command)
- (setq compile-command
- (concat \"make -k \"
- buffer-file-name))))))")
-
- (defconst compilation-enter-directory-regexp ": Entering directory `\\(.*\\)'$" "\
- Regular expression matching lines that indicate a new current directory.
- This must contain one \\(, \\) pair around the directory name.
-
- The default value matches lines printed by the `-w' option of GNU Make.")
-
- (defconst compilation-leave-directory-regexp ": Leaving directory `\\(.*\\)'$" "\
- Regular expression matching lines that indicate restoring current directory.
- This may contain one \\(, \\) pair around the name of the directory
- being moved from. If it does not, the last directory entered (by a
- line matching `compilation-enter-directory-regexp') is assumed.
-
- The default value matches lines printed by the `-w' option of GNU Make.")
-
- (defvar compilation-directory-stack nil "\
- Stack of previous directories for `compilation-leave-directory-regexp'.
- The head element is the directory the compilation was started in.")
-
- (defvar compile-history nil)
-
- (defvar grep-history nil)
-
- (defun compile (command) "\
- Compile the program including the current buffer. Default: run `make'.
- Runs COMMAND, a shell command, in a separate process asynchronously
- with output going to the buffer `*compilation*'.
-
- You can then use the command \\[next-error] to find the next error message
- and move to the source code that caused it.
-
- To run more than one compilation at once, start one and rename the
- `*compilation*' buffer to some other name with \\[rename-buffer].
- Then start the next one.
-
- The name used for the buffer is actually whatever is returned by
- the function in `compilation-buffer-name-function', so you can set that
- to a function that generates a unique name." (interactive (byte-code " ÃÄ ÂÂÅ%C C" [compilation-read-command compile-command nil read-from-minibuffer "Compile command: " (compile-history . 1)] 6)) (byte-code "ÂÅ?Â\"Æ Ç\"" [compilation-read-command compile-command nil command compilation-ask-about-save save-some-buffers compile-internal "No more errors"] 4))
-
- (defun grep (command-args) "\
- Run grep, with user-specified args, and collect output in a buffer.
- While grep runs asynchronously, you can use the \\[next-error] command
- to find the text that grep hits refer to.
-
- This command uses a special history list for its arguments, so you can
- easily repeat a grep command." (interactive (byte-code "ÂÃÁÁÄ%C" [grep-command nil read-from-minibuffer "Run grep (like this): " grep-history] 6)) (byte-code "ÁÅ
- Æ= Ç ÈPÉÊÁ%" [grep-command nil command-args system-type grep-regexp-alist compile-internal amigados " nil:" " /dev/null" "No more grep hits" "grep"] 6))
-
- (defun compile-internal (command error-message &optional name-of-mode parser regexp-alist name-function) "\
- Run compilation command COMMAND (low level interface).
- ERROR-MESSAGE is a string to print if the user asks to see another error
- and there are no more errors. Third argument NAME-OF-MODE is the name
- to display as the major mode in the compilation buffer.
-
- Fourth arg PARSER is the error parser function (nil means the default). Fifth
- arg REGEXP-ALIST is the error message regexp alist to use (nil means the
- default). Sixth arg NAME-FUNCTION is a function called to name the buffer (nil
- means the default). The defaults for these variables are the global values of
- `compilation-parse-errors-function', `compilation-error-regexp-alist', and
- `compilation-buffer-name-function', respectively.
-
- Returns the compilation buffer created." (byte-code "Í