From: Evgeny Zajcev Date: Wed, 4 Sep 2019 15:09:55 +0000 (+0300) Subject: Fix input method operation on read-only text X-Git-Tag: emacs-27.0.90~1553^2~16 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52f83af1f3975130b6bd035166780c2c2dde778c;p=emacs.git 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. --- 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