Add warning to reverso-history

This commit is contained in:
Pavel Korytov 2023-11-26 01:41:33 +03:00
parent 2945bb4b68
commit d0c69ae8e7

View file

@ -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