branch: externals/consult commit 03cbf0eaf18c2678755b97a06a0b3191eab7da0e Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
consult-completion-in-region: Barf if buffer is read only --- consult.el | 1 + 1 file changed, 1 insertion(+) diff --git a/consult.el b/consult.el index 4eaf679..2540810 100644 --- a/consult.el +++ b/consult.el @@ -2283,6 +2283,7 @@ These configuration options are supported: * :completion-styles - Use completion styles (def: `completion-styles') * :require-match - Require matches when completing (def: nil) * :prompt - The prompt string shown in the minibuffer" + (barf-if-buffer-read-only) (cl-letf* ((config (alist-get #'consult-completion-in-region consult--read-config)) ;; Overwrite both the local and global value of `completion-styles', such that the ;; `completing-read' minibuffer sees the overwritten value in any case. This is