;; I am trying to instrument all functions in all of my *.el files
;; but I am running into grief Getting *Debugging*
;; Please consider the following code that belongs at the top of the
;; file: ~/.emacs:
(defmacro dmp-quote (&rest rest)
t)
(progn
(require 'debug)
(require 'edebug)
;;(setq debug-on-error nil)
(setq edebug-all-defs t)
(setq edebug-all-forms t)
(setq edebug-on-error t)
(edebug-eval-top-level-form) ;; <-- bug in my earlier code is a function not a variable
)
(defun smegulator ()
smegulator-void-var
)
;;(smegulator) ;; NOTE: commented for later evaluation
(dmp-quote
;; NOTE: strictly for Davin's use...
(progn
(load-file "~/dlisp/custom-set-faces.el")
(setq load-path (cons "~/dlisp/jtw-start/" load-path))
(require 'dmp-safe--require)
)
)
(dmp-quote
When I put the following code at the start of my .emacs file it
executes without errors as it should. However when I
evaluate (smegulator) it brings up the following message
in the *Backtrace* buffer:
Debugger entered--Lisp error: (void-function smegulator)
(smegulator)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
command-execute(eval-last-sexp)
without a black triangle indicating we are not in the edebug
*Debugging* When I put the cursor inside (defun smegulator ()
smegulator-void-var) and evaluate C-M-x it comes back with the
following error, again without a black triangle so edebug mode is
not activated.
edebug-after: Symbol’s value as variable is void: smegulator-void-var
again without a black triangle indicating the edebug mode is not activated
i.e. how do you get Emacs to do a C-u C-M-x on every defun in
every *.el files without doing it manually C-u C-M-x for every
function one at a time?
Sometimes when I evaluate M-C-x or C-u M-C-x it brings up a
black triangle indicating we are entering edebug mode, but the
correct behaviour is pretty much a hit and miss affair.
)