From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44466: 27.1; quail input fails at read-only boundary Date: Sat, 14 Nov 2020 15:22:15 +0200 Message-ID: <83y2j4ul88.fsf@gnu.org> References: <83mtzr6cvn.fsf@gnu.org> <23507480-E72C-4641-806F-67E13B411A16@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40568"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44466-done@debbugs.gnu.org, dick.r.chiang@gmail.com To: lg.zevlg@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 14 14:23: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 1kdvWI-000AQx-KY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 14:23:10 +0100 Original-Received: from localhost ([::1]:39552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdvWH-0002rJ-EN for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Nov 2020 08:23:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdvWA-0002pH-Sx for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 08:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdvWA-0000Py-J7 for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 08:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdvWA-0004V2-FF for bug-gnu-emacs@gnu.org; Sat, 14 Nov 2020 08:23:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Nov 2020 13:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44466 X-GNU-PR-Package: emacs Mail-Followup-To: 44466@debbugs.gnu.org, eliz@gnu.org, dick.r.chiang@gmail.com Original-Received: via spool by 44466-done@debbugs.gnu.org id=D44466.160536015617244 (code D ref 44466); Sat, 14 Nov 2020 13:23:02 +0000 Original-Received: (at 44466-done) by debbugs.gnu.org; 14 Nov 2020 13:22:36 +0000 Original-Received: from localhost ([127.0.0.1]:50099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdvVj-0004U4-WA for submit@debbugs.gnu.org; Sat, 14 Nov 2020 08:22:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdvVh-0004Tr-WD for 44466-done@debbugs.gnu.org; Sat, 14 Nov 2020 08:22:34 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54257) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdvVc-0000EG-OZ; Sat, 14 Nov 2020 08:22:28 -0500 Original-Received: from [176.228.60.248] (port=1804 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kdvVc-0000uq-85; Sat, 14 Nov 2020 08:22:28 -0500 In-Reply-To: <23507480-E72C-4641-806F-67E13B411A16@gmail.com> (lg.zevlg@gmail.com) 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:193275 Archived-At: > From: lg.zevlg@gmail.com > Date: Sun, 8 Nov 2020 23:50:54 +0400 > Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org > > > > 8 нояб. 2020 г., в 20:18, Eli Zaretskii написал(а): > > > >  > >> > >> From: lg.zevlg@gmail.com > >> Date: Sun, 8 Nov 2020 20:07:46 +0400 > >> Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org > >> > >>> Any reason why pressing a key on a button should disregard the active > >>> input method? What if the button needs the user to type the character > >>> which the input method would produce? AFAIU, the patch we installed a > >>> year ago makes this impossible. > >> > >> The reason is the same as for read-only buffers, making single char bindings work. For example if you change input method in image-mode and press “q” key this will kill buffer, because correct command is executed. > > > > If this is a feature, it should be documented somewhere. Is it? > > I guess so, this feature was in Emacs for years. Usually people marks whole buffer as read-only and then mark special places to inhibit read-only, so quail translation inhibits for read-only parts and does the translation in writable parts. In telega.el project we do opposit - insert read-only parts in writable buffer and expect quail translation not to apply in that read-only parts of the buffer. We might change this behaviour, so patch to quail could be reverted, however I think it is better to fix this in quail, to reflect the logic in internal checks for region writability Thanks, I've now fixed this on the emacs-27 branch.