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: Keybinding emacs debug function Date: Thu, 22 Apr 2021 15:38:18 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8278"; 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 15:38:42 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 1lZZXW-0001yF-C8 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 15:38:42 +0200 Original-Received: from localhost ([::1]:53446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZZXV-0002Wz-EG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 09:38:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZZXC-0002Wt-Em for help-gnu-emacs@gnu.org; Thu, 22 Apr 2021 09:38:22 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:47181) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZZXA-00033O-Iv for help-gnu-emacs@gnu.org; Thu, 22 Apr 2021 09:38:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619098698; bh=AHfkj8ZWHjATnPBwKoIx1ZD11oTdbdk+870SAZAjTTk=; h=X-UI-Sender-Class:From:To:Subject:Date; b=LHhj22r3jcqJYlcievq7hnHPklqw2mcAy1TAStdWKA7WaUpsHUUMJm9awk0wPCrJ+ QF7uNFCoi2km8aYMWnilo79AvESKiUA3vUjmpJ+sBbt9E0756Ys6fUJFz0KgndXzdB remLj2Grl5JogvIUJ3nkCYQuq0+6nN9fozvabdkM= 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-bs06.server.lan [172.19.170.174]) (via HTTP); Thu, 22 Apr 2021 15:38:18 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:nsStDwUCT5ZlFA+mR8MZ71ubHGmj61TwyMa3tkrPYiGzkEWTu4N3uEiUNScp9Q8Pcq+Mc /1mEs79lO+PtGJxYkrT/mbMCwnqw6ALzRL2NHb1J0ySS5at3co7lVvIkszWpEZiKa+BocmvJRXG5 6tof3tvJwiPDAhCsPuufnbRjn0hJBjFnMgFcBQmdXfofXCMdUHtFYZe7pWyL1grPlntX4QLpa4BG qpL988Px7JxAgSzzMPFh6J6J9xnLrHcN5R8YkDyg7Fp3xhzTHUk1Pd0d15B+jIH8ZH8zA+Z/qN8m BU= X-UI-Out-Filterresults: notjunk:1;V03:K0:fxkSJ2qZWdc=:Zgmwc4kn2PVWkIFCdqIUmW FMXPzwOXNekbn9r/Xb5r2Kw/zZTdvob5IrLkYVyMdsUYsCSwMv5kpnqljKidJIYpvKwdJW3+S EDhuWPnmELKUMO0Ih88VVoxZ4n52JQ0Go0xzpYomhwJMGkVWkhsHyAJxI/kgEYKsW9rWDZj+1 UZ6d99gWnScmbUk9kZqiBcuKIwsAIu5Cql2ah/dEmHCMaizdcyYwb0T162gDLkUnDZ9RaH6Po 6Piwmx8CZ8O/QrajY2A6GmmMEhh/kAcfi/pxRTOUSrx5ZtHCS260A5wQF8ixRNMYaM7iDX9hg ogD/aPDKW6pHd1fsdnyk2cuFnqBSjxLJmA7odUtaI9YKapFyta7Uzjvx+QXnvBGO1z8iUVY3I 0mOofzd0vaotD18lhsLwojYLMBjku9fnoWW0MeB4b8C04N/yLEywpzSo5NzdP4XDMo99UavEV GGKxXHe2kwS0Op1gRUIYbBY1owskdeNxpJzEBMN3ukOgD8mVm8FE/eCrAPl1uivsr42DeeUVe z8y6DzfaQfBA7Hin7JCCqXCS5bGHAMvRH3e2cnw4LjPcbNYA8oTL6gBo4BkGLZTZWE2lyUl6c 6sPlSCcDldNLmH9Qypyvxx1v2g/knUcVlTJhzrANEny2YI9PMpD122I3X5dn5kcF+AXkxqGpk tUyh2XDV5T+mZXpcFqLbgtbdGk1ec1rXViCP0/Q2PaCjAM6W/X/qSLn8z7IEufD35ZigjLQhy pJCqCnJCRByKVDu75usEw29U0aZleY2bU6kmT9jymepCbgTuwOWlwT8PSovOk6vZ3Ni23U9a Received-SPF: pass client-ip=212.227.17.20; 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:129116 Archived-At: 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) )