emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu f1e1abf: Barf if buffer is read only


From: ELPA Syncer
Subject: [elpa] externals/corfu f1e1abf: Barf if buffer is read only
Date: Mon, 22 Nov 2021 21:57:10 -0500 (EST)

branch: externals/corfu
commit f1e1abfece208c5f4a0228adb424c9531d1bebb5
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Barf if buffer is read only
---
 corfu.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/corfu.el b/corfu.el
index 96aafa2..079a640 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1024,6 +1024,7 @@ there hasn't been any input, then quit."
 
 (defun corfu--completion-in-region (&rest args)
   "Corfu completion in region function passing ARGS to 
`completion--in-region'."
+  (barf-if-buffer-read-only)
   (if (not (display-graphic-p))
       ;; XXX Warning this can result in an endless loop when 
`completion-in-region-function'
       ;; is set *globally* to `corfu--completion-in-region'. This should never 
happen.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]