From d0c69ae8e7cddcd68a56617a4a82d1ea30d8ae5a Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sun, 26 Nov 2023 01:41:33 +0300 Subject: [PATCH] Add warning to reverso-history --- reverso.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reverso.el b/reverso.el index 302061d..b4324c7 100644 --- a/reverso.el +++ b/reverso.el @@ -1240,6 +1240,9 @@ OP, DATA and PARAMS are as described in `reverso--operation-hook'." Enable `reverso-history-mode' to record history." (interactive) + (when (and (seq-empty-p reverso--history) + (not reverso-history-mode)) + (user-error "Enable `reverso-history-mode' to record history")) (reverso--with-buffer (insert (format