bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29504: 26.0.90; Can't enter Japanes text in a read-only buffer even


From: Katsumi Yamaoka
Subject: bug#29504: 26.0.90; Can't enter Japanes text in a read-only buffer even if inhibit-read-only is t
Date: Thu, 30 Nov 2017 13:03:30 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (i686-pc-cygwin)

On Thu, 30 Nov 2017 12:39:28 +0900, Katsumi Yamaoka wrote:
> Not only Japanese, every input method should work in a read-only
> buffer (such as that of eww) where the `inhibit-read-only' text
> or overlay property is set in some areas.

A patch:

--- lisp/international/quail.el~        2017-11-26 22:09:06.936385900 +0000
+++ lisp/international/quail.el 2017-11-30 04:01:39.868772300 +0000
@@ -1332,3 +1332,5 @@
 (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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]