all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Evgeny Zajcev <lg.zevlg@gmail.com>
To: emacs-devel <emacs-devel@gnu.org>
Subject: [PATCH] check read-only char property to bypass input-method translation
Date: Wed, 4 Sep 2019 18:09:55 +0300	[thread overview]
Message-ID: <CAO=W_ZqUD5jgKrUiWGvAUwZG_3BKMd1MWmgrKrPma3=8azoogg@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2019-09-04 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-04 15:09 Evgeny Zajcev [this message]
2019-09-07 10:05 ` [PATCH] check read-only char property to bypass input-method translation Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAO=W_ZqUD5jgKrUiWGvAUwZG_3BKMd1MWmgrKrPma3=8azoogg@mail.gmail.com' \
    --to=lg.zevlg@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.