; Inhibit completion preview in read-only buffers
* lisp/completion-preview.el (completion-preview--post-command): Avoid showing completion preview if buffer is read-only.
This commit is contained in:
parent
bd647f3614
commit
5d0e5f0865
1 changed files with 2 additions and 1 deletions
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue