]> git.eshelyaron.com Git - emacs.git/commitdiff
Make quail-input-method work when inhibit-read-only is non-nil (bug#29504)
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 11 Dec 2017 01:27:17 +0000 (01:27 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 11 Dec 2017 01:27:17 +0000 (01:27 +0000)
* lisp/international/quail.el (quail-input-method): Work not only
when buffer-read-only is nil but also when inhibit-read-only is non-nil
(bug#29504).

lisp/international/quail.el

index 1bbbb174d493ccf52fc43fcbcf300d6cef4c2587..c2ae44bb48f7ea026dd08ce4a03fe4ee76380410 100644 (file)
@@ -1330,7 +1330,9 @@ If STR has `advice' text property, append the following special event:
 (defvar quail-conversion-str nil)
 
 (defun quail-input-method (key)
-  (if (or buffer-read-only
+  (if (or (and buffer-read-only
+              (not (or inhibit-read-only
+                       (get-char-property (point) 'inhibit-read-only))))
          (and overriding-terminal-local-map
                ;; If the overriding map is `universal-argument-map', that
                ;; must mean the user has pressed 'C-u KEY'.  If KEY has a