branch: externals/consult commit da14bfb035c07b579f351f3a2828a9e6dffc597b Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
consult--read-from-kill-ring: Check if kill-ring is empty --- consult.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consult.el b/consult.el index a72cd48..d76ac8b 100644 --- a/consult.el +++ b/consult.el @@ -2808,7 +2808,8 @@ If no MODES are specified, use currently active major and minor modes." (consult--lookup-member nil kill-ring (consult--read - (consult--remove-dups kill-ring) + (consult--remove-dups + (or kill-ring (user-error "Kill ring is empty"))) :prompt "Yank from kill-ring: " :history t ;; disable history :sort nil