branch: externals/objed commit e5648b40ebf326898bb9da6376adb955ad7013c3 Author: Clemens Radermacher <clem...@posteo.net> Commit: Clemens Radermacher <clem...@posteo.net>
Ensure minibuffer commands reset even without objed-mode --- objed.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/objed.el b/objed.el index 1a89347..9b7a911 100644 --- a/objed.el +++ b/objed.el @@ -1388,6 +1388,9 @@ that any previous instance of this object is used." (setq objed--buffer (current-buffer)) (add-hook 'pre-command-hook 'objed--push-state nil t) (add-hook 'post-command-hook 'objed--check-buffer) + ;; the user might not use `objed-mode' at all + ;; so this hook might not be present already... + (add-hook 'minibuffer-setup-hook 'objed--reset) (pcase-dolist (`(,var . ,val)