From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: steve-humphreys@gmx.com Newsgroups: gmane.emacs.help Subject: Good checks for "debug-on-message" Date: Thu, 22 Apr 2021 19:58:31 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14496"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 22 19:59:21 2021 Return-path: Envelope-to: geh-help-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 1lZdbl-0003XI-Li for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 19:59:21 +0200 Original-Received: from localhost ([::1]:45038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZdbj-0005P9-Oi for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 13:59:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZdb5-0005Ov-Jw for help-gnu-emacs@gnu.org; Thu, 22 Apr 2021 13:58:39 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:50951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZdaz-0007tX-1r for help-gnu-emacs@gnu.org; Thu, 22 Apr 2021 13:58:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619114311; bh=ESl4HlbNW99Xkt0+Kzrhuds2mBxzhJPzvkGa/FLcTFw=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=QXuBZnFtytqAWkoG1dVgUAt/E1w3GohcI67NnMOzL2ceF7JCS9nXaE7eB3RY26d9L qEeXSExvItpHMaq78e6oe8kpk2AZa3VjD9qwcaPBwNSTROyS+i/cjS127ceT1j9PFK +Z2l0xq/N7OHIWcOuGlhyecYfnHo1z6TvDfOZKJI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Thu, 22 Apr 2021 19:58:31 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:5u2Tkqzwy397W60KPS7K3WDxiT1/zw/CtpQO0gDyDF7eHYLYp5f/4U9rpFHh+hFFqE3VH OemEASgQ70kcwuiwcdt/YYUX+BKf0ez3sBZc2t5IsH/LXppAceT5AlE3O6iShwAGCLuK++1QI6ZP anGJ+sviNAQUCdGoCorKGQxXMWka6yKhtk4gMIbgYgZUaELKI2qho1vUrhpWn1cA0pJTY5EWBQjr vfA5wdPeWzX4OZoVqa51PHFZuFEWo9ixZ/rz2IA0gpf3ygI48WntqyiSghf/u+4EUVnBpotcTcsO Jg= X-UI-Out-Filterresults: notjunk:1;V03:K0:woQzRjEv6ts=:DJ/fpdL2U65uk6YFjRXUSN vhZvQU2t0B1yZwfcvI9GL9OGaUZpHaNOOwfrGYjj4fSRna7FD8LMueQ4KZq+X1J1pduj/xg/i rnDcxf6lYYKy9n1V5MAcnPWwNh/0J8FlPm8lhrph6KzgLfZhTI7cKyDmKobnFhewuYNA8wRYG nBD11KSYRn/oDKY7lymIIwqCPqBJehdCxyzHY797Kf4sc1CoC8OxUagBWKnTg98IfwWfCs3DT vx/dTGfGbH329X/v2jUvBFLs9QfxrJ4YTLDxh1FW424jpqxBXwtRi4TSeUYLckp9S1v7ZUzUs akfbfQVndF7cNViQrvOGLfwQ29OPjjHDRGnIj335H+Sd5jP2mBsmtaxfmzxu+M03IaG4vjA1c TCUQzQ95H9UysvXgiIa+uBZvow7j7dTtNHzLGVdng1II9bvAge6DQgkML2eIko2kBClyt7Hck EMcY9a15SL66W4Y7jb0zBMWJEHlwyq4IANvYYGgPGVRpBjOnRGxyR9FE6c+rzK6SOXN21W5gk VNZE027qnPYwalcqOXXEIkWr+/cwssygvnAy1LE8lJeQxHgLXhLW3hzd2biPLiBPlsaVgnkJ1 ZB/W4NudhSITvZTAmzdH67eGhYx83u3eCT70evjOZjl3BlfnverNLDVP98ImWJ9myjkfGzwRh ak90LgbFzRofNjlQ+7F9VcDYCOJzz3hFIWKTbrNFcsAgWstlGoVRFsXRCZne+QHdbsfhLzoJq 8Ar55+xBxe/dJmCeTj+vIXuvKx7XY/e/g+CH6JIxUa52RnCET6LyZXSKwMuB4mbP/jM12dI5 Received-SPF: pass client-ip=212.227.17.21; envelope-from=steve-humphreys@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129121 Archived-At: what would be good checks for "debug-on-message"? > (defun cycle-debug (n) > "Enables the Emacs Debugger." > > (pcase n > (1 (setq debug-on-error t) ) ; calls debugger on signalled errors > (2 (setq debug-on-error t) > (setq debug-ignored-errors t) ) > (3 (setq debug-on-error t) ; case that debugs all errors > (setq debug-ignored-errors t) > (setq debug-on-message "unescaped character literals") ) > (_ (setq debug-on-error nil) ))) > > (defun emacs-debug () > "Sets debugging capability" > (cycle-debug) > (global-set-key (kbd "H-g") #'cycle-debug) ) > > > >