From unknown Fri Aug 15 16:19:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5164 <5164@debbugs.gnu.org> To: bug#5164 <5164@debbugs.gnu.org> Subject: Status: 23.1; message-log-max ignored by display engine Reply-To: bug#5164 <5164@debbugs.gnu.org> Date: Fri, 15 Aug 2025 23:19:51 +0000 retitle 5164 23.1; message-log-max ignored by display engine reassign 5164 emacs submitter 5164 "Drew Adams" severity 5164 normal thanks From drew.adams@oracle.com Wed Dec 9 08:57:45 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 9 Dec 2009 16:57:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB9GviSU031453 for ; Wed, 9 Dec 2009 08:57:45 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIPrA-0000Pg-Ng for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2009 11:57:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIPr6-0000M2-4o for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2009 11:57:40 -0500 Received: from [199.232.76.173] (port=51111 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIPr5-0000Lq-VD for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2009 11:57:36 -0500 Received: from acsinet11.oracle.com ([141.146.126.233]:19022) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NIPr5-0001FZ-Hl for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2009 11:57:35 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nB9Gva6F007445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 9 Dec 2009 16:57:37 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nB9Gvjok032365 for ; Wed, 9 Dec 2009 16:57:46 GMT Received: from abhmt014.oracle.com by acsmt355.oracle.com with ESMTP id 901717341260377803; Wed, 09 Dec 2009 08:56:43 -0800 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 09 Dec 2009 08:56:43 -0800 From: "Drew Adams" To: Subject: 23.1; message-log-max ignored by display engine Date: Wed, 9 Dec 2009 08:56:42 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acp48JVPmvTBtyS8RKWtxhWft4d7xA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4B1FD6F6.01BD:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) The display engine writes messages to *Messages* even when `message-log-max' is nil (see bug #4835). This can reduce performance considerably in some cases. It would be good to fix this, so the variable is respected. If for some reason it is not feasible to fix this, then please at least fix the doc, to mention this. Neither the manual nor the doc string say anything about the display code ignoring this variable. In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' From cyd@stupidchicken.com Sat Dec 12 08:53:15 2009 Received: (at 5164) by emacsbugs.donarmstrong.com; 12 Dec 2009 16:53:16 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.3 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po39.its.yale.edu (pantheon-po39.its.yale.edu [130.132.50.100]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBCGrEfX024681 for <5164@emacsbugs.donarmstrong.com>; Sat, 12 Dec 2009 08:53:15 -0800 Received: from furry (adsl-99-58-202-243.dsl.wlfrct.sbcglobal.net [99.58.202.243]) (authenticated bits=0) by pantheon-po39.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nBCGr8n4000885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 12 Dec 2009 11:53:08 -0500 Received: by furry (Postfix, from userid 1000) id 69CDAC071; Sat, 12 Dec 2009 11:53:08 -0500 (EST) From: Chong Yidong To: "Drew Adams" Cc: 5164@debbugs.gnu.org Subject: Re: 23.1; message-log-max ignored by display engine Date: Sat, 12 Dec 2009 11:53:08 -0500 Message-ID: <87iqccdthn.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > The display engine writes messages to *Messages* even when > `message-log-max' is nil (see bug #4835). This can reduce performance > considerably in some cases. > > It would be good to fix this, so the variable is respected. I can't reproduce this. If I load the buggy column-marker.el from Bug#4835, set message-log-max to nil, and do M-x column-marker-1, no error messages are logged. From drew.adams@oracle.com Sat Dec 12 09:37:01 2009 Received: (at 5164) by emacsbugs.donarmstrong.com; 12 Dec 2009 17:37:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from rgminet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBCHb0UV030407 for <5164@emacsbugs.donarmstrong.com>; Sat, 12 Dec 2009 09:37:01 -0800 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nBCHbFaT005915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 12 Dec 2009 17:37:17 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id nBCG5eMq014162; Sat, 12 Dec 2009 17:37:14 GMT Received: from abhmt005.oracle.com by acsmt356.oracle.com with ESMTP id 961677921260639394; Sat, 12 Dec 2009 09:36:34 -0800 Received: from dradamslap1 (/24.5.185.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 12 Dec 2009 09:36:32 -0800 From: "Drew Adams" To: "'Chong Yidong'" Cc: <5164@debbugs.gnu.org> References: <87iqccdthn.fsf@stupidchicken.com> Subject: RE: 23.1; message-log-max ignored by display engine Date: Sat, 12 Dec 2009 09:36:37 -0800 Message-ID: <61CFCE1BADF7428ABEF79B926FA004FB@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87iqccdthn.fsf@stupidchicken.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: Acp7S5vKRcTuYNy1SQmgsBhD6z87+AAAgDxw X-Source-IP: acsmt358.oracle.com [141.146.40.158] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4B23D4B3.0181:SCFMA4539814,ss=1,fgs=0 > > The display engine writes messages to *Messages* even when > > `message-log-max' is nil (see bug #4835). This can reduce > > performance considerably in some cases. > > > > It would be good to fix this, so the variable is respected. > > I can't reproduce this. If I load the buggy column-marker.el from > Bug#4835, set message-log-max to nil, and do M-x column-marker-1, no > error messages are logged. You're right. What I was trying, which does not work, was _binding_ `message-log-max' to nil in `column-marker-find', which is the function used in the font-lock-keywords spec. (defun column-marker-find (col) (let ((fn-symb (intern (format "column-marker-move-to-%d" col)))) (fset `,fn-symb `(lambda (end) (let ((start (point)) (message-log-max nil)) ; <<<<<<<<<<<<< ...))) fn-symb)) I was mistakenly assuming that since `column-marker-find' is the function that performs the font-lock locating, that that was where the message was ultimately coming from. I assumed that the message was somehow displayed during font-locking. I knew it was coming from the display-engine code, but I wasn't clear on the relation between that code and the font-lock code. I don't see, now, that there is any place in the code where `message-log-max' could be `let'-bound to nil to suppress such messages. The display-engine code that logs the message is probably not governed by the scope of any such user-code `let' form. Am I right about that? IOW, binding the variable for font-locking wouldn't seem to make any difference, no matter where it is done. Please let me know if I'm misunderstanding this part. How could one bind it, in the context of font-locking, say, so that it has an effect? All I can think of to control this by code would be to define a mode (e.g. a minor mode) that sets the var to nil on entry and restores it on exit. I don't see how `let'-binding could control it. But I'd like to understand better. I think you can close this bug. Sorry for the noise. However, perhaps it would be possible for such message logging to be condensed, as we generally do for repeated messages. Instead of blindly logging a message 80 zillion times, we could perhaps just write `[800000000 times]' or some such. That's what we do for other repeated messages. Would that stop/reduce the severe performance drain? Please close the bug if you think there is no hope or no value in trying to reduce the message-logging noise. Thx. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 01 13:48:31 2010 Received: (at control) by debbugs.gnu.org; 1 Jan 2010 18:48:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQmY3-0007fa-B4 for submit@debbugs.gnu.org; Fri, 01 Jan 2010 13:48:31 -0500 Received: from pantheon-po19.its.yale.edu ([130.132.50.75]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQmY1-0007fR-KL for control@debbugs.gnu.org; Fri, 01 Jan 2010 13:48:30 -0500 Received: from furry (dhcp128036014103.central.yale.edu [128.36.14.103]) (authenticated bits=0) by pantheon-po19.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o01ImPBN016599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 1 Jan 2010 13:48:25 -0500 Received: by furry (Postfix, from userid 1000) id 65C9CC05D; Fri, 1 Jan 2010 13:48:25 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 5164 Date: Fri, 01 Jan 2010 13:48:25 -0500 Message-ID: <87vdfl8xvq.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.5 (-) close 5164 thanks From unknown Fri Aug 15 16:19:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 30 Jan 2010 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator