From: steve-humphreys@gmx.com
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Keybinding emacs debug function
Date: Thu, 22 Apr 2021 15:38:18 +0200 [thread overview]
Message-ID: <trinity-e3f5ef9d-351c-4ef2-8436-263c647c7884-1619098698194@3c-app-mailcom-bs06> (raw)
Have written an emacs debug function with emacs complaining when I try
to set "H-g".
Regards
(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 ()
"Debugging gungadin"
(cycle-debug)
(global-set-key (kbd "H-g") #'cycle-debug) )
next reply other threads:[~2021-04-22 13:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 13:38 steve-humphreys [this message]
2021-04-22 17:58 ` Good checks for "debug-on-message" steve-humphreys
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-e3f5ef9d-351c-4ef2-8436-263c647c7884-1619098698194@3c-app-mailcom-bs06 \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.