From b4cc1c84d8e77e3a5cb2175be4908b6ce46d93a6 Mon Sep 17 00:00:00 2001 From: Daanturo Date: Sun, 7 Nov 2021 07:53:17 +0700 Subject: [PATCH] fix: wrong-number-of-args error on dtrt-indent-mode doom--fix-broken-smie-modes-a forces dtrt-indent-mode to expect exactly one argument so an error will be raised when the latter is turned on without args programmatically in lisp. --- core/core-editor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index 16aee9a81..3abe473af 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -499,7 +499,7 @@ files, so this replace calls to `pp' with the much faster `prin1'." (push '(t tab-width) dtrt-indent-hook-generic-mapping-list) (defvar dtrt-indent-run-after-smie) - (defadvice! doom--fix-broken-smie-modes-a (fn arg) + (defadvice! doom--fix-broken-smie-modes-a (fn &optional arg) "Some smie modes throw errors when trying to guess their indentation, like `nim-mode'. This prevents them from leaving Emacs in a broken state." :around #'dtrt-indent-mode