[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5d0e5f08650: ; Inhibit completion preview in read-only buffers
From: |
Eshel Yaron |
Subject: |
master 5d0e5f08650: ; Inhibit completion preview in read-only buffers |
Date: |
Wed, 21 Aug 2024 05:30:29 -0400 (EDT) |
branch: master
commit 5d0e5f086505848631f9f79926b526597fc60688
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
; Inhibit completion preview in read-only buffers
* lisp/completion-preview.el
(completion-preview--post-command): Avoid showing completion
preview if buffer is read-only.
---
lisp/completion-preview.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/completion-preview.el b/lisp/completion-preview.el
index 0e32beef5d0..d989eda7020 100644
--- a/lisp/completion-preview.el
+++ b/lisp/completion-preview.el
@@ -467,7 +467,8 @@ point, otherwise hide it."
;; preview, don't do anything.
(unless internal-p
(if (and (completion-preview-require-certain-commands)
- (completion-preview-require-minimum-symbol-length))
+ (completion-preview-require-minimum-symbol-length)
+ (not buffer-read-only))
(completion-preview--show)
(completion-preview-active-mode -1)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 5d0e5f08650: ; Inhibit completion preview in read-only buffers,
Eshel Yaron <=