all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 33664@debbugs.gnu.org
Subject: bug#33664: 26.1; Document vars and functions in `cursor-sensor.el'
Date: Sun, 9 Dec 2018 12:56:51 -0800 (PST)	[thread overview]
Message-ID: <2b73c556-9e89-441d-bc79-78a9fd0e69f0@default> (raw)
In-Reply-To: <jwvva4233ou.fsf-monnier+emacs@gnu.org>

> > Specifically, I'd like to know some behavior
> > differences - examples of when `intangible' text
> 
> With `intangible` you can have a situation where a chunk of code does
> 
>     (goto-char POS)
>     BLAH
>     BLAH
>     BLAH
> 
> and it misbehaves because BLAH BLAH BLAH expects to run with point at
> POS,
> but some other package added an `intangible` property so the goto-char
> actually ended up putting point somewhere else.
> 
> IOW `intangible` breaks all kinds of invariants like
> 
>     (point) == (progn (forward-char N) (forward-char -N) (point))
>     (+ N (point)) == (progn (forward-char N) (point))
> 
> [ Admittedly these invariants aren't true when you bump into EOB but
>   a lot of code is prepared to deal with odd cases at EOB but is not
>   prepared for such surprises happening virtually anywhere.  ]

Thank you.  I think it would be good if you would
add this info (exactly what you wrote is fine) to
the Commentary.

Besides the difference in positions, aren't there
other important differences that come from the
`intangible' property changing Emacs behavior at
a low level rather than in pre-display?  Is it
possible that someone might take advantage of that
earlier, or lower-level, reaction?

It seems (to me, so far) like maybe the behavior
difference you described should not be cause for
deprecating text property `intangible'.  It might
be cause for recommending to generally use
`cursor-intangible-mode' instead.  It sounds like
both should probably be offered, with a description
of the differences.

Just one, hardly informed, opinion.





  reply	other threads:[~2018-12-09 20:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<cfd3992c-7a13-4ff5-816f-689ceb856396@default>
     [not found] ` <<jwvo99u4x81.fsf-monnier+bug#33664@gnu.org>
     [not found]   ` <<83zhte3f4n.fsf@gnu.org>
2018-12-07 15:15     ` bug#33664: 26.1; Document vars and functions in `cursor-sensor.el' Drew Adams
2018-12-07 15:28       ` Drew Adams
2018-12-07 15:34         ` Drew Adams
2018-12-07 15:35       ` Eli Zaretskii
2018-12-08  3:24         ` Richard Stallman
2018-12-09 14:01       ` Stefan Monnier
2018-12-09 15:15         ` Eli Zaretskii
2018-12-10  3:09         ` Richard Stallman
2018-12-09 18:38       ` Drew Adams
2019-10-12 22:12         ` Lars Ingebrigtsen
2018-12-09 18:32     ` Drew Adams
2018-12-09 19:35       ` Stefan Monnier
2018-12-09 20:56         ` Drew Adams [this message]
2018-12-10  1:58           ` Stefan Monnier
     [not found] ` <<83k1kl5ozh.fsf@gnu.org>
2018-12-07 15:57   ` Drew Adams
2018-12-07 16:29     ` Eli Zaretskii
2018-12-08 23:10     ` Juri Linkov
2018-12-09  3:53       ` Drew Adams

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

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

  git send-email \
    --in-reply-to=2b73c556-9e89-441d-bc79-78a9fd0e69f0@default \
    --to=drew.adams@oracle.com \
    --cc=33664@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.