* question about compilation-error-regexp-alist @ 2006-03-30 1:13 wuxch2000 2006-03-30 16:26 ` Kevin Rodgers [not found] ` <mailman.184.1143736086.2481.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 3+ messages in thread From: wuxch2000 @ 2006-03-30 1:13 UTC (permalink / raw) the compile.el's comment says "Each elt has the form (REGEXP FILE [LINE COLUMN TYPE HYPERLINK HIGHLIGHT...]). If REGEXP matches, the FILE'th subexpression gives the file name, and the LINE'th subexpression gives the line number. The COLUMN'th subexpression gives the column number on that line." it's easy to understand how compile.el know FILE and LINE content, but how can compile.el know witch TYPE the message is? ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about compilation-error-regexp-alist 2006-03-30 1:13 question about compilation-error-regexp-alist wuxch2000 @ 2006-03-30 16:26 ` Kevin Rodgers [not found] ` <mailman.184.1143736086.2481.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 3+ messages in thread From: Kevin Rodgers @ 2006-03-30 16:26 UTC (permalink / raw) wuxch2000@gmail.com wrote: > the compile.el's comment says > > "Each elt has the form (REGEXP FILE [LINE COLUMN TYPE HYPERLINK > HIGHLIGHT...]). If REGEXP matches, the FILE'th subexpression > gives the file name, and the LINE'th subexpression gives the line > number. The COLUMN'th subexpression gives the column number on that > line." > > it's easy to understand how compile.el know FILE and LINE content, but > how can compile.el know witch TYPE the message is? The doc string also says: "TYPE is 2 or nil for a real error or 1 for warning or 0 for info." So if TYPE is omitted, it is nil, thus by default the message is an error. -- Kevin Rodgers ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.184.1143736086.2481.help-gnu-emacs@gnu.org>]
* Re: question about compilation-error-regexp-alist [not found] ` <mailman.184.1143736086.2481.help-gnu-emacs@gnu.org> @ 2006-03-31 2:48 ` wuxch2000 0 siblings, 0 replies; 3+ messages in thread From: wuxch2000 @ 2006-03-31 2:48 UTC (permalink / raw) thanks for your reply. But I still do not understand how compile.el get TYPE value automatic from matched sentence. For example, there's a compilation-error-regexp-alist (edg-1 "^\\([^ \n]+\\)(\\([0-9]+\\)): \\(?:error\\|warnin\\(g\\)\\|remar\\(k\\)\\)" 1 2 nil (3 . 4)) what "\\(?:error\\|warnin\\(g\\)\\|remar\\(k\\)\\)" means? why add \\( \\) to char 'g' and 'k'? ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-31 2:48 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-03-30 1:13 question about compilation-error-regexp-alist wuxch2000 2006-03-30 16:26 ` Kevin Rodgers [not found] ` <mailman.184.1143736086.2481.help-gnu-emacs@gnu.org> 2006-03-31 2:48 ` wuxch2000
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.