From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.bugs Subject: bug#44466: 27.1; quail input fails at read-only boundary Date: Sun, 8 Nov 2020 01:24:26 +0300 Message-ID: References: <878sbfvrs7.fsf@dick> <83eel56zze.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006b01b705b38bcbd2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dick , 44466@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 07 23:25:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kbWdx-0006hX-U0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 23:25:09 +0100 Original-Received: from localhost ([::1]:60804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbWdw-0000GH-97 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 17:25:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbWdq-0000G9-77 for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 17:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbWdp-0001o0-Uf for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 17:25:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbWdp-0002SQ-QU for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 17:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Evgeny Zajcev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Nov 2020 22:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44466 X-GNU-PR-Package: emacs Original-Received: via spool by 44466-submit@debbugs.gnu.org id=B44466.16047878859422 (code B ref 44466); Sat, 07 Nov 2020 22:25:01 +0000 Original-Received: (at 44466) by debbugs.gnu.org; 7 Nov 2020 22:24:45 +0000 Original-Received: from localhost ([127.0.0.1]:59384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbWdZ-0002Ru-J8 for submit@debbugs.gnu.org; Sat, 07 Nov 2020 17:24:45 -0500 Original-Received: from mail-lf1-f50.google.com ([209.85.167.50]:44368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbWdY-0002Rh-4L for 44466@debbugs.gnu.org; Sat, 07 Nov 2020 17:24:44 -0500 Original-Received: by mail-lf1-f50.google.com with SMTP id b1so6960732lfp.11 for <44466@debbugs.gnu.org>; Sat, 07 Nov 2020 14:24:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Zuk1STCzQScVHL/2Mq80m9+vmnKTNHksFfdi7w2X+Oc=; b=sFUj7X6qxaqAhiItAeJFErRkNrorWNwb+9dlR5eE+JRagpbdBG+ayZfmsibme+poPT TlJs/D82GiCAM5xmxEvq3r/bZs4zmGxr5ZmOCJSTbfmdNoUpRpL0VM1mlXkl5LRE1BsE e6E9R7CrT1t8E+m2JjAg1Z2qPu49rsYqc4x+Drs9gWWA3V79YmB1tQl1JD4lRBlKJWPp lCkXY4VyFx6hLD1e+T7hOsnY/El/lpwX5LvxGnuV0AWXDz838HaKpIqqWAq54cz6eK12 dI1EGK4BUntFzX/N7aVaj25RJWCvUOzlqHF1MDCxdtKGrzmlsu9uQ223stZv3+tq6/Fs fvCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Zuk1STCzQScVHL/2Mq80m9+vmnKTNHksFfdi7w2X+Oc=; b=XBhby841+AGHV9+R7PZawEuPQVlLwMS9YZzAaMSVNhYn7wS94mqGr++iodLpzTXTfV SYdCNcozoYclR947KyEhB0wjNOCtFcw+qihxYTnwtpKsJJQ2f2c6ZHMLdrDekNwqMCar UIPBim/QsCjiudtX29/gbc6PVeD2q+NoDhYon0IASkqTLtA2mvO8TL90wdDWIKqUKiwS 3/tvMdlx2UkMXoU6Rl5qKvE++cO1NOn1H2MGnRbPFa0TdJW0VI2vkqJtKv/4mAUKu8E0 c0+NKUvdhM1jCwxUqGwWimKS/r0PwSPrWjyVT++YByMvtGcRISSQUs10Gs/TMemB7SOr 2rRQ== X-Gm-Message-State: AOAM530wwkSqgtorVbCXrqcUkpl02hGcLmpruRW3PXxoQ0B78Orcit9l iAgjzAE9iGtEP+2U3agVrnG3zSHRIwOwQSYrRaI= X-Google-Smtp-Source: ABdhPJzHkAvsdC2CU7mUMe1d69cxxfiJKi/7wBHrNDSMa7qBg+1tXk/sSWbvksVSgTfGrQQTmniLL+UD/QB6LcOLzuY= X-Received: by 2002:a19:7e47:: with SMTP id z68mr1178080lfc.24.1604787878165; Sat, 07 Nov 2020 14:24:38 -0800 (PST) In-Reply-To: <83eel56zze.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192854 Archived-At: --0000000000006b01b705b38bcbd2 Content-Type: text/plain; charset="UTF-8" What I want with that patch is that if some key is pressed on read-only area in non-read-only buffer, then quail should do what it does as if buffer marked as read only, i.e. no input method translations are done, and all single char bindings continue to work. Possible we need to check front-stickyness of the char at point along with 'read-only property: .. (and (get-char-property (point) 'read-only) (get-char-property (point) 'front-sticky))) .. --0000000000006b01b705b38bcbd2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

What I want with that patch is that if som= e key is pressed on read-only area in non-read-only buffer, then quail shou= ld do what it does as if buffer marked as read only, i.e. no input method t= ranslations are done, and all single char bindings continue to work.
Possible we need to check front-stickyness of the char at poin= t along with 'read-only property:

..
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(= and (get-char-property (point) 'read-only)
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (get-char-prope= rty (point) 'front-sticky)))

..

<= /div> --0000000000006b01b705b38bcbd2--