From e8477c583ca1614ff543439a5ca638e4110ba5b4 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Mon, 11 Mar 2024 18:46:03 +0100 Subject: [PATCH] auto-compile-mode: Improve error message --- auto-compile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-compile.el b/auto-compile.el index 50c0829..8192986 100644 --- a/auto-compile.el +++ b/auto-compile.el @@ -161,7 +161,7 @@ variant `auto-compile-on-save-mode'. Also see the related :group 'auto-compile (unless (derived-mode-p 'emacs-lisp-mode) (setq auto-compile-mode nil) - (user-error "This mode only makes sense with emacs-lisp-mode")) + (user-error "`auto-comile-mode' only makes sense in `emacs-lisp-mode'")) (if auto-compile-mode (add-hook 'after-save-hook #'auto-compile-byte-compile nil t) (remove-hook 'after-save-hook #'auto-compile-byte-compile t)))