I have some customisations in ~/.emacs.el
. Today I refactored a piece that used dolist
, directory-files
, and find-file
. I am now unable to quit Emacs in the normal way and I get this from the mini-buffer:
Wrong type argument: hash-table-p, nil
I only have one kill hook, which calls a function mu4e-mark-execute-all
defined in mu4e
:
(require 'mu4e)
(defun mu4e-execute-marks ()
(interactive)
(mu4e-mark-execute-all t)
)
(add-hook 'kill-emacs-hook 'mu4e-execute-marks)
I understand that the LISP debugger is for evaluating expressions or functions. Can I set a stacktrace to see the cause of the error?
mu4e-execute-marks
defined? – muffinmad May 28 '19 at 14:06M-: (let (kill-emacs-hook) (kill-emacs))
. – Tobias May 28 '19 at 15:01mu4e
and I updated the question. – miguelmorin May 28 '19 at 15:03mu4e
throwing an error when it has no marks to execute, so I wrapped the call in(condition-case ...)
. Do you want to write an answer? – miguelmorin May 28 '19 at 15:22