From unknown Sat Aug 16 19:20:23 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2668: user option `warning-suppress-types' Reply-To: Stefan Boeters , 2668@debbugs.gnu.org Resent-From: Stefan Boeters Original-Sender: stefan.boeters@web.de Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 13 Mar 2009 22:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2668 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123698259214119 (code B ref -1); Fri, 13 Mar 2009 22:25:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 13 Mar 2009 22:16:32 +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.1 required=4.0 tests=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.13.8/8.13.8/Debian-3) with ESMTP id n2DMGSwL014113 for ; Fri, 13 Mar 2009 15:16:30 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiFg4-0002A8-Ej for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiFfy-00029w-K2 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:26 -0400 Received: from [199.232.76.173] (port=47055 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiFfy-00029q-E6 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:22 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:58323) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiFfx-0005rx-M0 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:22 -0400 Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id A4E46FE946A2 for ; Fri, 13 Mar 2009 23:16:19 +0100 (CET) Received: from [86.83.157.195] (helo=[192.168.1.64]) by smtp05.web.de with asmtp (WEB.DE 4.110 #277) id 1LiFfv-0002BY-00 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 23:16:19 +0100 Message-ID: <49BADB31.20007@web.de> Date: Fri, 13 Mar 2009 23:16:17 +0100 From: Stefan Boeters User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: stefan.boeters@web.de X-Sender: stefan.boeters@web.de X-Provags-ID: V01U2FsdGVkX19MHP4Yq0Md6v1ubF0MxjLbtdMuFCKS0EIrr9g1 4KN/7K/iMsuV7TSHAAn+bfqhLdteT7KI9gZMSnTJtf7NmOD5la XsT0MgykD1FY9XTGDDyQ== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 I regularly refresh newly generated output files that are open as a buffer in Emacs with "revert-buffer". If these files are very large, this produces the following warning: "Warning (undo): Buffer `calibrate.lst' undo info was 34019863 bytes long. The undo info was discarded because it exceeded `undo-outer-limit'. This is normal if you executed a command that made a huge change to the buffer. In that case, to prevent similar problems in the future, set `undo-outer-limit' to a value that is large enough to cover the maximum size of normal changes you expect a single command to make, but not so large that it might exceed the maximum memory allotted to Emacs. If you did not execute any such command, the situation is probably due to a bug and you should report it. You can disable the popping up of this buffer by adding the entry (undo discard-info) to the user option `warning-suppress-types'." I wanted to disable the popping up of the warning, but failed (with my rudimentary Emacs knowledge). If I got it correctly from the discussion in gnu.emacs.help (thread "Adding an entry to a user option"), the problem is that the user option cannot (immediately) be customised, because it is not defined by default. This is what Drew Adams wrote in gnu.emacs.help: "Grepping the Emacs 23 lisp libraries for `warning-suppress-types' shows that it is referred to in a doc string in `simple.el', but it is defined and used only in library `warnings.el', which is not loaded by default. You cannot customize it using Customize until it has been defined. I think the fact that it is referenced in `simple.el' but undefined by default is a bug - please report it using `M-x report-emacs-bug'. But I warn you that it's likely that Stefan M. will reply that it is normal that most user options are not defined by default. ;-) I guess it all depends whether the doc string in `simple.el' is ever likely to be user-visible without `warnings.el' having yet been loaded." He asked me to report the bug here. Stefan In GNU Emacs 22.3.1 (i386-mingw-nt6.0.6001) of 2008-09-06 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: GAMS-LST Minor modes in effect: show-paren-mode: t cua-mode: t encoded-kbd-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-w 2 M-r M-x r e p o r t - e m a c s - b u g Recent messages: Loading paren...done Loading speedbar...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading url-util...done Updating speedbar to: d:/data/GAMS/WorldScan/model_09/lst/baseline_EMF/...done kill-region: The mark is not set now, so there is no region Split window. Loading kmacro...done byte-code: Beginning of buffer Loading emacsbug...done From unknown Sat Aug 16 19:20:23 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2668: user option `warning-suppress-types' Reply-To: Stefan Monnier , 2668@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 14 Mar 2009 02:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2668 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123699748311152 (code B ref -1); Sat, 14 Mar 2009 02:30:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Mar 2009 02:24:43 +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.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=unavailable 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.13.8/8.13.8/Debian-3) with ESMTP id n2E2Oerl011141 for ; Fri, 13 Mar 2009 19:24:41 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiJYG-0007x9-6m for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 22:24:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiJYA-0007wx-Q7 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 22:24:38 -0400 Received: from [199.232.76.173] (port=37739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiJYA-0007wu-KV for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 22:24:34 -0400 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:40643 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiJYA-0007SG-Dc for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 22:24:34 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AugFAOOxuklFxIZP/2dsb2JhbACBTs5Wg34GhEI X-IronPort-AV: E=Sophos;i="4.38,361,1233550800"; d="scan'208";a="35167663" Received: from 69-196-134-79.dsl.teksavvy.com (HELO pastel.home) ([69.196.134.79]) by ironport2-out.teksavvy.com with ESMTP; 13 Mar 2009 22:24:32 -0400 Received: by pastel.home (Postfix, from userid 20848) id 1286B81DE; Fri, 13 Mar 2009 22:24:32 -0400 (EDT) From: Stefan Monnier To: Stefan Boeters Cc: 2668@debbugs.gnu.org, bug-gnu-emacs@gnu.org Message-ID: References: <49BADB31.20007@web.de> Date: Fri, 13 Mar 2009 22:24:32 -0400 In-Reply-To: <49BADB31.20007@web.de> (Stefan Boeters's message of "Fri, 13 Mar 2009 23:16:17 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 > I regularly refresh newly generated output files that are open as a > buffer in Emacs with "revert-buffer". If these files are very large, > this produces the following warning: > "Warning (undo): Buffer `calibrate.lst' undo info was 34019863 bytes long. > The undo info was discarded because it exceeded `undo-outer-limit'. That looks like a bug, indeed. Stefan From unknown Sat Aug 16 19:20:23 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Stefan Boeters Subject: bug#2668 closed by Chong Yidong (Re: user option `warning-suppress-types') Message-ID: References: <877i2satgd.fsf@cyd.mit.edu> <49BADB31.20007@web.de> X-Emacs-PR-Message: they-closed 2668 X-Emacs-PR-Package: emacs Reply-To: 2668@debbugs.gnu.org Date: Sat, 14 Mar 2009 17:50:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1237053004-22473-1" This is a multi-part message in MIME format... ------------=_1237053004-22473-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2668: user option `warning-suppress-types' It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 2668: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2668 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1237053004-22473-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2668-done) by emacsbugs.donarmstrong.com; 14 Mar 2009 17:44:55 +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.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2EHiq6W021170 for <2668-done@emacsbugs.donarmstrong.com>; Sat, 14 Mar 2009 10:44:53 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 25F2E57E211; Sat, 14 Mar 2009 13:46:10 -0400 (EDT) From: Chong Yidong To: Stefan Boeters Cc: 2668-done@debbugs.gnu.org Subject: Re: user option `warning-suppress-types' Date: Sat, 14 Mar 2009 13:46:10 -0400 Message-ID: <877i2satgd.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > I wanted to disable the popping up of the warning, but failed (with my > rudimentary Emacs knowledge). If I got it correctly from the > discussion in gnu.emacs.help (thread "Adding an entry to a user > option"), the problem is that the user option cannot (immediately) be > customised, because it is not defined by default. Actually, `warning-suppress-types' can be customised as soon as the warning is shown, because that loads the warnings library. If you want to customize it in a freshly-launched Emacs, do `M-x load-library RET warnings RET'. I've added a note to the warning message that warning-suppress-types is defined in the `warnings' Lisp library. ------------=_1237053004-22473-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 13 Mar 2009 22:16:32 +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.1 required=4.0 tests=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.13.8/8.13.8/Debian-3) with ESMTP id n2DMGSwL014113 for ; Fri, 13 Mar 2009 15:16:30 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LiFg4-0002A8-Ej for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LiFfy-00029w-K2 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:26 -0400 Received: from [199.232.76.173] (port=47055 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LiFfy-00029q-E6 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:22 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:58323) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LiFfx-0005rx-M0 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 18:16:22 -0400 Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id A4E46FE946A2 for ; Fri, 13 Mar 2009 23:16:19 +0100 (CET) Received: from [86.83.157.195] (helo=[192.168.1.64]) by smtp05.web.de with asmtp (WEB.DE 4.110 #277) id 1LiFfv-0002BY-00 for bug-gnu-emacs@gnu.org; Fri, 13 Mar 2009 23:16:19 +0100 Message-ID: <49BADB31.20007@web.de> Date: Fri, 13 Mar 2009 23:16:17 +0100 From: Stefan Boeters User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: user option `warning-suppress-types' Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: stefan.boeters@web.de X-Sender: stefan.boeters@web.de X-Provags-ID: V01U2FsdGVkX19MHP4Yq0Md6v1ubF0MxjLbtdMuFCKS0EIrr9g1 4KN/7K/iMsuV7TSHAAn+bfqhLdteT7KI9gZMSnTJtf7NmOD5la XsT0MgykD1FY9XTGDDyQ== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 I regularly refresh newly generated output files that are open as a buffer in Emacs with "revert-buffer". If these files are very large, this produces the following warning: "Warning (undo): Buffer `calibrate.lst' undo info was 34019863 bytes long. The undo info was discarded because it exceeded `undo-outer-limit'. This is normal if you executed a command that made a huge change to the buffer. In that case, to prevent similar problems in the future, set `undo-outer-limit' to a value that is large enough to cover the maximum size of normal changes you expect a single command to make, but not so large that it might exceed the maximum memory allotted to Emacs. If you did not execute any such command, the situation is probably due to a bug and you should report it. You can disable the popping up of this buffer by adding the entry (undo discard-info) to the user option `warning-suppress-types'." I wanted to disable the popping up of the warning, but failed (with my rudimentary Emacs knowledge). If I got it correctly from the discussion in gnu.emacs.help (thread "Adding an entry to a user option"), the problem is that the user option cannot (immediately) be customised, because it is not defined by default. This is what Drew Adams wrote in gnu.emacs.help: "Grepping the Emacs 23 lisp libraries for `warning-suppress-types' shows that it is referred to in a doc string in `simple.el', but it is defined and used only in library `warnings.el', which is not loaded by default. You cannot customize it using Customize until it has been defined. I think the fact that it is referenced in `simple.el' but undefined by default is a bug - please report it using `M-x report-emacs-bug'. But I warn you that it's likely that Stefan M. will reply that it is normal that most user options are not defined by default. ;-) I guess it all depends whether the doc string in `simple.el' is ever likely to be user-visible without `warnings.el' having yet been loaded." He asked me to report the bug here. Stefan In GNU Emacs 22.3.1 (i386-mingw-nt6.0.6001) of 2008-09-06 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: GAMS-LST Minor modes in effect: show-paren-mode: t cua-mode: t encoded-kbd-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-w 2 M-r M-x r e p o r t - e m a c s - b u g Recent messages: Loading paren...done Loading speedbar...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading url-util...done Updating speedbar to: d:/data/GAMS/WorldScan/model_09/lst/baseline_EMF/...done kill-region: The mark is not set now, so there is no region Split window. Loading kmacro...done byte-code: Beginning of buffer Loading emacsbug...done ------------=_1237053004-22473-1--