[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: How do I go about debugging my Elisp code?
From: |
Emanuel Berg |
Subject: |
Re: Fwd: How do I go about debugging my Elisp code? |
Date: |
Thu, 13 Jan 2022 02:34:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Davin Pearson wrote:
> I sent this email to the google group
> gnu.emacs.help but got no reply :-(
Yeah, that doesn't work anymore ...
"How do I go about debugging my Elisp code?"
Start by byte-compiling all the source ... Example: [1]
Then fix all errors and warnings ...
Then do
(require 'checkdoc)
(setq checkdoc-permit-comma-termination-flag t)
(defun check-package-style ()
(interactive)
(let ((msg "Style check..."))
(message msg)
(checkdoc-current-buffer t) ; TAKE-NOTES
(message "%sdone" msg) ))
(defalias 'check-style #'check-package-style)
and fix everything that isn't related to it being a package,
unless it is a package, of course ;)
When everything is fixed ... THINK!
After that, if the problem remains, ask here :)
[1] https://dataswamp.org/~incal/emacs-init/Makefile
--
underground experts united
https://dataswamp.org/~incal