From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70794: 30.0.50; Add Rust compilation regex Date: Mon, 06 May 2024 03:28:43 +0200 Message-ID: <87y18nsp84.fsf@aol.com> References: <87y18nsp84.fsf.ref@aol.com> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33967"; mail-complaints-to="usenet@ciao.gmane.io" To: 70794@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 06 03:31:09 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 1s3nC8-0008k3-RU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 May 2024 03:31:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3nBj-00034u-ID; Sun, 05 May 2024 21:30:43 -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 1s3nBe-00033m-Dn for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 21:30:41 -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 1s3nBe-0004NN-5F for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 21:30:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s3nC2-0001nb-1U for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 21:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2024 01:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70794 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17149590096862 (code B ref -1); Mon, 06 May 2024 01:31:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 May 2024 01:30:09 +0000 Original-Received: from localhost ([127.0.0.1]:34706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3nBA-0001mc-Pt for submit@debbugs.gnu.org; Sun, 05 May 2024 21:30:09 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:55624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s3nB7-0001kM-Vf for submit@debbugs.gnu.org; Sun, 05 May 2024 21:30:07 -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 1s3nAe-0002fm-Ou for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 21:29:36 -0400 Original-Received: from sonic309-15.consmr.mail.bf2.yahoo.com ([74.6.129.125]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s3nAZ-00040I-DV for bug-gnu-emacs@gnu.org; Sun, 05 May 2024 21:29:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1714958967; bh=oGJzzqRyKjmZsp0onOcOwk+D5xoF9xw0azKd32Fer0w=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=EPmAcE7q6PKsUl0pSeqFsy0CAlkP+jGjNZdZv1xvVArNDyUwDN6bHyiwkzoysvBckMRdw+OY3Xor5V48K2ACunWuVvn7cerTi6U7BehjQw1JllSJ54mJSEA802Bm8eikXcRjoeUGsROcWk8dPFLMnl0RAPXT5nHAfn+bPknwiKiXY2A3kuHcXZBBB53LhOoFYfpna0wa5Hb1+/xBGiARCqh1fiAXFVlLXHGGWIOMwUOnlQGUWCB30Y52nkJSa0EGdRq8qgcMw1fWfx+wT4lA4Yd2fgXd/mdsErrgptvM0l4KboCJfZhQXpEMP0ppKhc1MqbZgHW1DZeUGc5QSFt3Xg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1714958967; bh=uUpxcxgSLX7aH4CccIpp0dW+w1GnuhCAqH+VfOmle2u=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ianmE7QQGs4Tm+I/kaP0mTTRN/axcqJ5SSZvTTRZ6wQKqY9jAU0Wb6j3L6CRTzI7QoWzvZPFJjRkRO41ZB6f09MWbAw/V4LeJzgbJrFQd/hKetm5unQNUj1gemn7W8zIp5GmRSXjgjDeAJZLCaPX+Ey9zhllQtertszqFzDVDOqqZNmx+CuYtwpcVZIoZIap/5DaHFI3e9lTW6+AP0n7eGc9yvfT5jR5MBx87R+Z37VCkFRMa35B2GegUIXl9OJ2x/ZzD7DfoCI5ixerUa59Ye1bcRL1cGb+3gJRgjUtMS/MZUDeBjYwb5FjEFwhY/ZlAwTf5lhsq5tlKz5S31mSjw== X-YMail-OSG: 5.kMbgUVM1kZcMdRnPnElX50qK.Jg2FhIut2xIaSv4OZKHunPzDNktXlG8hiAho AOq9QwpFh7QgZxriNORhuJ46hVsH0IBSiUAIGzVEPNg8Bi4ZcnTjvArcCHLVILjrHS0Hi2kKxsvz eiOdLzQ5Y2IFu308xTDZBeMJC21pMUraPUzEgsE31lgqp.gkRdP8fRfC6jaBcdEuotLH4FILOW.W I5tnlx5v_fqnRFkcMtuBpxXBQqSqWSysHidAgooVrkNY4H0lgqTZ9Py1jVHBkBm3HFyPl_DRiPFa 8ECWEx7o3RbHbjEhQClnWoc0tuxwuuS_g5b9SKmXw9CfnMZv.IcYQ42ic5VZQ6rN7MOSnmFVs1.Z _LdhdJUrh9gNp7zOJMfxkacfp8lSyQ2b_nmROdPqVLrM4Do0mh_1Ym_HLZX6LY25lEUEyprLatIp lT2SJGoIB7KezgppR8ETlvjL5nynQtbH1xP758tcWwc6_Zwc_G2kxsa4XZ_p9qApuIL.R_DZ.8JW 6v7BCvZ1UJrw0ySPGLg2pLo6SHaB.EzFHSBHBiOZjSeaueEGiLOZcPIWBHjdHvn0ilUXNRQuQAWy ZKwDCTuc.L9c5VQQJ_3o0zj5PLPDPDJ4G25agAm4Md9ZXxc6qKbYrcMr0wQbYv4F4QXdaiPvtkgm eRlsLuh9K1129BGbT85j.k8N2BLfJQ.IXdPYjUrwylUhN38SQRKTFp4BiR8mar1YMQNhdDCZlV4u Hxh8kYoFxpVcUZnnczfIE.woaP26h3OM.P4PoN_OXQwRpefdU1xkmglePegVyccZOnkJwEeCq9Sk hj9.2Jjfg3nxGaIqyWlAWUHCB1BKzKZRElTZ6qQGo3 X-Sonic-MF: X-Sonic-ID: 2f94bd88-9a2e-481c-86a0-a084397e7c55 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Mon, 6 May 2024 01:29:27 +0000 Original-Received: by hermes--production-ir2-7b99fc9bb6-b6zps (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c8b9f67d9d4a7aeba07624bbc6136576; Mon, 06 May 2024 01:29:25 +0000 (UTC) X-Mailer: WebService/1.1.22256 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.129.125; envelope-from=spacibba@aol.com; helo=sonic309-15.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:284550 Archived-At: Hi: 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?