From: Eli Barzilay <eli@barzilay.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 17507@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#17507: Documentation for `add-text-property' and relatives
Date: Sat, 17 Aug 2019 15:40:09 +0300 [thread overview]
Message-ID: <CALO-guu0ijQk2wJrRqE3vqKp+LGYeOsukBuo9EoS4w_h0mt7Aw@mail.gmail.com> (raw)
In-Reply-To: <83sgq0nviz.fsf@gnu.org>
On Sat, Aug 17, 2019 at 9:41 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Eli Barzilay <eli@barzilay.org>
> > Date: Sat, 17 Aug 2019 02:49:54 +0300
> > Cc: Lars Ingebrigtsen <larsi@gnus.org>, 17507@debbugs.gnu.org
> >
> > To clarify what I said, it sounds like a string is a tuple of the
> > actual string *and* its properties, so it's always #("xyz" ...) where
> > the quotes denote the raw string contents, except that when there's no
> > properties, then you see just the "xyz" part -- but that's *not* a raw
> > string, it just doesn't show the (empty) properties.
>
> That's not what the printed representation is trying to convey. It is
> simply trying to show you the properties, because that's useful in
> many situations.
>
> > Yet another way to show this is the fact that if you evaluate
> > #("xyz"), the result is *displayed* as "xyz".
> >
> > Maybe adding some note to that effect (perhaps rephrased, to point at
> > the fact that all strings have properties, there are no raw strings)
> > would have resolved my original confusion.
>
> I really don't see how this is related to what you originally wrote,
> sorry. Also, "all strings have properties" would be misleading
> because most strings have no properties.
"All strings have a property list pointer."
> Can we please return to the original issue, which was the
> documentation of add-text-property? I don't see how the printed
> representation of a Lisp string is relevant to the documentation of
> that function (and similar functions that modify text properties of
> strings). Maybe that's what I'm missing, in which case please help me
> connect the dots.
This is the issue: if "xyz" is a raw string in the sense that there is
no plist pointer, then adding one looks confusing.
But I'll just give up.
--
((x=>x(x))(x=>x(x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
next prev parent reply other threads:[~2019-08-17 12:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-16 6:25 bug#17507: Documentation for `add-text-property' and relatives Eli Barzilay
2019-08-14 23:57 ` Lars Ingebrigtsen
2019-08-15 3:41 ` Eli Barzilay
2019-08-15 14:30 ` Eli Zaretskii
2019-08-16 1:35 ` Eli Barzilay
2019-08-16 8:46 ` Eli Zaretskii
2019-08-16 20:04 ` Lars Ingebrigtsen
2019-08-17 6:47 ` Eli Zaretskii
2019-08-17 22:22 ` Richard Stallman
2019-08-16 23:49 ` Eli Barzilay
2019-08-17 6:41 ` Eli Zaretskii
2019-08-17 12:40 ` Eli Barzilay [this message]
2019-08-17 12:46 ` Eli Zaretskii
2019-08-16 1:20 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALO-guu0ijQk2wJrRqE3vqKp+LGYeOsukBuo9EoS4w_h0mt7Aw@mail.gmail.com \
--to=eli@barzilay.org \
--cc=17507@debbugs.gnu.org \
--cc=eliz@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 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.