unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] check read-only char property to bypass input-method translation
@ 2019-09-04 15:09 Evgeny Zajcev
  2019-09-07 10:05 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Evgeny Zajcev @ 2019-09-04 15:09 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 763 bytes --]

If point is at read-only area (some button with local-map) of writable
buffer, input method performs key translation, making button bindings stop
working when some input method is activated

This patch fixes this, thanks!

diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index f42b594..e91175f 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -1329,7 +1329,8 @@ quail-converting
 (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

-- 
lg

[-- Attachment #2: Type: text/html, Size: 1004 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] check read-only char property to bypass input-method translation
  2019-09-04 15:09 [PATCH] check read-only char property to bypass input-method translation Evgeny Zajcev
@ 2019-09-07 10:05 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2019-09-07 10:05 UTC (permalink / raw)
  To: Evgeny Zajcev; +Cc: emacs-devel

> From: Evgeny Zajcev <lg.zevlg@gmail.com>
> Date: Wed, 4 Sep 2019 18:09:55 +0300
> 
> If point is at read-only area (some button with local-map) of writable
> buffer, input method performs key translation, making button bindings stop
> working when some input method is activated
> 
> This patch fixes this, thanks!

Thanks, pushed to the master branch.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-07 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04 15:09 [PATCH] check read-only char property to bypass input-method translation Evgeny Zajcev
2019-09-07 10:05 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).