From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70794: 30.0.50; Add Rust compilation regex Date: Sat, 11 May 2024 11:51:04 +0300 Message-ID: <86le4g3f5z.fsf@gnu.org> References: <87y18nsp84.fsf.ref@aol.com> <87y18nsp84.fsf@aol.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39387"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70794@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 11 10:52:30 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s5iSz-0009yg-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 May 2024 10:52:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5iSc-0004oI-3D; Sat, 11 May 2024 04:52:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5iSZ-0004o7-GJ for bug-gnu-emacs@gnu.org; Sat, 11 May 2024 04:52:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5iSZ-00016T-83 for bug-gnu-emacs@gnu.org; Sat, 11 May 2024 04:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s5iSY-0006qr-5X for bug-gnu-emacs@gnu.org; Sat, 11 May 2024 04:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2024 08:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70794 X-GNU-PR-Package: emacs Original-Received: via spool by 70794-submit@debbugs.gnu.org id=B70794.171541747626329 (code B ref 70794); Sat, 11 May 2024 08:52:02 +0000 Original-Received: (at 70794) by debbugs.gnu.org; 11 May 2024 08:51:16 +0000 Original-Received: from localhost ([127.0.0.1]:47104 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5iRn-0006qb-St for submit@debbugs.gnu.org; Sat, 11 May 2024 04:51:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s5iRl-0006qV-Th for 70794@debbugs.gnu.org; Sat, 11 May 2024 04:51:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5iRh-0000fb-44; Sat, 11 May 2024 04:51:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SV69QzemWygR9u80QFwYnwms1FbO8Kc7dz+vVDi4EW8=; b=LlL1awDgfqol 9yI0TqFkvPXXZ90n6O/DVj88qI7BfmJK5ZfoxH3F5pLr4M55/X/eDAg1+LA+EevHtKpw1pwdSUKW7 pJKNz8vkvbUDtL5/lcYkIi8Xxmz3u9yCg0M4BFidS+rT8LK1bZvGqJnkpyJmfrN0AlDhR3B6BB8W6 paDZMJivGCgHMhCI/y/4HpB1SyPffsFOEIjAce1YOPvUbW6aIg1po1mTBCfeAhBQ98WoOuAEebJsI +Zh+72Xc72wI9qBYSs/LAyFfb6fYXxeajHw4t8Bqqva36VvuBZ2qr+/nhlHCSnsJ+MGPZQuQrVClo pGaiNq1KZpTzvbI11s/55A==; In-Reply-To: <87y18nsp84.fsf@aol.com> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284849 Archived-At: > Date: Mon, 06 May 2024 03:28:43 +0200 > From: Ergus via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Recently working with rust I have noticed that emacs does not recognizes > the rust/cargo error patterns. > > Considering that emacs has now the rust-ts-mode, it may worth adding > the rust/cargo error patterns to compile when using that mode > > In my system so far I have this: > > ``` > (with-eval-after-load 'rust-ts-mode > (with-eval-after-load 'compile > (add-to-list > 'compilation-error-regexp-alist-alist > `(cargo > "\\(?:\\(?4:error\\)\\|\\(?5:warning\\)\\):[^\0]+?--> \\(?1:[^:]+\\):\\(?2:[[:digit:]]+\\):\\(?3:[[:digit:]]+\\)" > 1 2 3 (5) > nil > (5 compilation-warning-face) > (4 compilation-error-face))) > > (add-to-list 'compilation-error-regexp-alist 'cargo))) > > ``` > > Maybe a more frequent rust user has a more general regex to > recommend. But this one works for me. > > WDYT? Thanks, but could you please also send the examples of Rust messages, because we need to add them to etc/compilation.txt?