From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 38051@debbugs.gnu.org, stefan@marxist.se
Subject: bug#38051: 26.3; (elisp) `Insertion' use of verb "point"
Date: Fri, 8 Nov 2019 11:56:29 -0800 (PST) [thread overview]
Message-ID: <b1d539d7-b507-4b33-8f2c-bcbf80e35d64@default> (raw)
In-Reply-To: <<83a796b2tx.fsf@gnu.org>>
> > 1. From a user point of view (conceptual model),
> > markers _are_ objects that can be located
> > _in_ a buffer, _at_ buffer positions.
>
> That is incorrect. A marker stores a buffer and a location within
> that buffer, but it isn't itself located in a buffer.
From a user point of view. That's the point.
That can't be "incorrect". It's a question of
what the user needs as a conceptual model to
work with markers (and overlays, for that matter).
Does the model fit the observable behavior? That's
something that makes sense to ask. So far, I've
seen no example of a case where it doesn't fit.
It does not matter one whit to a user what the
implementation of a marker is. Whether a marker
"stores a buffer and a location" or a marker
stores a (code) pointer to a buffer and a location,
or however else it might be implemented.
Unless you can show the contrary. Ehat user-visible
behavior is unexplained by the simpler user model
I described (and which we already use for overlays,
and which we already partly - but not consistently -
use for markers)?
> > 3. When we document `char-after', we don't say
> > that the char (which is conceptually _in_ the
> > buffer) "points at" a buffer position. We
> > say "Return the character _in_ current buffer
> > _at_ position POS."
> >
> > Markers, like characters, are at buffer
> > positions (chars are actually after, not at).
>
> See above: that's correct about characters, but incorrect about
> markers.
"Incorrect" is the wrong way to talk about such
things. A user description/model that is coherent,
consistent, and complete - jibes with observable
behavior - is fine and dandy. Useful, sufficient.
> > This is how we treat overlays.
>
> Overlays are completely different beasts.
If you say so (without any explanation of why you
think so).
Does an overlay store a buffer and two locations
within that buffer? Why is it necessary (or even
useful) for a user to think in terms of a marker
doing that but not an overlay?
What is it in the user-observable behavior of a
marker that requires introducing the extra
(I'd say extraneous) construct of it "pointing to"
a buffer and a position within that buffer? A
construct that is nowhere defined or explicated.
next prev parent reply other threads:[~2019-11-08 19:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<10c2ca80-b3d5-4efb-a2b1-5ded0cc8a14d@default>
[not found] ` <<83sgn3h7yj.fsf@gnu.org>
2019-11-04 18:10 ` bug#38051: 26.3; (elisp) `Insertion' use of verb "point" Drew Adams
2019-11-04 18:36 ` Eli Zaretskii
[not found] ` <<874kzfyzk5.fsf@marxist.se>
[not found] ` <<3b0f7464-a74f-4687-b91b-b654697cc1cc@default>
[not found] ` <<83a796b2tx.fsf@gnu.org>
2019-11-08 19:56 ` Drew Adams [this message]
2019-11-08 20:14 ` Eli Zaretskii
2019-11-09 14:55 ` Stefan Kangas
2019-11-03 21:26 Drew Adams
2019-11-04 17:23 ` Eli Zaretskii
2019-11-08 0:36 ` Stefan Kangas
2019-11-08 17:53 ` Drew Adams
2019-11-08 19:11 ` Eli Zaretskii
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=b1d539d7-b507-4b33-8f2c-bcbf80e35d64@default \
--to=drew.adams@oracle.com \
--cc=38051@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=stefan@marxist.se \
/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).