From unknown Fri Aug 15 04:05:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44466 <44466@debbugs.gnu.org> To: bug#44466 <44466@debbugs.gnu.org> Subject: Status: 27.1; quail input fails at read-only boundary Reply-To: bug#44466 <44466@debbugs.gnu.org> Date: Fri, 15 Aug 2025 11:05:01 +0000 retitle 44466 27.1; quail input fails at read-only boundary reassign 44466 emacs submitter 44466 dick severity 44466 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 05 08:48:19 2020 Received: (at submit) by debbugs.gnu.org; 5 Nov 2020 13:48:19 +0000 Received: from localhost ([127.0.0.1]:52016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kafcg-0003Iy-BY for submit@debbugs.gnu.org; Thu, 05 Nov 2020 08:48:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:38476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kafce-0003Iq-Pw for submit@debbugs.gnu.org; Thu, 05 Nov 2020 08:48:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kafce-0004gj-Cj for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 08:48:16 -0500 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:40007) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kafcZ-0006IB-Mt for bug-gnu-emacs@gnu.org; Thu, 05 Nov 2020 08:48:16 -0500 Received: by mail-qk1-x72d.google.com with SMTP id y197so1145598qkb.7 for ; Thu, 05 Nov 2020 05:48:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=A072ZGjXgP6CqVUSRv1pER2evOe0XMWLEwIlfapsMpo=; b=RypJb73fOM653W55DyVpPlQyJeQscZ8mD/YN0oXasRMKqpdJNmuR9+UAhGdtZYFk8n hN1ySXvnx5x3FQYwAlebcch4/baLWZJpB1MEgCdeJvfKJ1sMUX6435PeyG/OBZyTpW+h MVd/rH67f6irozo/28PSlcBc4wL05YgwMj4FJ3GwqP2PxeekYWbpeMW8+EQ7Txx8mUEH eIRTrVza1w1ahTOevIOn8f8l99Vk1ksRCualx/f/B0/dmdcl4Dnrc+dfKY9p6S1bDbmw IW7pl5Hku2tWwd3gYspSqREY/FAiraq+dVLdSmb34iFduB9tZl28MYPeKiGqtwNp9lSP QTCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=A072ZGjXgP6CqVUSRv1pER2evOe0XMWLEwIlfapsMpo=; b=ipuoY55PPmdmDxAeXi5ymSCS3j2vQgT9/fk0W9yklsJoyFpM8ME344rQI2dgk4moEa 9W4OljB5ov5GK3em0sgwdmEIeo5IqbZE3tquKr6K7v4ifNKR9ZQVJZf24/3pdaukk0W7 IHmlq/S26ZUm4Vt7lcs13eb2TEsq/mU1jXoHf21yN2C1zVeTOi26snvOG8EZNfkaxwoj Box0L2m2i74Nw/0xfiBXZGEWom1TWrG4zR4dmLtSOm/0i/rWxhM9Kymq3d9MZjODk5M0 D0IZxJXzRj3ZDzPC11fqMsS8NPtkaEWxBUb/POP9oz7ujqyPyLCsQSB5Qi5Bav5ZWan6 r0IQ== X-Gm-Message-State: AOAM532Y/EZXu6DSuO6L4PtAtsM5BwPY7f7b3y/+PHQFzoSVST8FkEqx +08f4KasZ8dIxdupjxpQeJpFnLUnwFY= X-Google-Smtp-Source: ABdhPJwdq0dzOqcOzbeD3BhP2qXk1ZLvnmU1+3Ht2akqvCoWwRcfVZ/HyHAY69YGUP6qz9BzpAReqg== X-Received: by 2002:a05:620a:1513:: with SMTP id i19mr1949328qkk.404.1604584090110; Thu, 05 Nov 2020 05:48:10 -0800 (PST) Received: from localhost (pool-108-30-234-29.nycmny.fios.verizon.net. [108.30.234.29]) by smtp.gmail.com with ESMTPSA id n1sm1115096qkn.13.2020.11.05.05.48.09 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Nov 2020 05:48:09 -0800 (PST) From: dick To: bug-gnu-emacs@gnu.org Subject: 27.1; quail input fails at read-only boundary Date: Thu, 05 Nov 2020 08:48:08 -0500 Message-ID: <878sbfvrs7.fsf@dick> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=dick.r.chiang@gmail.com; helo=mail-qk1-x72d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Run this: emacs-27.1 -Q -nw --eval "(progn \ (switch-to-buffer \"*scratch*\") \ (erase-buffer) \ (save-excursion (insert (propertize \"\n\" 'read-only t))) \ (set-input-method \"russian-computer\" t))" Now type "a". Note it is incorrect. We want cyrillic, not latin. Exit emacs. Run this: emacs-26.3 -Q -nw --eval "(progn \ (switch-to-buffer \"*scratch*\") \ (erase-buffer) \ (save-excursion (insert (propertize \"\n\" 'read-only t))) \ (set-input-method \"russian-computer\" t))" Now type "a". Note it is correct. In GNU Emacs 27.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2020-09-20 built on dick Repository revision: dff02e85245dfbbeea7d57dc1a753a9ba24616d5 Repository branch: gnus-dev-27 Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.4 LTS Recent messages: Wrote /tmp/foo Mark activated Mark deactivated Mark set Quit [2 times] Mark set Quit Mark set [2 times] Saving file /tmp/foo... Wrote /tmp/foo Configured using: 'configure --prefix=/home/dick/.local --with-rsvg=yes --with-xml2=yes PKG_CONFIG_PATH=/home/dick/.local/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell-script Minor modes in effect: pyvenv-mode: t sh-electric-here-document-mode: t show-paren-mode: t global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t flx-ido-mode: t projectile-mode: t ido-everywhere: t override-global-mode: t shell-dirtrack-mode: t beacon-mode: t global-hl-line-mode: t winner-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /home/dick/ESS/lisp/obsolete/ess-swv hides /home/dick/ESS/lisp/ess-swv /home/dick/ESS/lisp/obsolete/ess-rutils hides /home/dick/ESS/lisp/ess-rutils /home/dick/ESS/lisp/obsolete/ess-noweb hides /home/dick/ESS/lisp/ess-noweb /home/dick/ESS/lisp/obsolete/mouseme hides /home/dick/ESS/lisp/mouseme /home/dick/ESS/lisp/obsolete/ess-mouse hides /home/dick/ESS/lisp/ess-mouse /home/dick/ESS/lisp/obsolete/ess-noweb-mode hides /home/dick/ESS/lisp/ess-noweb-mode /home/dick/ESS/lisp/obsolete/make-regexp hides /home/dick/ESS/lisp/make-regexp /home/dick/ESS/lisp/obsolete/ess-r-a hides /home/dick/ESS/lisp/ess-r-a /home/dick/ESS/lisp/obsolete/ess-noweb-font-lock-mode hides /home/dick/ESS/lisp/ess-noweb-font-lock-mode /home/dick/gomacro-mode/gomacro-mode hides /home/dick/.emacs.d/elpa/gomacro-mode-20200326.1103/gomacro-mode /home/dick/ESS/lisp/julia-mode-latexsubs hides /home/dick/.emacs.d/elpa/julia-mode-20200717.1915/julia-mode-latexsubs /home/dick/ESS/lisp/julia-mode hides /home/dick/.emacs.d/elpa/julia-mode-20200717.1915/julia-mode /home/dick/.emacs.d/elpa/hydra-20170924.2259/lv hides /home/dick/.emacs.d/elpa/lv-20191106.1238/lv /home/dick/melpa-stats/melpa-stats hides /home/dick/.emacs.d/elpa/melpa-stats-20190720.1833/melpa-stats /home/dick/.emacs.d/elpa/async-20200113.1745/async-autoloads hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async-autoloads /home/dick/.emacs.d/elpa/async-20200113.1745/async-bytecomp hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async-bytecomp /home/dick/.emacs.d/elpa/async-20200113.1745/smtpmail-async hides /home/dick/.local/share/emacs/site-lisp/emacs-async/smtpmail-async /home/dick/.emacs.d/elpa/async-20200113.1745/dired-async hides /home/dick/.local/share/emacs/site-lisp/emacs-async/dired-async /home/dick/.emacs.d/elpa/async-20200113.1745/async hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async /home/dick/.emacs.d/elpa/async-20200113.1745/async-pkg hides /home/dick/.local/share/emacs/site-lisp/emacs-async/async-pkg /home/dick/.emacs.d/lisp/json hides /home/dick/.local/share/emacs/27.1/lisp/json /home/dick/.emacs.d/elpa/map-2.1/map hides /home/dick/.local/share/emacs/27.1/lisp/emacs-lisp/map Features: (shadow sort flyspell ispell footnote mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig emacsbug sendmail texinfo apropos descr-text quail tabify rect company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-cmake company-xcode company-eclim company-css company-nxml company-bbdb company-go company-template company-c-headers cl-print debug backtrace mm-archive timezone es-mode yasnippet-snippets yasnippet company-capf elpy elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django elpy-refactor ein-markdown-mode poly-rst rst mule-util org-element avl-tree ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win ol-docview doc-view image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m org-tempo tempo org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-jupyter jupyter-org-extensions jupyter-org-client jupyter-repl jupyter-kernel-manager jupyter-channel jupyter-widget-client simple-httpd jupyter-client jupyter-comm-layer jupyter-messages hmac-def jupyter-mime shr svg dom jupyter-kernelspec jupyter-env jupyter-base ob-emacs-lisp ob-ein ob ob-tangle org-src ob-ref ob-lob ob-table ob-exp ob-comint ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs ein-ipynb-mode js ein-process ein-jupyter exec-path-from-shell ein-dev ein-notebook python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp ein-python-send ein-traceback ein-shared-output ein-pytools ein-pager view ein-completer ein-notification ein-scratchsheet ein-worksheet poly-ein display-line-numbers polymode poly-lock polymode-base polymode-weave polymode-export polymode-compat polymode-methods polymode-core polymode-classes eieio-custom eieio-base ein-kill-ring ein-cell ein-output-area ein-kernelinfo ein-kernel ein-ipdb ein-events ein-websocket websocket bindat ein-file ein-node ewoc ein-notebooklist eieio-opt speedbar sb-image ezimage dframe ein-contents-api ein-query ein-log ein-classes ein-core request ein-utils deferred ein help-fns radix-tree ein-gat bug-reference magit-extras face-remap pulse google-c-style cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ag vc-svn find-dired ivy delsel colir color ivy-overlay dumb-jump f s flycheck find-func jka-compr let-alist go-eldoc gomacro-mode go-mode find-file ffap network-stream url-http url-gw nsm url-cache url-auth misearch multi-isearch sh-script executable paredit-ext paredit dired-x inf-ruby ruby-mode smie melpa-stats ht dash-functional anaphora a pp sx key-combo company haskell-interactive-mode haskell-presentation-mode haskell-process haskell-session haskell-compile haskell-mode haskell-cabal haskell-utils haskell-font-lock haskell-indentation haskell-string haskell-sort-imports haskell-lexeme rx haskell-align-imports haskell-complete-module haskell-ghc-support etags fileloop generator dabbrev haskell-customize hydra lv use-package-ensure paren magit-patch-changelog magit-patch magit-submodule magit-obsolete magit-popup magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc dired dired-loaddefs rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async pcase server dash flx-ido flx solarized-theme solarized-definitions projectile ibuf-ext ibuffer ibuffer-loaddefs grep gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search time-date mail-utils mm-util mail-prsvr google-translate-default-ui google-translate-core-ui ido google-translate-core google-translate-tk google-translate-backend use-package-bind-key bind-key auto-complete popup cus-edit cus-start cus-load wid-edit ess-r-mode ess-r-flymake flymake-proc flymake warnings thingatpt ess-r-xref xref ess-trns ess-r-package shell pcomplete ess-r-completion ess-roxy ess-r-syntax ess-rd noutline outline easy-mmode hideshow ess-s-lang ess-help ess-mode ess-inf project format-spec ess-tracebug ess ess-utils ess-custom compile comint ansi-color emms-player-mplayer emms-player-simple emms emms-compat twittering-mode epa derived epg epg-config tls gnutls puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap advice xml cl fzf cl-extra help-mode use-package-core beacon hl-line winner ring finder-inf howdoyou-autoloads json-reformat-autoloads json-snatcher-autoloads edmacro kmacro sml-mode-autoloads tornado-template-mode-autoloads info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1083062 111029) (symbols 48 74547 1) (strings 32 291004 12083) (string-bytes 1 8642226) (vectors 16 114291) (vector-slots 8 2908784 288750) (floats 8 733 985) (intervals 56 57324 1194) (buffers 1000 97)) From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 07 08:47:08 2020 Received: (at 44466) by debbugs.gnu.org; 7 Nov 2020 13:47:08 +0000 Received: from localhost ([127.0.0.1]:58136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbOYe-0006Ez-D6 for submit@debbugs.gnu.org; Sat, 07 Nov 2020 08:47:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbOYc-0006EV-8Y for 44466@debbugs.gnu.org; Sat, 07 Nov 2020 08:47:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58829) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbOYW-00064F-Ui; Sat, 07 Nov 2020 08:47:00 -0500 Received: from [176.228.60.248] (port=1770 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbOYW-0003o3-9O; Sat, 07 Nov 2020 08:47:00 -0500 Date: Sat, 07 Nov 2020 15:47:01 +0200 Message-Id: <83eel56zze.fsf@gnu.org> From: Eli Zaretskii To: dick , Evgeny Zajcev In-Reply-To: <878sbfvrs7.fsf@dick> (message from dick on Thu, 05 Nov 2020 08:48:08 -0500) Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary References: <878sbfvrs7.fsf@dick> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44466 Cc: 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: dick > Date: Thu, 05 Nov 2020 08:48:08 -0500 > > > Run this: > > emacs-27.1 -Q -nw --eval "(progn \ > (switch-to-buffer \"*scratch*\") \ > (erase-buffer) \ > (save-excursion (insert (propertize \"\n\" 'read-only t))) \ > (set-input-method \"russian-computer\" t))" > > Now type "a". Note it is incorrect. We want cyrillic, not latin. Thanks. This is due to an attempt to fix a different problem, see https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00093.html Evgeny, could you please look into this? Thinking about the original problem now, I actually don't think I understand why the fix we installed then is correct. It seems to effectively disable an input method in that case, but why is that TRT, even if we are on a button, let alone in a buffer with point at a character with read-only property? So I'm inclined to revert the change. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 07 17:24:45 2020 Received: (at 44466) by debbugs.gnu.org; 7 Nov 2020 22:24:45 +0000 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 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 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) MIME-Version: 1.0 References: <878sbfvrs7.fsf@dick> <83eel56zze.fsf@gnu.org> In-Reply-To: <83eel56zze.fsf@gnu.org> From: Evgeny Zajcev Date: Sun, 8 Nov 2020 01:24:26 +0300 Message-ID: Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000006b01b705b38bcbd2" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44466 Cc: dick , 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --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-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 07 22:29:16 2020 Received: (at 44466) by debbugs.gnu.org; 8 Nov 2020 03:29:16 +0000 Received: from localhost ([127.0.0.1]:59555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbbOG-0001AA-Dc for submit@debbugs.gnu.org; Sat, 07 Nov 2020 22:29:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbbOE-00019q-VW for 44466@debbugs.gnu.org; Sat, 07 Nov 2020 22:29:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43755) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbbO9-0008CD-Nf; Sat, 07 Nov 2020 22:29:09 -0500 Received: from [176.228.60.248] (port=1134 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbbO8-0006bX-Jp; Sat, 07 Nov 2020 22:29:09 -0500 Date: Sun, 08 Nov 2020 05:29:12 +0200 Message-Id: <83wnyw5xx3.fsf@gnu.org> From: Eli Zaretskii To: Evgeny Zajcev In-Reply-To: (message from Evgeny Zajcev on Sun, 8 Nov 2020 01:24:26 +0300) Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary References: <878sbfvrs7.fsf@dick> <83eel56zze.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44466 Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Evgeny Zajcev > Date: Sun, 8 Nov 2020 01:24:26 +0300 > Cc: dick , 44466@debbugs.gnu.org > > 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. When an input method is used in a read-only buffer, Emacs barfs because it doesn't allow inserting text into such a buffer. It doesn't insert the untranslated character, as what your patch did. > 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))) Does this solve the problem in this case? From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 01:42:43 2020 Received: (at 44466) by debbugs.gnu.org; 8 Nov 2020 06:42:43 +0000 Received: from localhost ([127.0.0.1]:59627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbePT-0005qR-AM for submit@debbugs.gnu.org; Sun, 08 Nov 2020 01:42:43 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:32858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbePR-0005qE-7G for 44466@debbugs.gnu.org; Sun, 08 Nov 2020 01:42:41 -0500 Received: by mail-lf1-f45.google.com with SMTP id l2so7734910lfk.0 for <44466@debbugs.gnu.org>; Sat, 07 Nov 2020 22:42:41 -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:content-transfer-encoding; bh=DbzES/bz+W39lWlIeU2y6Cy8h5PXBfElwhdjWjyubwE=; b=fo736dpDTmVEBrJbfM9+Hj9mlDqlqrz6pceCT54V8KuOrGZpZzLj7icaAGgQjJ5tAW VfKVITN3jsvdV2zKDspErVwdcFaSNFU/UQUoObAmIOOnL+o58DhZJ2bMuoCxuaoeJ+j0 T7dqR/0DNQwTzpjgJ3q6pc8HoUZ5Fwx8HgseJfmstenZw4kccT1hd/KHEeI+5U6Jn1T5 TsTj4s38+cl9eWTlIwjkSUn/QmKdgTp8+Unscg9syS3kiYm2TXcvrxcfKoxqQsBW0cGF 3lELVxQZOSWkZALBXZ3JwH8TDYMJ2GCgRPttipY4G3Lc0vnRx/BTv4wxNBbDI9XdPdwW SgFw== 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:content-transfer-encoding; bh=DbzES/bz+W39lWlIeU2y6Cy8h5PXBfElwhdjWjyubwE=; b=bjYTEujp0WFhMSl69dEIAJnAFvIWj2QsowgMbzexfovpIVkIF6Eq/1TYrvI58o+CDY oHl4gBDnm+JRWv2TzrPPIA/sH/mEa17DTBfgwFI1JoqcNOJINHpJPL5YapFqiwWVaSFy iv0/gjVz6ntoZRb7fGYoYoSxi4vsIOLYbDFfo0vR9UHuRbAXMg5ekzhqwPyLObarp5v5 DIon5i7i8yGFiSliyujmkMDa1uBuMGgQ0TkGiW7i1QjO/day44x98QWlaj0pSPa9uON9 Wo0Aq7ZPHra5sFskwAkV+OVRdxzF1fUNxi1YhovF5iO7goM4eVg9LPiZH9tOBdKk31bM 8HDQ== X-Gm-Message-State: AOAM532Z+PHTxIXQTjpE0pwVGS4eseLWR7/bG0kKpKtyy3SV5PVSByKL jzU4BgLOFkvkQGbAXEm+GT4q/5qQiGNgzSLLRvc= X-Google-Smtp-Source: ABdhPJyqLQN1byivqhYm52mgAHml+7zL3K91L25tu/Leqpny5w6PA6ZYY+e8vIZQBNLXahig+zDovEX+yiiDnkTKMQk= X-Received: by 2002:a19:2d5:: with SMTP id 204mr3450333lfc.117.1604817755147; Sat, 07 Nov 2020 22:42:35 -0800 (PST) MIME-Version: 1.0 References: <878sbfvrs7.fsf@dick> <83eel56zze.fsf@gnu.org> <83wnyw5xx3.fsf@gnu.org> In-Reply-To: <83wnyw5xx3.fsf@gnu.org> From: Evgeny Zajcev Date: Sun, 8 Nov 2020 09:42:23 +0300 Message-ID: Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44466 Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 8 =D0=BD=D0=BE=D1=8F=D0=B1. 2020 =D0=B3., =D0=B2 07:29, Eli Zaretskii =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): > > =EF=BB=BF >> >> From: Evgeny Zajcev >> Date: Sun, 8 Nov 2020 01:24:26 +0300 >> Cc: dick , 44466@debbugs.gnu.org >> >> 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 i= nput method translations are done, and >> all single char bindings continue to work. > > When an input method is used in a read-only buffer, Emacs barfs > because it doesn't allow inserting text into such a buffer. It > doesn't insert the untranslated character, as what your patch did. > >> Possible we need to check front-stickyness of the char at point along wi= th 'read-only property: >> >> .. >> (and (get-char-property (point) 'read-only) >> (get-char-property (point) 'front-sticky))) > > Does this solve the problem in this case? Yes, because this mimics what is done in verify_interval_modification() function from textprop.c. Possibly the best solution would be to make verify_interval_modification() visible from elisp side and use it in quail-input-method to check for writability at point. -- lg From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 10:03:02 2020 Received: (at 44466) by debbugs.gnu.org; 8 Nov 2020 15:03:02 +0000 Received: from localhost ([127.0.0.1]:32865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbmDd-0007oI-W6 for submit@debbugs.gnu.org; Sun, 08 Nov 2020 10:03:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbmDc-0007nu-1Z for 44466@debbugs.gnu.org; Sun, 08 Nov 2020 10:03:00 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50080) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbmDU-0000aq-MI; Sun, 08 Nov 2020 10:02:54 -0500 Received: from [176.228.60.248] (port=3913 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbmDU-0003n2-5v; Sun, 08 Nov 2020 10:02:52 -0500 Date: Sun, 08 Nov 2020 17:02:56 +0200 Message-Id: <83tutz6gdb.fsf@gnu.org> From: Eli Zaretskii To: Evgeny Zajcev In-Reply-To: (message from Evgeny Zajcev on Sun, 8 Nov 2020 09:42:23 +0300) Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary References: <878sbfvrs7.fsf@dick> <83eel56zze.fsf@gnu.org> <83wnyw5xx3.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44466 Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Evgeny Zajcev > Date: Sun, 8 Nov 2020 09:42:23 +0300 > Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org > > > When an input method is used in a read-only buffer, Emacs barfs > > because it doesn't allow inserting text into such a buffer. It > > doesn't insert the untranslated character, as what your patch did. > > > >> 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))) > > > > Does this solve the problem in this case? > > Yes, because this mimics what is done in > verify_interval_modification() function from textprop.c. 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. > Possibly the best solution would be to make > verify_interval_modification() visible from elisp side and use it in > quail-input-method to check for writability at point. I think this would be overkill. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 11:07:59 2020 Received: (at 44466) by debbugs.gnu.org; 8 Nov 2020 16:07:59 +0000 Received: from localhost ([127.0.0.1]:32907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbnEU-0000rT-V1 for submit@debbugs.gnu.org; Sun, 08 Nov 2020 11:07:59 -0500 Received: from mail-lj1-f175.google.com ([209.85.208.175]:34429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbnEQ-0000rE-6p for 44466@debbugs.gnu.org; Sun, 08 Nov 2020 11:07:57 -0500 Received: by mail-lj1-f175.google.com with SMTP id y16so7008812ljk.1 for <44466@debbugs.gnu.org>; Sun, 08 Nov 2020 08:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=8Df1Sg7PEtg/cDjT2VNnxbDeZh3KFr1QdkeJtkhz1uU=; b=q9utzgilD/4UgLwaGnJTRdqh0ElscX+k/jkZMLBt1wTs85nn3TPiTwR9NkGleotcxw Y/WdYoyLU1T6Kxxf5HNn1PR4cXUkSpzqW0PGIg/ugAHqDSUrALUFVX8cAbxkEDiNoEJr dvpiN8PBL9wj4BWdlF94xTBALZklv2TbUzAPjXikpMyYjbAXMrRvqntT+fF3bZCUh5J2 Kwu8Lv9HcQjXIFOJjtC7vtlz0QsLUu6mFbn6IJrN3e1VjW+7m9S6OiEv4/VR8vpzSKcj Xl6oCUSkteMiRKBPB7UWokdmZa+ZUa8AK9UR9oPaqpoZ5jM2FO2prmqvEFcViYWfzTDK QIIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=8Df1Sg7PEtg/cDjT2VNnxbDeZh3KFr1QdkeJtkhz1uU=; b=hrEa97e2a3a3olq7DZuPygHUsje5vVbb9hKjT3ew5J/EmuOi1JdcPBHG8qSaeFiLX8 /SRtwKzNWzTiy+cIGXHodLu42CriWhYBI4QIqsf6XTiS+Qc6gHcO7tntYsgMi39p5Z3a xQE5J4kpAkh8YdyvAVHdfTk3Ry2FTj9FrJEkh4c+McnFdg0tk8Cx+giu3RG5Gc40YS1a IwHxQZa5IXW4jZmSkCqf8AtlbDNYwG6yweLlN/QBkwfEV6Jf0KRVsW+wKx0edtWsjTnR Z1n0XkQ8uJlsVxe0u73euv2UrnLIH9tGnNU0B61Pp5wjydumrCMRiNKfHQES/mgl4UEG MrbQ== X-Gm-Message-State: AOAM530o6R7mOxQ6/y8UEJBKsTHGbo/kYQwXoGmNiGQxFU8GncV5oaK0 AwqDN5ERGFCWLQsTevqQLx8= X-Google-Smtp-Source: ABdhPJzTCCsqXnvg7q0akmJXW8Xf7+gzXwVXHdpqOhQ2dTRZ18Bd0gFvOyrtW0kBR2luGqofupdU8Q== X-Received: by 2002:a2e:b170:: with SMTP id a16mr255551ljm.92.1604851668260; Sun, 08 Nov 2020 08:07:48 -0800 (PST) Received: from localhost.localdomain (128-73-165-249.broadband.corbina.ru. [128.73.165.249]) by smtp.gmail.com with ESMTPSA id c125sm1303109lfd.31.2020.11.08.08.07.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Nov 2020 08:07:47 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: lg.zevlg@gmail.com Mime-Version: 1.0 (1.0) Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary Date: Sun, 8 Nov 2020 20:07:46 +0400 Message-Id: References: <83tutz6gdb.fsf@gnu.org> In-Reply-To: <83tutz6gdb.fsf@gnu.org> To: Eli Zaretskii X-Mailer: iPad Mail (18A373) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 44466 Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 8 =D0=BD=D0=BE=D1=8F=D0=B1. 2020 =D0=B3., =D0=B2 19:02, Eli Zaretskii =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > =EF=BB=BF >>=20 >> From: Evgeny Zajcev >> Date: Sun, 8 Nov 2020 09:42:23 +0300 >> Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org >>=20 >>> When an input method is used in a read-only buffer, Emacs barfs >>> because it doesn't allow inserting text into such a buffer. It >>> doesn't insert the untranslated character, as what your patch did. >>>=20 >>>> Possible we need to check front-stickyness of the char at point along w= ith 'read-only property: >>>>=20 >>>> .. >>>> (and (get-char-property (point) 'read-only) >>>> (get-char-property (point) 'front-sticky))) >>>=20 >>> Does this solve the problem in this case? >>=20 >> Yes, because this mimics what is done in >> verify_interval_modification() function from textprop.c. >=20 > 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 =E2=80= =9Cq=E2=80=9D key this will kill buffer, because correct command is executed= . Writable buffer might have read-only region with local-keymap installed with= single char binding. If input method is applied, then instead of executing c= orresponding command you will get =E2=80=9Ctext is read-only=E2=80=9D error,= because self-insert command is executed. >=20 >> Possibly the best solution would be to make >> verify_interval_modification() visible from elisp side and use it in >> quail-input-method to check for writability at point. >=20 > I think this would be overkill. =E2=80=94 lg From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 11:18:22 2020 Received: (at 44466) by debbugs.gnu.org; 8 Nov 2020 16:18:22 +0000 Received: from localhost ([127.0.0.1]:32926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbnOX-00017K-PN for submit@debbugs.gnu.org; Sun, 08 Nov 2020 11:18:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbnOX-000178-21 for 44466@debbugs.gnu.org; Sun, 08 Nov 2020 11:18:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51408) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbnOR-0002Qr-QT; Sun, 08 Nov 2020 11:18:15 -0500 Received: from [176.228.60.248] (port=4793 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbnOR-00066k-2t; Sun, 08 Nov 2020 11:18:15 -0500 Date: Sun, 08 Nov 2020 18:18:20 +0200 Message-Id: <83mtzr6cvn.fsf@gnu.org> From: Eli Zaretskii To: lg.zevlg@gmail.com In-Reply-To: (lg.zevlg@gmail.com) Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary References: <83tutz6gdb.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44466 Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 08 14:51:05 2020 Received: (at 44466) by debbugs.gnu.org; 8 Nov 2020 19:51:05 +0000 Received: from localhost ([127.0.0.1]:33099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbqiO-0001qh-Tv for submit@debbugs.gnu.org; Sun, 08 Nov 2020 14:51:05 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:36530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbqiN-0001qD-IO for 44466@debbugs.gnu.org; Sun, 08 Nov 2020 14:51:04 -0500 Received: by mail-lf1-f50.google.com with SMTP id f11so3008616lfs.3 for <44466@debbugs.gnu.org>; Sun, 08 Nov 2020 11:51:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=NSr8lD5PF3rwZNAY282YxZ/wr/XdmsrSEiaCkMCwEJM=; b=A2fVVrmClt2H72JjLJButMpCIJSEN+huFdaAg+zjzPCISPeyLfUo+VkblxrgF5cV8g 8yrE15wu6YRj7uw9ae1/naD7GpF2lnbTbNopnTbKa+Uj2BfxT8jhV2hYH4F6PsycZiCQ mknwfiMDpbLDhsl59pcCLWxPkbu/KvlEfjEUls4IdX/gz7tMuaYFtZHpGGVc+PtuZQ7w d/VoVRLO1At0Nrc3b/XQfYUOeSwBLUpmYOPNi77YBJ3Uuh0fFovMmwmARUjI4Y22nru7 nCVm5RqGUt7AGcZXMEEzQA7B8F1J7AsFsK14FTN7SanckIkzV01XgDTjCCBzVQBcd18V SPsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=NSr8lD5PF3rwZNAY282YxZ/wr/XdmsrSEiaCkMCwEJM=; b=UCOKeR0M2zc8U1crtpZV7ZeYsLmt05/DNC9/20pPPrFlJjQMnxvkxLSMijrIL2VLq0 Wzc7pTasVqarvxyPvOFNd9YVR/0mFCzNUp8vl7FP61M2q78PMpGSHTVxLq7isDyoGXLU /9/7pdrlEfXFKZkNTlrImvZqAcYgsqTyJXt8i3h41J0ELSmCbvr/F34gPoFzYLrZr+78 NJM5D53oC3DbK3J8mOvlqBtRVOxS33ei5tAXIn8rvtblswvJJD5GTEZ1w7c1hODMNwev nqFjqBR7xK8E2mxQiNGATyGZGO0FPmPt7d5OCD1onCoe0HdWPhCkJLn03CZYOVw22RxS dlGw== X-Gm-Message-State: AOAM533df5jK73sHdxLaLD3Mh0LvH2xBA/SAQupzKki6fBFw3FhY29hF 00vjNO2q2F/PUhykoukzauM= X-Google-Smtp-Source: ABdhPJzYZEJNsKfuQbQ8666YMHVxnpyz3DLXk1zXs33asEbHqVHjbqcrltjbI1C4rfLfU63H394L6w== X-Received: by 2002:a19:ad6:: with SMTP id 205mr4246259lfk.522.1604865057334; Sun, 08 Nov 2020 11:50:57 -0800 (PST) Received: from localhost.localdomain ([31.173.80.178]) by smtp.gmail.com with ESMTPSA id u1sm1543811lfk.130.2020.11.08.11.50.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Nov 2020 11:50:56 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: lg.zevlg@gmail.com Mime-Version: 1.0 (1.0) Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary Date: Sun, 8 Nov 2020 23:50:54 +0400 Message-Id: <23507480-E72C-4641-806F-67E13B411A16@gmail.com> References: <83mtzr6cvn.fsf@gnu.org> In-Reply-To: <83mtzr6cvn.fsf@gnu.org> To: Eli Zaretskii X-Mailer: iPad Mail (18A373) X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 44466 Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 8 =D0=BD=D0=BE=D1=8F=D0=B1. 2020 =D0=B3., =D0=B2 20:18, Eli Zaretskii =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > =EF=BB=BF >>=20 >> From: lg.zevlg@gmail.com >> Date: Sun, 8 Nov 2020 20:07:46 +0400 >> Cc: dick.r.chiang@gmail.com, 44466@debbugs.gnu.org >>=20 >>> 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. >>=20 >> The reason is the same as for read-only buffers, making single char bindi= ngs work. For example if you change input method in image-mode and press =E2= =80=9Cq=E2=80=9D key this will kill buffer, because correct command is execu= ted. >=20 > 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 b= uffer as read-only and then mark special places to inhibit read-only, so qua= il translation inhibits for read-only parts and does the translation in writ= able parts. In telega.el project we do opposit - insert read-only parts in w= ritable buffer and expect quail translation not to apply in that read-only p= arts of the buffer. We might change this behaviour, so patch to quail could b= e reverted, however I think it is better to fix this in quail, to reflect th= e logic in internal checks for region writability =E2=80=94 lg From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 08:22:36 2020 Received: (at 44466-done) by debbugs.gnu.org; 14 Nov 2020 13:22:36 +0000 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 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 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 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 Date: Sat, 14 Nov 2020 15:22:15 +0200 Message-Id: <83y2j4ul88.fsf@gnu.org> From: Eli Zaretskii To: lg.zevlg@gmail.com In-Reply-To: <23507480-E72C-4641-806F-67E13B411A16@gmail.com> (lg.zevlg@gmail.com) Subject: Re: bug#44466: 27.1; quail input fails at read-only boundary 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 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44466-done Cc: 44466-done@debbugs.gnu.org, dick.r.chiang@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Fri Aug 15 04:05:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Dec 2020 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator