unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: master 370d403: Explain in the manual how to make `cursor-intangible' work
Date: Sun, 14 Nov 2021 17:33:20 -0500	[thread overview]
Message-ID: <jwv4k8e5qsm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87bl2m4m54.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 14 Nov 2021 19:39:35 +0100")

Lars Ingebrigtsen [2021-11-14 19:39:35] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Note that in your example of 5 X where you want the cursor to be able to
>> jump from "just before XXXXX" to "just after XXXXX", your 5 X are not
>> "intangible" since you can jump from before to after (you might call
>> them "atomic" maybe, but "intangible" doesn't seem quite right).
>
> I don't think I was the one who called this `cursor-intangible', was it?
> People use it to make the cursor skip in fun ways, but `intangible' is
> an odd name for it.

If you read my description carefully, you'll see that the text marked
with `cursor-intangible` is indeed intangible.  It's only when you want
it to be "atomic" that you need to do something funny (like place the
`cursor-intangible` on all-but-one char).  So I think "intangible" is
not a bad choice (tho, indeed, it's a largely accidental/historical
name inherited from the deprecated `intangible` property).

> Yes there is.  See bug#51095 for somebody who's understandably confused
> about what it all means.

Agreed.  But I think your code example just makes it seem like the
current behavior is just wrong, whereas the problem is that it
implements something a bit different from what the OP wanted.
So I think we should better explain our meaning of "intangible" and then
explain how it might relate to a notion of "atomicity" (and how to get
that when you want it).


        Stefan




  reply	other threads:[~2021-11-14 22:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20211114021443.12484.87085@vcs0.savannah.gnu.org>
     [not found] ` <20211114021444.BD421209C6@vcs0.savannah.gnu.org>
2021-11-14 16:05   ` master 370d403: Explain in the manual how to make `cursor-intangible' work Stefan Monnier
2021-11-14 16:09     ` Lars Ingebrigtsen
2021-11-14 18:08       ` Stefan Monnier
2021-11-14 18:13         ` Lars Ingebrigtsen
2021-11-14 18:24           ` Stefan Monnier
2021-11-14 18:39             ` Lars Ingebrigtsen
2021-11-14 22:33               ` Stefan Monnier [this message]
2021-11-15  5:51                 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv4k8e5qsm.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).