[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 5bcd468: Make quail-input-method work when inhibi
From: |
Katsumi Yamaoka |
Subject: |
[Emacs-diffs] emacs-26 5bcd468: Make quail-input-method work when inhibit-read-only is non-nil (bug#29504) |
Date: |
Sun, 10 Dec 2017 20:27:35 -0500 (EST) |
branch: emacs-26
commit 5bcd468a9e007351bfad65fb5c4b49b0c319947f
Author: Katsumi Yamaoka <address@hidden>
Commit: Katsumi Yamaoka <address@hidden>
Make quail-input-method work when inhibit-read-only is non-nil (bug#29504)
* 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 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index 1bbbb17..c2ae44b 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 5bcd468: Make quail-input-method work when inhibit-read-only is non-nil (bug#29504),
Katsumi Yamaoka <=