diff options
| author | Eli Zaretskii | 2024-12-08 07:47:07 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-12-08 07:47:07 +0200 |
| commit | 59fa0b1dd6eba2d3fcc2568d79b3586638dbed04 (patch) | |
| tree | 2242640982fc3b03e74c1d459935b35d30f34610 | |
| parent | 3d8e49c41a66a7f05cb96f84e2a10f0f308ac9ca (diff) | |
| download | emacs-59fa0b1dd6eba2d3fcc2568d79b3586638dbed04.tar.gz emacs-59fa0b1dd6eba2d3fcc2568d79b3586638dbed04.zip | |
; Improve doc strings in compile.el
* lisp/progmodes/compile.el (compilation-transform-file-match-alist)
(compilation-error-regexp-alist): Doc fixes.
| -rw-r--r-- | lisp/progmodes/compile.el | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 241b29c65b0..b76dd3bd298 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -61,16 +61,18 @@ If nil, use Emacs default." | |||
| 61 | 61 | ||
| 62 | (defcustom compilation-transform-file-match-alist | 62 | (defcustom compilation-transform-file-match-alist |
| 63 | '(("/bin/[a-z]*sh\\'" nil)) | 63 | '(("/bin/[a-z]*sh\\'" nil)) |
| 64 | "Alist of regexp/replacements to alter file names in compilation errors. | 64 | "Alist of regexp/replacements to alter file names in compiler messages. |
| 65 | If the replacement is nil, the file will not be considered an error | 65 | If the replacement is nil, the matching message will not be considered |
| 66 | after all. If not nil, it should be a regexp replacement string. | 66 | an error or warning. If not nil, it should be a replacement string |
| 67 | for the matched regexp. | ||
| 67 | 68 | ||
| 68 | When a replacement regexp is specified, the value of the file name used | 69 | If a non-nil replacement is specified, the value of the matched file name |
| 69 | to locate the error is changed, but the compilation buffer still | 70 | used to locate the warning or error is modified using the replacement, but |
| 70 | displays the original value. | 71 | the compilation buffer still displays the original value. |
| 71 | 72 | ||
| 72 | For example, to prepend a subdirectory \"bar/\" to all file names, add | 73 | For example, to prepend a subdirectory \"bar/\" to all file names in |
| 73 | an entry matching \"\\\\=`\" and a replacement regexp of \"bar/\", i.e.: | 74 | compiler messages, add an entry matching \"\\\\=`\" and a replacement |
| 75 | string of \"bar/\", i.e.: | ||
| 74 | 76 | ||
| 75 | (\"\\\\=`\" \"bar/\") | 77 | (\"\\\\=`\" \"bar/\") |
| 76 | 78 | ||
| @@ -803,10 +805,10 @@ Alternatively, FACE can evaluate to a property list of the | |||
| 803 | form (face FACE PROP1 VAL1 PROP2 VAL2 ...), in which case all the | 805 | form (face FACE PROP1 VAL1 PROP2 VAL2 ...), in which case all the |
| 804 | listed text properties PROP# are given values VAL# as well. | 806 | listed text properties PROP# are given values VAL# as well. |
| 805 | 807 | ||
| 806 | After identifying errors and warnings determined by this | 808 | After identifying compilation errors and warnings determined by this |
| 807 | variable, the `compilation-transform-file-match-alist' variable | 809 | variable, the `compilation-transform-file-match-alist' variable |
| 808 | is then consulted. It allows further transformations of the | 810 | is then consulted. It allows further transformations of the |
| 809 | matched file names, and weeding out false positives." | 811 | matched file names, and ignoring false positives." |
| 810 | :type '(repeat (choice (symbol :tag "Predefined symbol") | 812 | :type '(repeat (choice (symbol :tag "Predefined symbol") |
| 811 | (sexp :tag "Error specification"))) | 813 | (sexp :tag "Error specification"))) |
| 812 | :link `(file-link :tag "example file" | 814 | :link `(file-link :tag "example file" |