From 52f83af1f3975130b6bd035166780c2c2dde778c Mon Sep 17 00:00:00 2001 From: Evgeny Zajcev Date: Wed, 4 Sep 2019 18:09:55 +0300 Subject: [PATCH] Fix input method operation on read-only text * lisp/international/quail.el (quail-input-method): Check also read-only property of text in addition to the buffer's read-only state. --- lisp/international/quail.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/international/quail.el b/lisp/international/quail.el index f42b594dc46..e91175fb832 100644 --- a/lisp/international/quail.el +++ b/lisp/international/quail.el @@ -1329,7 +1329,8 @@ If STR has `advice' text property, append the following special event: (defvar quail-conversion-str nil) (defun quail-input-method (key) - (if (or (and buffer-read-only + (if (or (and (or buffer-read-only + (get-char-property (point) 'read-only)) (not (or inhibit-read-only (get-char-property (point) 'inhibit-read-only)))) (and overriding-terminal-local-map -- 2.39.5