]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix input method operation on read-only text
authorEvgeny Zajcev <lg.zevlg@gmail.com>
Wed, 4 Sep 2019 15:09:55 +0000 (18:09 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 7 Sep 2019 10:04:36 +0000 (13:04 +0300)
* 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

index f42b594dc4680a2b3830b6d4147f71d0a42b2198..e91175fb832954b84abaef1d957d238c494c27fd 100644 (file)
@@ -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