From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: cursor-intangible and rear-nonsticky t Date: Mon, 5 Apr 2021 11:26:58 -0400 Message-ID: <11A4C2D3-101E-4121-8DFD-D6451B28C8F1@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_A083F407-0CC8-4AA4-AE2F-AB585B904EBB" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16217"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 05 17:28:39 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lTR9a-00047Y-VQ for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 17:28:38 +0200 Original-Received: from localhost ([::1]:57418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTR9a-00087W-0V for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Apr 2021 11:28:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTR87-0007c1-3H for emacs-devel@gnu.org; Mon, 05 Apr 2021 11:27:07 -0400 Original-Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]:34777) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTR81-0007QO-5r for emacs-devel@gnu.org; Mon, 05 Apr 2021 11:27:06 -0400 Original-Received: by mail-qv1-xf2e.google.com with SMTP id j3so3542893qvs.1 for ; Mon, 05 Apr 2021 08:27:00 -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:cc:to; bh=3pvzrBhE5mjolXhAC02E+JHQszOrANx7xmIIhEYb1gE=; b=BGnTbu+WJ8tvKBXPcuEPiQEk1jK1o+AcWH26Y2lqeWTryQxVRSryqUIyvLqP5/+RRp pAq/YeKLTJJLhzV0F5u/iD1Gsg+d0LsjMo5EgE2t0VDt8fFPnBNFRoN3PgXCHIkXdUqO wzAyGmbTgiam4hOZveZce0LMKh0k0wcHy01GAOsoraQrObI9rLdQOVif6GR9cjVvhNjS CyoRX7p4YHVIfrugc5INwnitr3ZnVIZsCy3ToUMgv+rm9oYb9Pk2cq44oGdstEuBo2di BayuRhgB1k5R1cT1h43kJG1r/zkxUayLcrKvxMHH7q7BqXJEICW0n/Kzgfd3fyorv+zF huNQ== 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:cc:to; bh=3pvzrBhE5mjolXhAC02E+JHQszOrANx7xmIIhEYb1gE=; b=Hu6zqz8QTsLepYknCqkiKKMxKDtdv2erL/VKzAltAjN7iYSOfjl2lXGhvQ3ZVMrDLn VppgxpMixz8e6dvU/peDdAWIbUHqE8lzMVrZH58dCCGEAtKqZQoFGdDaL2jpTpfN26iv mrVVkjsn6c4dWWuVSw1cjHjqxqQpX+G7vy3xJJmZFVQAEokorQz80OfEAO1H/lEuXzHb Y0QyQ6AEv4oN6Gq6BTtdkEnIu/iIbWh8GKzKV8IjSIBCSp9zEcpH+Ed+8Okz90mTvko4 b5zZm4E+2wrqu2EJYIZZbWRXPuWkCIYKswRUVPWNqlgDeVSzK8zPq9mkKw9Bb/VVP3Yo zAVA== X-Gm-Message-State: AOAM5330fdC68zLkZ7crKjfy3kPHMB8o02He36yPcub6izjOi6A8i6t0 BQD8M8jNjqFA/Fc+wrhoX5m66wqBTVf/Vg== X-Google-Smtp-Source: ABdhPJz3wueJnrgmIKWOSST/wrIo8CgpIpX9WgMezotShQp1QwGRPYuIhovkXAtIyQtoNo5oRlAeLg== X-Received: by 2002:ad4:5851:: with SMTP id de17mr24016312qvb.6.1617636419729; Mon, 05 Apr 2021 08:26:59 -0700 (PDT) Original-Received: from [192.168.0.116] (cm-134-228-54-223.buckeyecom.net. [134.228.54.223]) by smtp.gmail.com with ESMTPSA id h7sm13351861qkk.41.2021.04.05.08.26.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Apr 2021 08:26:59 -0700 (PDT) X-Mailer: Apple Mail (2.3608.120.23.2.4) Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=jdtsmith@gmail.com; helo=mail-qv1-xf2e.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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267419 Archived-At: --Apple-Mail=_A083F407-0CC8-4AA4-AE2F-AB585B904EBB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99m trying to make a bit of leading text (the ` =E2=80=A6: ` = continued block prompt in python shell) skippable, so that cursor = navigation passes right by without entering it. I used 'intangible at = first and it works well. Noticing Stefan=E2=80=99s concerns about = 'intangible, I tried to switch to 'cursor-intangible with = `cursor-intangible-mode' enabled. But I encountered some strange = issues: If '(rear-nonsticky t) is among the text properties, the = `pre-redisplay-functions' do not apparently get called, and so = 'cursor-intangible fails to function. =20 On MacOS ports, enabling `cursor-intangible-mode' causes the frame to = aggressively regrab focus and re-raise when it loses focus. This makes = it unusable. I expect the latter is a bug, but perhaps the former is expected? = Thanks.= --Apple-Mail=_A083F407-0CC8-4AA4-AE2F-AB585B904EBB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

I=E2=80=99m trying to = make a bit of leading text (the ` =E2=80=A6: ` continued block prompt in = python shell) skippable, so that cursor navigation passes right by = without entering it.  I used 'intangible at first and it works = well.  Noticing Stefan=E2=80=99s concerns about 'intangible, I = tried to switch to 'cursor-intangible with `cursor-intangible-mode' = enabled.  But I encountered some strange issues:

  1. If '(rear-nonsticky t) is among the = text properties, the `pre-redisplay-functions' do not apparently get = called, and so 'cursor-intangible fails to function.  
  2. On MacOS ports, enabling `cursor-intangible-mode' causes the = frame to aggressively regrab focus and re-raise when it loses focus. =  This makes it unusable.

I expect the latter is a bug, but = perhaps the former is expected? Thanks.
= --Apple-Mail=_A083F407-0CC8-4AA4-AE2F-AB585B904EBB--