From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2019 20:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36564@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156270464924464 (code B ref -1); Tue, 09 Jul 2019 20:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jul 2019 20:37:29 +0000 Received: from localhost ([127.0.0.1]:34361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkwrh-0006MV-8T for submit@debbugs.gnu.org; Tue, 09 Jul 2019 16:37:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:60681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkwrf-0006MO-96 for submit@debbugs.gnu.org; Tue, 09 Jul 2019 16:37:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58863) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkwrc-00050V-Ua for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 16:37:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkwrX-0007oe-Sa for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 16:37:22 -0400 Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:7511) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hkwrR-0007i8-4D for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 16:37:13 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C3A521A20E9 for ; Tue, 9 Jul 2019 20:37:09 +0000 (UTC) Received: from pdx1-sub0-mail-a78.g.dreamhost.com (100-96-14-124.trex.outbound.svc.cluster.local [100.96.14.124]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5AB621A2297 for ; Tue, 9 Jul 2019 20:37:09 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a78.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Tue, 09 Jul 2019 20:37:09 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Attack-Bored: 0c6d559b614a34a0_1562704629620_4063367151 X-MC-Loop-Signature: 1562704629619:2360681121 X-MC-Ingress-Time: 1562704629619 Received: from pdx1-sub0-mail-a78.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a78.g.dreamhost.com (Postfix) with ESMTP id 40D7883DD5 for ; Tue, 9 Jul 2019 13:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=v5sNC9R3Jq/kpC+vHWz1b/LAVi8=; b=LYGtwVJdl3Fsb46tx 59Ri29DOnwwtpre1sFyL1e7hA07ujiGZJ6jcKrGjAWP8fT7aUeSy1mIpuH02HLqY NJfGVOPPYjYlhpAzFBXk6h17JqAOSkmNy26urvRDZvH36uKyyhZ5NBVxPshqxOY7 p3pk6CqOMiq4+8dKj846xsBcIc= Received: from mail.jurta.org (m91-129-109-127.cust.tele2.ee [91.129.109.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a78.g.dreamhost.com (Postfix) with ESMTPSA id 08A4383DC2 for ; Tue, 9 Jul 2019 13:37:00 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a78 From: Juri Linkov Organization: LINKOV.NET Date: Tue, 09 Jul 2019 23:25:15 +0300 Message-ID: <871ryzhskw.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrgeefgdduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofffkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdelrdduvdejnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtledruddvjedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.3 X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Often compilation-mode displays wrong number of errors in the mode-line even when compilation is finished. compilation-mode is based on font-lock, so when the *compilation* buffer is not displayed during compilation, some parts of this buffer that contain error messages are not fontified, and thus these errors are not counted. This patch ensures the correct number of errors is displayed on the mode-line: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=compilation-handle-exit-font-lock-ensure.patch diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 1a0d9bdbb7..a28e5f6068 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -2179,6 +2182,8 @@ compilation-handle-exit ;; Prevent that message from being recognized as a compilation error. (add-text-properties omax (point) (append '(compilation-handle-exit t) nil)) + ;; Update the number of errors in compilation-mode-line-errors + (font-lock-ensure) (setq mode-line-process (list (let ((out-string (format ":%s [%s]" process-status (cdr status))) --=-=-=-- From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2019 22:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.156279817716187 (code B ref 36564); Wed, 10 Jul 2019 22:37:02 +0000 Received: (at 36564) by debbugs.gnu.org; 10 Jul 2019 22:36:17 +0000 Received: from localhost ([127.0.0.1]:36787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlLCC-0004Cz-RF for submit@debbugs.gnu.org; Wed, 10 Jul 2019 18:36:17 -0400 Received: from cadetblue.birch.relay.mailchannels.net ([23.83.209.28]:27818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlLC8-0004Cn-NB for 36564@debbugs.gnu.org; Wed, 10 Jul 2019 18:36:15 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 640FE140F90 for <36564@debbugs.gnu.org>; Wed, 10 Jul 2019 22:36:06 +0000 (UTC) Received: from pdx1-sub0-mail-a30.g.dreamhost.com (100-96-92-226.trex.outbound.svc.cluster.local [100.96.92.226]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DDDDA140EDE for <36564@debbugs.gnu.org>; Wed, 10 Jul 2019 22:36:05 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a30.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Wed, 10 Jul 2019 22:36:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Glossy-Harbor: 2b77afad1504c893_1562798166166_3212512667 X-MC-Loop-Signature: 1562798166166:3065334759 X-MC-Ingress-Time: 1562798166166 Received: from pdx1-sub0-mail-a30.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a30.g.dreamhost.com (Postfix) with ESMTP id 8143582E4C for <36564@debbugs.gnu.org>; Wed, 10 Jul 2019 15:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=ugCit7LpwkzGHx7rgk/GJn4qMYI=; b= t0s329+zgw2Cg/vOj0jncD9rP4nIy6ntIXI7tDXaksU4EgIc87gQ/uKyv7vSXZKg euOhNs/2jQgZD8nlg+wJ7tzx8qggeK/VEDWrNMwNkh8sxqW0IHI53PvQWX/JUzUL M6csw0U+rife3CisnwpFdZhOeq8VGDI0WUXZcRyCy/0= Received: from mail.jurta.org (m91-129-110-101.cust.tele2.ee [91.129.110.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a30.g.dreamhost.com (Postfix) with ESMTPSA id 4504982E4A for <36564@debbugs.gnu.org>; Wed, 10 Jul 2019 15:36:00 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a30 From: Juri Linkov Organization: LINKOV.NET References: <871ryzhskw.fsf@mail.linkov.net> Date: Thu, 11 Jul 2019 01:34:27 +0300 In-Reply-To: <871ryzhskw.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 09 Jul 2019 23:25:15 +0300") Message-ID: <87ef2xmsct.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrgeejgdduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdduuddtrddutddunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddutddruddtuddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeefieehieegseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain > Often compilation-mode displays wrong number of errors > in the mode-line even when compilation is finished. > > compilation-mode is based on font-lock, so when the > *compilation* buffer is not displayed during compilation, > some parts of this buffer that contain error messages > are not fontified, and thus these errors are not counted. > > This patch ensures the correct number of errors > is displayed on the mode-line: Actually maybe better to count errors not at the end of compilation, but during compilation as output goes: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=compilation-font-lock-ensure.2.patch diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 1a0d9bdbb7..7b319e9947 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -2245,6 +2250,8 @@ compilation-filter (unless comint-inhibit-carriage-motion (comint-carriage-motion (process-mark proc) (point))) (set-marker (process-mark proc) (point)) + ;; Update the number of errors in compilation-mode-line-errors + (font-lock-ensure compilation-filter-start (point)) ;; (set (make-local-variable 'compilation-buffer-modtime) ;; (current-time)) (run-hooks 'compilation-filter-hook)) --=-=-=-- From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jul 2019 21:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.156288170411188 (code B ref 36564); Thu, 11 Jul 2019 21:49:01 +0000 Received: (at 36564) by debbugs.gnu.org; 11 Jul 2019 21:48:24 +0000 Received: from localhost ([127.0.0.1]:38947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlgvO-0002uM-Rd for submit@debbugs.gnu.org; Thu, 11 Jul 2019 17:48:24 -0400 Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:22075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlgvM-0002u9-Ui; Thu, 11 Jul 2019 17:48:21 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6FF50500C6F; Thu, 11 Jul 2019 21:48:19 +0000 (UTC) Received: from pdx1-sub0-mail-a86.g.dreamhost.com (100-96-14-124.trex.outbound.svc.cluster.local [100.96.14.124]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E61E7500D72; Thu, 11 Jul 2019 21:48:18 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a86.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Thu, 11 Jul 2019 21:48:19 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Shoe-Versed: 55da10c9711d2e39_1562881699202_1275099484 X-MC-Loop-Signature: 1562881699202:2154719400 X-MC-Ingress-Time: 1562881699202 Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id 8101780EBC; Thu, 11 Jul 2019 14:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=cWYm6cfXyeiSTgVtLzlPhGk+iOA=; b= m+2B+VKMcqZFKJWO3htaAOYlX2ohaDlv+obpKeObLuCN36W8GPjYDR6DfBup/9ra JSaN4QFwldl8Cu7cLXanndmvZOSlQiLtB33us6nsddkxy3XZlKrGzNuPbD5RbqKi alvbczUDc/8HIVbT7EtmE2VDyAIEaG9oz3xT+tarRk8= Received: from mail.jurta.org (m91-129-110-101.cust.tele2.ee [91.129.110.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id B224A80EB7; Thu, 11 Jul 2019 14:48:11 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a86 From: Juri Linkov Organization: LINKOV.NET References: <871ryzhskw.fsf@mail.linkov.net> <87ef2xmsct.fsf@mail.linkov.net> Date: Fri, 12 Jul 2019 00:47:27 +0300 In-Reply-To: <87ef2xmsct.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 11 Jul 2019 01:34:27 +0300") Message-ID: <87lfx4xmz4.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrgeelgddtfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdduuddtrddutddunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddutddruddtuddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeefieehieegseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 36564 + patch fixed found 36564 27.0.50 close 36564 27.0.50 quit >> Often compilation-mode displays wrong number of errors >> in the mode-line even when compilation is finished. >> >> compilation-mode is based on font-lock, so when the >> *compilation* buffer is not displayed during compilation, >> some parts of this buffer that contain error messages >> are not fontified, and thus these errors are not counted. >> >> This patch ensures the correct number of errors >> is displayed on the mode-line: > > Actually maybe better to count errors not at the end > of compilation, but during compilation as output goes: Fixed in master in ef6715364d. From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jul 2019 22:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch To: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.156288292121398 (code B ref 36564); Thu, 11 Jul 2019 22:09:02 +0000 Received: (at 36564) by debbugs.gnu.org; 11 Jul 2019 22:08:41 +0000 Received: from localhost ([127.0.0.1]:38970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlhF2-0005Z4-SO for submit@debbugs.gnu.org; Thu, 11 Jul 2019 18:08:41 -0400 Received: from cadetblue.birch.relay.mailchannels.net ([23.83.209.28]:61519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlhEz-0005Yt-EC for 36564@debbugs.gnu.org; Thu, 11 Jul 2019 18:08:40 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B5BA3142AF7 for <36564@debbugs.gnu.org>; Thu, 11 Jul 2019 22:08:35 +0000 (UTC) Received: from pdx1-sub0-mail-a86.g.dreamhost.com (100-96-1-113.trex.outbound.svc.cluster.local [100.96.1.113]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4209914271D for <36564@debbugs.gnu.org>; Thu, 11 Jul 2019 22:08:35 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a86.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Thu, 11 Jul 2019 22:08:35 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Cure-White: 19badd29332e733d_1562882915576_1948478922 X-MC-Loop-Signature: 1562882915576:4162354977 X-MC-Ingress-Time: 1562882915575 Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id 3678D80EC0 for <36564@debbugs.gnu.org>; Thu, 11 Jul 2019 15:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=TnJmejKW0WXVH/3IzoTBI8dYdRc=; b= aASisCV9s883Uj03GHJ2UBQLkyI48EEYPr6TFb1k+wdb4xETnxdcoe+zUw5yqlEG 81jm+k6l+S5j6eMfSFYd7XHpvZgjwMMe313PDKSjbHKjLjoKEN3MhIaPeWo7ktrm YwE2svJXXhf1za23otWsx5gxL/56ChgMxJDraShYh1Q= Received: from mail.jurta.org (m91-129-110-101.cust.tele2.ee [91.129.110.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id E4E8D80EBF for <36564@debbugs.gnu.org>; Thu, 11 Jul 2019 15:08:29 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a86 From: Juri Linkov Organization: LINKOV.NET References: <871ryzhskw.fsf@mail.linkov.net> <87ef2xmsct.fsf@mail.linkov.net> Date: Fri, 12 Jul 2019 01:02:27 +0300 In-Reply-To: <87ef2xmsct.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 11 Jul 2019 01:34:27 +0300") Message-ID: <87zhlkw7po.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrgeelgddtjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrdduuddtrddutddunecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddutddruddtuddprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopeefieehieegseguvggssghughhsrdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain >> Often compilation-mode displays wrong number of errors >> in the mode-line even when compilation is finished. BTW, there is another problem with notifications in the mode-line. Recording devices have the record button identified by the red dot to indicate active recording mode. But in Emacs keyboard macro recording is not highlighted in the mode-line and easy to miss. This patch adds highlighting in the mode-line like on a recording device: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=defining-kbd-macro-red.patch diff --git a/lisp/bindings.el b/lisp/bindings.el index 5205d497ef..64842c4e1f 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -655,11 +655,11 @@ minor-mode-alist (put 'minor-mode-alist 'risky-local-variable t) ;; Don't use purecopy here--some people want to change these strings. (setq minor-mode-alist - '((abbrev-mode " Abbrev") + `((abbrev-mode " Abbrev") (overwrite-mode overwrite-mode) (auto-fill-function " Fill") ;; not really a minor mode... - (defining-kbd-macro " Def"))) + (defining-kbd-macro ,(propertize " Def" 'face 'error)))) ;; These variables are used by autoloadable packages. ;; They are defined here so that they do not get overridden --=-=-=-- From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jul 2019 22:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch To: Juri Linkov Cc: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.156288434523821 (code B ref 36564); Thu, 11 Jul 2019 22:33:02 +0000 Received: (at 36564) by debbugs.gnu.org; 11 Jul 2019 22:32:25 +0000 Received: from localhost ([127.0.0.1]:38991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlhby-0006C6-SU for submit@debbugs.gnu.org; Thu, 11 Jul 2019 18:32:25 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:15348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlhbv-0006Bn-J4 for 36564@debbugs.gnu.org; Thu, 11 Jul 2019 18:32:20 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1C0A0444A90; Thu, 11 Jul 2019 18:32:13 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C3464444A7A; Thu, 11 Jul 2019 18:32:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1562884331; bh=P1/SEESbCVGmiBNNFSu4ls81S5ZyKWZEqr4b2j4L24s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MNXxuX+fFg0tFOdi9qhlInqaGxJs4tIiTSwSxgJymcLifcoLMm0aDADZ4WuuiCtk9 PNkB2Pu/OLxOoYBkI7pg0Lx6bQ6S4nuExRR4xPmEfEGYBdrFBSZvP2J4WE0eti6l0d lIDRwVmp1r2HFAOkPxabOW+58LcClCvMK02Og8A2CzO+I2KdD+gKqcgTFQO2m5NMms 0IG1IEEKqQOBn71KAEzGhr5DbRJ08/gIygWnFryLQP6D3EYY4lJPjglkufW3nAA//0 OoY07jdVK+ouXQykxNzwI0fgYjqG/ijR4P17T7d92WEnmGax/3WQgBfQ1Gawg8bjTo gRyVvP34ZDWTA== Received: from milanesa (104-222-123-229.cpe.teksavvy.com [104.222.123.229]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 867DD12023B; Thu, 11 Jul 2019 18:32:11 -0400 (EDT) From: Stefan Monnier Message-ID: References: <871ryzhskw.fsf@mail.linkov.net> <87ef2xmsct.fsf@mail.linkov.net> Date: Thu, 11 Jul 2019 18:32:10 -0400 In-Reply-To: <87ef2xmsct.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 11 Jul 2019 01:34:27 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.250 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > --- a/lisp/progmodes/compile.el > +++ b/lisp/progmodes/compile.el > @@ -2245,6 +2250,8 @@ compilation-filter > (unless comint-inhibit-carriage-motion > (comint-carriage-motion (process-mark proc) (point))) > (set-marker (process-mark proc) (point)) > + ;; Update the number of errors in compilation-mode-line-errors > + (font-lock-ensure compilation-filter-start (point)) I worry that doing it there will slow down processing too much. But even if we want to do it there, I think font-lock-ensure is wrong because we shouldn't *highlight* (e.g. the user may prefer font-lock to be disabled). Does compilation--ensure-parse do what you want? Stefan From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2019 18:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch To: Stefan Monnier Cc: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.15629579268032 (code B ref 36564); Fri, 12 Jul 2019 18:59:02 +0000 Received: (at 36564) by debbugs.gnu.org; 12 Jul 2019 18:58:46 +0000 Received: from localhost ([127.0.0.1]:40738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm0kn-00025T-Vv for submit@debbugs.gnu.org; Fri, 12 Jul 2019 14:58:46 -0400 Received: from blue.elm.relay.mailchannels.net ([23.83.212.20]:48492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm0kj-00025H-Eq for 36564@debbugs.gnu.org; Fri, 12 Jul 2019 14:58:42 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AD996342BB3; Fri, 12 Jul 2019 18:58:39 +0000 (UTC) Received: from pdx1-sub0-mail-a71.g.dreamhost.com (100-96-14-124.trex.outbound.svc.cluster.local [100.96.14.124]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 300BC3428F1; Fri, 12 Jul 2019 18:58:39 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a71.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Fri, 12 Jul 2019 18:58:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Minister-Bored: 2fe1e4dc1f381d05_1562957919456_2219283789 X-MC-Loop-Signature: 1562957919456:2057652262 X-MC-Ingress-Time: 1562957919456 Received: from pdx1-sub0-mail-a71.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a71.g.dreamhost.com (Postfix) with ESMTP id 5A1928020A; Fri, 12 Jul 2019 11:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=CFfBG1OUo/DkcPLaldnHEelhvHU=; b= Nhy/NdpkkGcV5uQQvjQdQPyuyCk8lRh4RqEYRAeVmQNpj5XJ4K+8rC5c3PJOeTWf k5jROqKZGuQNXsR/gKgLKjTz0KumOS2p8PUI0Qn3qb4F3RKClEKGX27T3o1nzaRP ZeaJnzB+yyFqxVlZY033jHQvMsYSO7sbNIYbBPGXuO0= Received: from mail.jurta.org (m91-129-103-134.cust.tele2.ee [91.129.103.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a71.g.dreamhost.com (Postfix) with ESMTPSA id 49A5D801F1; Fri, 12 Jul 2019 11:58:30 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a71 From: Juri Linkov Organization: LINKOV.NET References: <871ryzhskw.fsf@mail.linkov.net> <87ef2xmsct.fsf@mail.linkov.net> Date: Fri, 12 Jul 2019 21:57:29 +0300 In-Reply-To: (Stefan Monnier's message of "Thu, 11 Jul 2019 18:32:10 -0400") Message-ID: <87d0ifm67a.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrhedtgddufedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdefrddufeegnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtfedrudefgedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehmohhnnhhivghrsehirhhordhumhhonhhtrhgvrghlrdgtrgenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> --- a/lisp/progmodes/compile.el >> +++ b/lisp/progmodes/compile.el >> @@ -2245,6 +2250,8 @@ compilation-filter >> (unless comint-inhibit-carriage-motion >> (comint-carriage-motion (process-mark proc) (point))) >> (set-marker (process-mark proc) (point)) >> + ;; Update the number of errors in compilation-mode-line-errors >> + (font-lock-ensure compilation-filter-start (point)) > > I worry that doing it there will slow down processing too much. > But even if we want to do it there, I think font-lock-ensure is wrong > because we shouldn't *highlight* (e.g. the user may prefer font-lock to > be disabled). > > Does compilation--ensure-parse do what you want? I tried compilation--ensure-parse, and it updates the number of errors, so I replaced font-lock-ensure with compilation--ensure-parse. From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2019 20:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch To: Juri Linkov Cc: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.156296217414911 (code B ref 36564); Fri, 12 Jul 2019 20:10:01 +0000 Received: (at 36564) by debbugs.gnu.org; 12 Jul 2019 20:09:34 +0000 Received: from localhost ([127.0.0.1]:40771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm1rK-0003sR-FA for submit@debbugs.gnu.org; Fri, 12 Jul 2019 16:09:34 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:2342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hm1rI-0003sC-JB for 36564@debbugs.gnu.org; Fri, 12 Jul 2019 16:09:33 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DF772444B46; Fri, 12 Jul 2019 16:09:26 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B7658444B43; Fri, 12 Jul 2019 16:09:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1562962165; bh=X1mmO1yU/KeIXeGEntdiDTrjYij0oeE03bl3qRnsI+Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=P51C/2BDLvk8Pjm3QN1y1+v9fXY2bBS7AahNBY/esFRBiyZrZyNQPwr1zGknMlOO6 TwvByzr4ua6YFsI/YVXo6raZXK53zqBY5U0B2AYB20kixzznt8hmltCHpv1eihLRWS uH1fuu/8qoC4mphgmaOSf8PFet0e8g0UgYXnY1f+2zieBQRlOO07donRYA1hYkmTCK pKk+hPfHKn5lZsMlWKvOTgAyMAZ1QBETP8r/oyCsM5z8vMSGKvt6wr7WkFALkXYYdD hDl/xvCphF+c04JfsGbe/oYSip4n2Y+yko/XvkDP34RWftgDUehPXUG/u+4KAH+8Be UzvskO1rCEKZQ== Received: from pastel (104-222-123-229.cpe.teksavvy.com [104.222.123.229]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 500C512096F; Fri, 12 Jul 2019 16:09:25 -0400 (EDT) From: Stefan Monnier Message-ID: References: <871ryzhskw.fsf@mail.linkov.net> <87ef2xmsct.fsf@mail.linkov.net> <87d0ifm67a.fsf@mail.linkov.net> Date: Fri, 12 Jul 2019 16:09:24 -0400 In-Reply-To: <87d0ifm67a.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 12 Jul 2019 21:57:29 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.524 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > I tried compilation--ensure-parse, and it updates the number of errors, > so I replaced font-lock-ensure with compilation--ensure-parse. Thanks, that's much better. I'm still worried about the performance cost of running compilation--ensure-parse every time we get a few chars from the process filter. Not sure how/where to delay it, tho. Maybe some idle timer? Stefan From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jul 2019 22:32:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch To: Stefan Monnier Cc: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.15630570801999 (code B ref 36564); Sat, 13 Jul 2019 22:32:03 +0000 Received: (at 36564) by debbugs.gnu.org; 13 Jul 2019 22:31:20 +0000 Received: from localhost ([127.0.0.1]:43543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmQY3-0000WB-D8 for submit@debbugs.gnu.org; Sat, 13 Jul 2019 18:31:19 -0400 Received: from beige.elm.relay.mailchannels.net ([23.83.212.16]:21162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmQY0-0000Vy-JI for 36564@debbugs.gnu.org; Sat, 13 Jul 2019 18:31:17 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0ED93501A8F; Sat, 13 Jul 2019 22:31:15 +0000 (UTC) Received: from pdx1-sub0-mail-a37.g.dreamhost.com (100-96-4-184.trex.outbound.svc.cluster.local [100.96.4.184]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 83F45501A4E; Sat, 13 Jul 2019 22:31:14 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a37.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Sat, 13 Jul 2019 22:31:14 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Wipe-Obese: 220ff9762a52bca5_1563057074851_3373947027 X-MC-Loop-Signature: 1563057074850:911778978 X-MC-Ingress-Time: 1563057074850 Received: from pdx1-sub0-mail-a37.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTP id DE010803F4; Sat, 13 Jul 2019 15:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=vYDObt7IspXZa9IOVjOhANCksAs=; b= JeEDZ4mWR7bF1GF/tcTMX1QKRul61lAw5GB4bVSQRZWm+OW1XPSGz0tR6cowXP1v gP3Jc0dgI4PRLbCNwqMP+tnaQEwoK9kGd2QW/d4E6NOwOD321Nh/3i51OvUC7uu1 eNxo+N673ZZZiX/kO4zjqBtDemH+sWIkSaHkjBnVbUQ= Received: from mail.jurta.org (m91-129-103-134.cust.tele2.ee [91.129.103.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a37.g.dreamhost.com (Postfix) with ESMTPSA id 8ACA8803F2; Sat, 13 Jul 2019 15:31:09 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a37 From: Juri Linkov Organization: LINKOV.NET References: <871ryzhskw.fsf@mail.linkov.net> <87ef2xmsct.fsf@mail.linkov.net> <87d0ifm67a.fsf@mail.linkov.net> Date: Sun, 14 Jul 2019 01:04:25 +0300 In-Reply-To: (Stefan Monnier's message of "Fri, 12 Jul 2019 16:09:24 -0400") Message-ID: <87wogl4m66.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrheefgdeflecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehttdertddtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtfedrudefgeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdefrddufeegpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepmhhonhhnihgvrhesihhrohdruhhmohhnthhrvggrlhdrtggrnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> I tried compilation--ensure-parse, and it updates the number of errors, >> so I replaced font-lock-ensure with compilation--ensure-parse. > > Thanks, that's much better. > I'm still worried about the performance cost of running > compilation--ensure-parse every time we get a few chars from the > process filter. > > Not sure how/where to delay it, tho. Maybe some idle timer? IIUC, after adding compilation--ensure-parse there is no performance degradation in case when the compilation buffer is displayed during compilation, because compilation--ensure-parse is called on the same-sized chunks as when the buffer is fontified by font-lock. I noticed this when tried to debug the problem of fontifying diff hunks, but I failed to find a solution. The problem is this: sometimes diff-mode doesn't refine some hunks during font-lock when the first part of the hunk emitted by diff-process-filter (from the diff command comparing files) is fontified partly, then after emitting the remaining part of the hunk it remains unfontified. From unknown Sat Sep 06 10:21:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36564: 27.0.50; Wrong number of errors in compilation mode-line Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jul 2019 12:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch To: Juri Linkov Cc: 36564@debbugs.gnu.org Received: via spool by 36564-submit@debbugs.gnu.org id=B36564.15631946746750 (code B ref 36564); Mon, 15 Jul 2019 12:45:02 +0000 Received: (at 36564) by debbugs.gnu.org; 15 Jul 2019 12:44:34 +0000 Received: from localhost ([127.0.0.1]:46833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn0LI-0001kl-Oe for submit@debbugs.gnu.org; Mon, 15 Jul 2019 08:44:34 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:53523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn0LG-0001kW-JJ for 36564@debbugs.gnu.org; Mon, 15 Jul 2019 08:44:31 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E0E56100951; Mon, 15 Jul 2019 08:44:23 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A7C63100393; Mon, 15 Jul 2019 08:44:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1563194662; bh=vFOuHYqrmMMYPGPrAH1AM2TkSp/IltE888EenQ19S20=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hJ1AmFQx/3BITXLjW2TYekzED6BbAeUjVsFt4i6Y+TOraaAQo8D6LAOx0N0lkax2w De6IHP8wsU2AyTMCrp4jcwM3+YqxqFPDw6tvUoR0611cigIIm1EBTsb5SGv5tABznZ fLudUxfz9ugKBHQ/lU8D2TRH8FP9ExQz7F6sRdIOB7YNbuTjuHifvqDfH9/9SBXgu6 Z9E5dobwzKswnIr5sOg6blZQ8LQELc0xxePk6oVPJl040/lRnII8VCK1wBoOaPUMuz v10o52Fn8ARSarswWs+X3cj5SeFe6CPm8xwpJqNSn6RpZdb3tJaMmj08nyKhs+yqGZ UCeqzHwhLUDvg== Received: from pastel (104-222-123-229.cpe.teksavvy.com [104.222.123.229]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7A7BD120436; Mon, 15 Jul 2019 08:44:22 -0400 (EDT) From: Stefan Monnier Message-ID: References: <871ryzhskw.fsf@mail.linkov.net> <87ef2xmsct.fsf@mail.linkov.net> <87d0ifm67a.fsf@mail.linkov.net> <87wogl4m66.fsf@mail.linkov.net> Date: Mon, 15 Jul 2019 08:44:21 -0400 In-Reply-To: <87wogl4m66.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 14 Jul 2019 01:04:25 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.362 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > IIUC, after adding compilation--ensure-parse there is no > performance degradation in case when the compilation buffer > is displayed during compilation, because compilation--ensure-parse > is called on the same-sized chunks as when the buffer is fontified > by font-lock. Only when the window displays the bottom of the buffer. > I noticed this when tried to debug the problem of fontifying > diff hunks, but I failed to find a solution. The problem is this: > sometimes diff-mode doesn't refine some hunks during font-lock > when the first part of the hunk emitted by diff-process-filter > (from the diff command comparing files) is fontified partly, > then after emitting the remaining part of the hunk it remains > unfontified. Yes, it's a bit tricky to handle this right while at the same time trying to avoid refontifying the same hunk N times (where N is proportional to the hunk size). Stefan