From: steve-humphreys@gmx.com
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Good checks for "debug-on-message"
Date: Thu, 22 Apr 2021 19:58:31 +0200 [thread overview]
Message-ID: <trinity-00dbe1ba-1388-41cb-a0d0-509000c5f6c8-1619114311008@3c-app-mailcom-bs16> (raw)
In-Reply-To: <trinity-e3f5ef9d-351c-4ef2-8436-263c647c7884-1619098698194@3c-app-mailcom-bs06>
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) )
>
>
>
>
prev parent reply other threads:[~2021-04-22 17:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 13:38 Keybinding emacs debug function steve-humphreys
2021-04-22 17:58 ` steve-humphreys [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-00dbe1ba-1388-41cb-a0d0-509000c5f6c8-1619114311008@3c-app-mailcom-bs16 \
--to=steve-humphreys@gmx.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).