From unknown Mon Jun 23 09:39:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47603: comint sets '(rear-nonsticky t) on entire prompt, disabling 'cursor-intangible Resent-From: JD Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Apr 2021 18:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 47603@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16176460443588 (code B ref -1); Mon, 05 Apr 2021 18:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Apr 2021 18:07:24 +0000 Received: from localhost ([127.0.0.1]:38537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTTdE-0000vo-3Z for submit@debbugs.gnu.org; Mon, 05 Apr 2021 14:07:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:55888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTTdC-0000vh-LV for submit@debbugs.gnu.org; Mon, 05 Apr 2021 14:07:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTTdC-00006x-HA for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 14:07:22 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:41701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTTdA-0005SC-JW for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 14:07:22 -0400 Received: by mail-qt1-x82c.google.com with SMTP id x9so9157739qto.8 for ; Mon, 05 Apr 2021 11:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=TT15VXCUSkWQN6DlXMEZCdyBSRmeIUJsXfaFgz2vUKk=; b=oOJWoA3HAZ9FWafezNbmtAukOGrR+LrbM4rD3A80h7WD4+nzmuHPths4Dm0hZktmCa 7ovTjl2OE9gWR+CGOYn3vlYmTubT2O7kH6nu3xofRmzuPViueMekx/GpNKrMwcTxwSZ3 aJGJVbtMypiqXqOOny5OPp9aIt/ByUqBkYF8sjr+Ha3obrmCEgGWevz5ijGjHe1jiupG 903GLAz70gP0ZAg3MycmfcTjE010syYq7/+GN2Af8Hrlrz5AmTm9vUzpL/OdoSgvga0l 7gm7hI/NRqFIEbGyXQOrtEfzr791LiZGASjJDf2DsRtc/2Gr/o7wSZ7ubAf8vmie/Oa1 ilRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=TT15VXCUSkWQN6DlXMEZCdyBSRmeIUJsXfaFgz2vUKk=; b=XXIekf8PWGXN05kMhRMKQ/YHqLMVVOlUrRzIg/FBL5gwgK7Uru4bi8zh0ViuzRVbyJ EkrU31iAzwHlvayaMAkHJcz67yqra8StpsTphwa912i3UjUaBR1M/8bMahAyZTIu9Dpf uZox4seEc/LVyLVZZA54zt+DhvKrU121tqp1rTwkGJikpNGGOhPm1/DaLmAa062XP2Gr fj30NM/77SZ7rJQ6C/ycdae7AYw4sbbt5JiktmVUEZOsj5HuX0xzP1DCR4DK9WbZJ2Te RGY0WWgZ3s7wSQkg/uVGK9+lWD89BRapHYg0Kvk9H212Opipv8azDty+aNDCz91Jk8do WD+w== X-Gm-Message-State: AOAM530do1v1tcAIHDE2dKRUcaPZXjEmskCwiKOxcm1MAr62HYHheO3V oKTgos2tPdsEupbHcXuvJV6nw93weMZhUg== X-Google-Smtp-Source: ABdhPJzjGS/NFcieMPk2i/kI69y8xkRvugsGikj7UDvDBY35IsawwStCd0CkpMPF9P5ipDQFdV6wIA== X-Received: by 2002:ac8:5347:: with SMTP id d7mr23374038qto.259.1617646038914; Mon, 05 Apr 2021 11:07:18 -0700 (PDT) Received: from [192.168.0.116] (cm-134-228-54-223.buckeyecom.net. [134.228.54.223]) by smtp.gmail.com with ESMTPSA id 77sm14382673qko.48.2021.04.05.11.07.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Apr 2021 11:07:18 -0700 (PDT) From: JD Smith Content-Type: multipart/alternative; boundary="Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Message-Id: <3D036269-3D25-4F05-8B1E-BF9CB1956326@gmail.com> Date: Mon, 5 Apr 2021 14:07:17 -0400 X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=jdtsmith@gmail.com; helo=mail-qt1-x82c.google.com 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, HTML_MESSAGE=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: -1.3 (-) 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 (--) --Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Comint sets =E2=80=98(rear-nonsticky t) on the entire detected prompt = text, which prevents `cursor-intangible from functioning correctly when = applied to the prompt. As Stefan put it: I suspect the issue comes from the difference between `get-pos-property` = and `get-char-property`: positions (like `point`) are not placed on a = character but between two characters. But text properties only apply to = characters. So the properties that are "on a position" are based on = what properties would a character inherit if it where inserted at that = position. By default text properties are front-nonstick and rear-sticky, so = basically a position gets its properties from the char right before it. = But if you set (rear-nonsticky t), then you get no properties at all at = that position. This causes issues when "applying (rear-nonsticky t) a bit too = generously, e.g. to all the chars in the prompt rather than only to the = last one." --Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Comint sets = =E2=80=98(rear-nonsticky t) on the entire detected prompt text, which = prevents `cursor-intangible from functioning correctly when applied to = the prompt.  As Stefan put it:

I suspect the issue = comes from the difference between `get-pos-property` = and `get-char-property`: positions (like `point`) are not = placed on a character but between two characters.  But text properties only apply to = characters.  So the properties that are "on a = position" are based on what properties would a = character inherit if it where inserted at that = position.

By = default text properties are front-nonstick and rear-sticky, = so basically a position gets its properties from the = char right before it. But if you set (rear-nonsticky t), = then you get no properties at all at that = position.

This causes issues when "applying (rear-nonsticky t) a bit too generously, e.g. to all the chars in the prompt rather than = only to the last one."
= --Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473-- From unknown Mon Jun 23 09:39:57 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: JD Smith Subject: bug#47603: closed (Re: bug#47603: comint sets '(rear-nonsticky t) on entire prompt, disabling 'cursor-intangible) Message-ID: References: <3D036269-3D25-4F05-8B1E-BF9CB1956326@gmail.com> X-Gnu-PR-Message: they-closed 47603 X-Gnu-PR-Package: emacs Reply-To: 47603@debbugs.gnu.org Date: Tue, 13 Apr 2021 02:51:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1618282262-9851-1" This is a multi-part message in MIME format... ------------=_1618282262-9851-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #47603: comint sets '(rear-nonsticky t) on entire prompt, disabling 'cursor= -intangible which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 47603@debbugs.gnu.org. --=20 47603: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D47603 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1618282262-9851-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 47603-done) by debbugs.gnu.org; 13 Apr 2021 02:50:07 +0000 Received: from localhost ([127.0.0.1]:58571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lW97u-0002Xg-Sj for submit@debbugs.gnu.org; Mon, 12 Apr 2021 22:50:07 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:57749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lW97s-0002X6-9h for 47603-done@debbugs.gnu.org; Mon, 12 Apr 2021 22:50:04 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BB95F1001D2; Mon, 12 Apr 2021 22:49:58 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E043D100040; Mon, 12 Apr 2021 22:49:56 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1618282196; bh=E91dfZ1T7caPuGW+NfcgopdBXJNJEFo+6JRogWVoHRk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=K7/k2AP9dxLxz4Z+EV8r1wGu4kRfyMgI5eKWzZzTTequykOXSW8ZnAya4vj4oZ0Sz Af33V1xFKwpNavAW+6uSwvB6df5VzPn2QYtaPTOP2SBbcnWyZjLaZvvT4t5xsow2qt 7sdi9VsclLNXXlgAdylv9+ETVv0lVkFh7dYDxR8HyAAdlwUnL/JNwz0xV5NjaaCsYS wnwn4MwVPAwi5/em8uj/S8zm/A4rLPpLu91QdTibaOxXDjfZInlnGoRAjiVCwGOmd0 YL2OcV2zxOreYkdp+ed3XWP+uVBHz0Tnn1lwLfATdoieUnZ18mTFzZOJUsBJkzODvs xA4QW5SpR6bQA== Received: from alfajor (104-222-126-84.cpe.teksavvy.com [104.222.126.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B164C1204C5; Mon, 12 Apr 2021 22:49:56 -0400 (EDT) From: Stefan Monnier To: JD Smith Subject: Re: bug#47603: comint sets '(rear-nonsticky t) on entire prompt, disabling 'cursor-intangible Message-ID: References: <3D036269-3D25-4F05-8B1E-BF9CB1956326@gmail.com> Date: Mon, 12 Apr 2021 22:49:55 -0400 In-Reply-To: <3D036269-3D25-4F05-8B1E-BF9CB1956326@gmail.com> (JD Smith's message of "Mon, 5 Apr 2021 14:07:17 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 47603-done Cc: 47603-done@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 (---) > Comint sets =E2=80=98(rear-nonsticky t) on the entire detected prompt tex= t, which > prevents `cursor-intangible from functioning correctly when applied to the > prompt. As Stefan put it: I fixed it a while back but forgot the `font-lock-face` property in the list of properties to add to `rear-nonstick` so I just added the patch below to `master`. I believe this should now do it. Stefan diff --git a/lisp/comint.el b/lisp/comint.el index 2745c5a26f..b90e6354d8 100644 --- a/lisp/comint.el +++ b/lisp/comint.el @@ -1797,6 +1797,9 @@ comint-add-to-input-history (min size (- comint-input-ring-size size))))) (ring-insert comint-input-ring cmd))) =20 +(defconst comint--prompt-rear-nonsticky + '(field inhibit-line-move-field-capture read-only font-lock-face)) + (defun comint-send-input (&optional no-newline artificial) "Send input to process. After the process output mark, sends all text from the process mark to @@ -1916,8 +1919,8 @@ comint-send-input (unless (or no-newline comint-use-prompt-regexp) ;; Cover the terminating newline (add-text-properties end (1+ end) - '(rear-nonsticky - (field inhibit-line-move-field-captur= e read-only) + `(rear-nonsticky + ,comint--prompt-rear-nonsticky field boundary inhibit-line-move-field-capture t))))) =20 @@ -2124,10 +2127,10 @@ comint-output-filter (unless comint-use-prompt-regexp (with-silent-modifications (add-text-properties comint-last-output-start (point) - '(front-sticky + `(rear-nonsticky + ,comint--prompt-rear-nonsticky + front-sticky (field inhibit-line-move-field-capture) - rear-nonsticky - (field inhibit-line-move-field-capture read-only) field output inhibit-line-move-field-capture t)))) =20 @@ -2157,8 +2160,8 @@ comint-output-filter 'font-lock-face 'comint-highlight-prompt) (add-text-properties prompt-start (point) - '(rear-nonsticky - (field inhibit-line-move-field-capture read-= only)))) + `(rear-nonsticky + ,comint--prompt-rear-nonsticky))) (goto-char saved-point))))))) =20 (defun comint-preinput-scroll-to-bottom () ------------=_1618282262-9851-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Apr 2021 18:07:24 +0000 Received: from localhost ([127.0.0.1]:38537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTTdE-0000vo-3Z for submit@debbugs.gnu.org; Mon, 05 Apr 2021 14:07:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:55888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTTdC-0000vh-LV for submit@debbugs.gnu.org; Mon, 05 Apr 2021 14:07:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTTdC-00006x-HA for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 14:07:22 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:41701) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTTdA-0005SC-JW for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 14:07:22 -0400 Received: by mail-qt1-x82c.google.com with SMTP id x9so9157739qto.8 for ; Mon, 05 Apr 2021 11:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=TT15VXCUSkWQN6DlXMEZCdyBSRmeIUJsXfaFgz2vUKk=; b=oOJWoA3HAZ9FWafezNbmtAukOGrR+LrbM4rD3A80h7WD4+nzmuHPths4Dm0hZktmCa 7ovTjl2OE9gWR+CGOYn3vlYmTubT2O7kH6nu3xofRmzuPViueMekx/GpNKrMwcTxwSZ3 aJGJVbtMypiqXqOOny5OPp9aIt/ByUqBkYF8sjr+Ha3obrmCEgGWevz5ijGjHe1jiupG 903GLAz70gP0ZAg3MycmfcTjE010syYq7/+GN2Af8Hrlrz5AmTm9vUzpL/OdoSgvga0l 7gm7hI/NRqFIEbGyXQOrtEfzr791LiZGASjJDf2DsRtc/2Gr/o7wSZ7ubAf8vmie/Oa1 ilRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=TT15VXCUSkWQN6DlXMEZCdyBSRmeIUJsXfaFgz2vUKk=; b=XXIekf8PWGXN05kMhRMKQ/YHqLMVVOlUrRzIg/FBL5gwgK7Uru4bi8zh0ViuzRVbyJ EkrU31iAzwHlvayaMAkHJcz67yqra8StpsTphwa912i3UjUaBR1M/8bMahAyZTIu9Dpf uZox4seEc/LVyLVZZA54zt+DhvKrU121tqp1rTwkGJikpNGGOhPm1/DaLmAa062XP2Gr fj30NM/77SZ7rJQ6C/ycdae7AYw4sbbt5JiktmVUEZOsj5HuX0xzP1DCR4DK9WbZJ2Te RGY0WWgZ3s7wSQkg/uVGK9+lWD89BRapHYg0Kvk9H212Opipv8azDty+aNDCz91Jk8do WD+w== X-Gm-Message-State: AOAM530do1v1tcAIHDE2dKRUcaPZXjEmskCwiKOxcm1MAr62HYHheO3V oKTgos2tPdsEupbHcXuvJV6nw93weMZhUg== X-Google-Smtp-Source: ABdhPJzjGS/NFcieMPk2i/kI69y8xkRvugsGikj7UDvDBY35IsawwStCd0CkpMPF9P5ipDQFdV6wIA== X-Received: by 2002:ac8:5347:: with SMTP id d7mr23374038qto.259.1617646038914; Mon, 05 Apr 2021 11:07:18 -0700 (PDT) Received: from [192.168.0.116] (cm-134-228-54-223.buckeyecom.net. [134.228.54.223]) by smtp.gmail.com with ESMTPSA id 77sm14382673qko.48.2021.04.05.11.07.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Apr 2021 11:07:18 -0700 (PDT) From: JD Smith Content-Type: multipart/alternative; boundary="Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: comint sets '(rear-nonsticky t) on entire prompt, disabling 'cursor-intangible Message-Id: <3D036269-3D25-4F05-8B1E-BF9CB1956326@gmail.com> Date: Mon, 5 Apr 2021 14:07:17 -0400 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=jdtsmith@gmail.com; helo=mail-qt1-x82c.google.com 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, HTML_MESSAGE=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: -1.3 (-) 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 (--) --Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Comint sets =E2=80=98(rear-nonsticky t) on the entire detected prompt = text, which prevents `cursor-intangible from functioning correctly when = applied to the prompt. As Stefan put it: I suspect the issue comes from the difference between `get-pos-property` = and `get-char-property`: positions (like `point`) are not placed on a = character but between two characters. But text properties only apply to = characters. So the properties that are "on a position" are based on = what properties would a character inherit if it where inserted at that = position. By default text properties are front-nonstick and rear-sticky, so = basically a position gets its properties from the char right before it. = But if you set (rear-nonsticky t), then you get no properties at all at = that position. This causes issues when "applying (rear-nonsticky t) a bit too = generously, e.g. to all the chars in the prompt rather than only to the = last one." --Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Comint sets = =E2=80=98(rear-nonsticky t) on the entire detected prompt text, which = prevents `cursor-intangible from functioning correctly when applied to = the prompt.  As Stefan put it:

I suspect the issue = comes from the difference between `get-pos-property` = and `get-char-property`: positions (like `point`) are not = placed on a character but between two characters.  But text properties only apply to = characters.  So the properties that are "on a = position" are based on what properties would a = character inherit if it where inserted at that = position.

By = default text properties are front-nonstick and rear-sticky, = so basically a position gets its properties from the = char right before it. But if you set (rear-nonsticky t), = then you get no properties at all at that = position.

This causes issues when "applying (rear-nonsticky t) a bit too generously, e.g. to all the chars in the prompt rather than = only to the last one."
= --Apple-Mail=_ECFA42AF-E0B1-49A9-8B48-64FF7D552473-- ------------=_1618282262-9851-1--