aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2024-12-08 07:47:07 +0200
committerEli Zaretskii2024-12-08 07:47:07 +0200
commit59fa0b1dd6eba2d3fcc2568d79b3586638dbed04 (patch)
tree2242640982fc3b03e74c1d459935b35d30f34610
parent3d8e49c41a66a7f05cb96f84e2a10f0f308ac9ca (diff)
downloademacs-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.el22
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.
65If the replacement is nil, the file will not be considered an error 65If the replacement is nil, the matching message will not be considered
66after all. If not nil, it should be a regexp replacement string. 66an error or warning. If not nil, it should be a replacement string
67for the matched regexp.
67 68
68When a replacement regexp is specified, the value of the file name used 69If a non-nil replacement is specified, the value of the matched file name
69to locate the error is changed, but the compilation buffer still 70used to locate the warning or error is modified using the replacement, but
70displays the original value. 71the compilation buffer still displays the original value.
71 72
72For example, to prepend a subdirectory \"bar/\" to all file names, add 73For example, to prepend a subdirectory \"bar/\" to all file names in
73an entry matching \"\\\\=`\" and a replacement regexp of \"bar/\", i.e.: 74compiler messages, add an entry matching \"\\\\=`\" and a replacement
75string 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
803form (face FACE PROP1 VAL1 PROP2 VAL2 ...), in which case all the 805form (face FACE PROP1 VAL1 PROP2 VAL2 ...), in which case all the
804listed text properties PROP# are given values VAL# as well. 806listed text properties PROP# are given values VAL# as well.
805 807
806After identifying errors and warnings determined by this 808After identifying compilation errors and warnings determined by this
807variable, the `compilation-transform-file-match-alist' variable 809variable, the `compilation-transform-file-match-alist' variable
808is then consulted. It allows further transformations of the 810is then consulted. It allows further transformations of the
809matched file names, and weeding out false positives." 811matched 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"