diff options
| author | Richard M. Stallman | 1997-05-04 02:29:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-04 02:29:41 +0000 |
| commit | c5049fa0d924d862d65e7fa693d5c901202e6222 (patch) | |
| tree | 325828f8ebd82d021eed27fdfa4fc2cd72abbb0a | |
| parent | 9483d601ec99cd2c786d593005653dfab196d7de (diff) | |
| download | emacs-c5049fa0d924d862d65e7fa693d5c901202e6222.tar.gz emacs-c5049fa0d924d862d65e7fa693d5c901202e6222.zip | |
Use defgroup and defcustom.
| -rw-r--r-- | lisp/progmodes/compile.el | 54 |
1 files changed, 37 insertions, 17 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 51091e8c268..26e37341796 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -30,13 +30,24 @@ | |||
| 30 | 30 | ||
| 31 | ;;; Code: | 31 | ;;; Code: |
| 32 | 32 | ||
| 33 | (defgroup compilation nil | ||
| 34 | "Run compiler as inferior of Emacs, parse error messages." | ||
| 35 | :group 'tools | ||
| 36 | :group 'processes) | ||
| 37 | |||
| 38 | |||
| 33 | ;;;###autoload | 39 | ;;;###autoload |
| 34 | (defvar compilation-mode-hook nil | 40 | (defcustom compilation-mode-hook nil |
| 35 | "*List of hook functions run by `compilation-mode' (see `run-hooks').") | 41 | "*List of hook functions run by `compilation-mode' (see `run-hooks')." |
| 42 | :type 'hook | ||
| 43 | :group 'compilation) | ||
| 36 | 44 | ||
| 37 | ;;;###autoload | 45 | ;;;###autoload |
| 38 | (defvar compilation-window-height nil | 46 | (defcustom compilation-window-height nil |
| 39 | "*Number of lines in a compilation window. If nil, use Emacs default.") | 47 | "*Number of lines in a compilation window. If nil, use Emacs default." |
| 48 | :type '(choice (const :tag "Default" nil) | ||
| 49 | integer) | ||
| 50 | :group 'compilation) | ||
| 40 | 51 | ||
| 41 | (defvar compile-auto-highlight nil | 52 | (defvar compile-auto-highlight nil |
| 42 | "*Specify how many compiler errors to highlight (and parse) initially. | 53 | "*Specify how many compiler errors to highlight (and parse) initially. |
| @@ -95,13 +106,13 @@ nil means compute the name with `(concat \"*\" (downcase major-mode) \"*\")'.") | |||
| 95 | 106 | ||
| 96 | ;;;###autoload | 107 | ;;;###autoload |
| 97 | (defvar compilation-finish-function nil | 108 | (defvar compilation-finish-function nil |
| 98 | "*Function to call when a compilation process finishes. | 109 | "Function to call when a compilation process finishes. |
| 99 | It is called with two arguments: the compilation buffer, and a string | 110 | It is called with two arguments: the compilation buffer, and a string |
| 100 | describing how the process finished.") | 111 | describing how the process finished.") |
| 101 | 112 | ||
| 102 | ;;;###autoload | 113 | ;;;###autoload |
| 103 | (defvar compilation-finish-functions nil | 114 | (defvar compilation-finish-functions nil |
| 104 | "*Functions to call when a compilation process finishes. | 115 | "Functions to call when a compilation process finishes. |
| 105 | Each function is called with two arguments: the compilation buffer, | 116 | Each function is called with two arguments: the compilation buffer, |
| 106 | and a string describing how the process finished.") | 117 | and a string describing how the process finished.") |
| 107 | 118 | ||
| @@ -308,13 +319,17 @@ Note that the match is done at the beginning of lines. | |||
| 308 | Each elt has the form (REGEXP). This alist is by default empty, but if | 319 | Each elt has the form (REGEXP). This alist is by default empty, but if |
| 309 | you have some good regexps here, the parsing of messages will be faster.") | 320 | you have some good regexps here, the parsing of messages will be faster.") |
| 310 | 321 | ||
| 311 | (defvar compilation-read-command t | 322 | (defcustom compilation-read-command t |
| 312 | "If not nil, M-x compile reads the compilation command to use. | 323 | "*If not nil, M-x compile reads the compilation command to use. |
| 313 | Otherwise, M-x compile just uses the value of `compile-command'.") | 324 | Otherwise, M-x compile just uses the value of `compile-command'." |
| 325 | :type 'boolean | ||
| 326 | :group 'compilation) | ||
| 314 | 327 | ||
| 315 | (defvar compilation-ask-about-save t | 328 | (defcustom compilation-ask-about-save t |
| 316 | "If not nil, M-x compile asks which buffers to save before compiling. | 329 | "*If not nil, M-x compile asks which buffers to save before compiling. |
| 317 | Otherwise, it saves all modified buffers without asking.") | 330 | Otherwise, it saves all modified buffers without asking." |
| 331 | :type 'boolean | ||
| 332 | :group 'compilation) | ||
| 318 | 333 | ||
| 319 | (defvar grep-regexp-alist | 334 | (defvar grep-regexp-alist |
| 320 | '(("\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)) | 335 | '(("\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)) |
| @@ -371,13 +386,16 @@ by influencing the default value for the variable `grep-find-command'.") | |||
| 371 | "The default find command for \\[grep-find].") | 386 | "The default find command for \\[grep-find].") |
| 372 | 387 | ||
| 373 | ;;;###autoload | 388 | ;;;###autoload |
| 374 | (defvar compilation-search-path '(nil) | 389 | (defcustom compilation-search-path '(nil) |
| 375 | "*List of directories to search for source files named in error messages. | 390 | "*List of directories to search for source files named in error messages. |
| 376 | Elements should be directory names, not file names of directories. | 391 | Elements should be directory names, not file names of directories. |
| 377 | nil as an element means to try the default directory.") | 392 | nil as an element means to try the default directory." |
| 393 | :type '(repeat (choice (const :tag "Default" nil) | ||
| 394 | (string :tag "Directory"))) | ||
| 395 | :group 'compilation) | ||
| 378 | 396 | ||
| 379 | (defvar compile-command "make -k " | 397 | (defcustom compile-command "make -k " |
| 380 | "Last shell command used to do a compilation; default for next compilation. | 398 | "*Last shell command used to do a compilation; default for next compilation. |
| 381 | 399 | ||
| 382 | Sometimes it is useful for files to supply local values for this variable. | 400 | Sometimes it is useful for files to supply local values for this variable. |
| 383 | You might also use mode hooks to specify it in certain modes, like this: | 401 | You might also use mode hooks to specify it in certain modes, like this: |
| @@ -387,7 +405,9 @@ You might also use mode hooks to specify it in certain modes, like this: | |||
| 387 | (progn (make-local-variable 'compile-command) | 405 | (progn (make-local-variable 'compile-command) |
| 388 | (setq compile-command | 406 | (setq compile-command |
| 389 | (concat \"make -k \" | 407 | (concat \"make -k \" |
| 390 | buffer-file-name))))))") | 408 | buffer-file-name))))))" |
| 409 | :type 'string | ||
| 410 | :group 'compilation) | ||
| 391 | 411 | ||
| 392 | (defvar compilation-directory-stack nil | 412 | (defvar compilation-directory-stack nil |
| 393 | "Stack of previous directories for `compilation-leave-directory-regexp'. | 413 | "Stack of previous directories for `compilation-leave-directory-regexp'. |