From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#17507: Documentation for `add-text-property' and relatives Date: Sat, 17 Aug 2019 15:40:09 +0300 Message-ID: References: <21365.44878.936634.958813@home.barzilay.org> <87a7cbti4n.fsf@mouse.gnus.org> <83k1beqz6f.fsf@gnu.org> <837e7dpkfj.fsf@gnu.org> <83sgq0nviz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="39024"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 17507@debbugs.gnu.org, Lars Ingebrigtsen To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 17 14:41:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyy18-0009zn-7O for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 14:41:10 +0200 Original-Received: from localhost ([::1]:36090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyy17-0006rC-2Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 08:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44464) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyy11-0006r5-GV for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 08:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyy10-0004p6-9T for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 08:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46575) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyy10-0004p0-6W for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 08:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyy10-0000Kk-2S for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 08:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Barzilay Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2019 12:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 17507-submit@debbugs.gnu.org id=B17507.15660456281235 (code B ref 17507); Sat, 17 Aug 2019 12:41:01 +0000 Original-Received: (at 17507) by debbugs.gnu.org; 17 Aug 2019 12:40:28 +0000 Original-Received: from localhost ([127.0.0.1]:55396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyy0R-0000Jr-JD for submit@debbugs.gnu.org; Sat, 17 Aug 2019 08:40:27 -0400 Original-Received: from mail-vs1-f65.google.com ([209.85.217.65]:42555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyy0P-0000Jb-8N for 17507@debbugs.gnu.org; Sat, 17 Aug 2019 08:40:26 -0400 Original-Received: by mail-vs1-f65.google.com with SMTP id b187so222861vsc.9 for <17507@debbugs.gnu.org>; Sat, 17 Aug 2019 05:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=barzilay-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VOVnyZ6x2z8wFb4ANWmyjX8W2B68hgoGANDFQzOV+Ss=; b=UFXngH/nzvzOBsLt9bqKHiSlSDTUgNLJGjg3zr48c9W9Sp+bsnwt70mdOyvbZGxc0H OBS4RjISOsMQ7iEvX5ryKUwVQOP9T1ie40veN64hovfBn9SfFk8avyx1BzwTOfhpX3Ga aq4O5vFgWnKGA5duFb38GRl8VhQhdijC1UG0kwBFlwMMZ1R746XtIv946t0DDCJ3HZVv fdo7ngBHDOo4XC7DvMWeUXuhdbO9a2o7HbCNQfH5AXME4n1EwY3FtjTiIQCwLUUpWQMS BzAUK2OVCZ88u4Dnt7joby4wQ22L8pXtVByXevND+nBmse+HZpyecAAMecV0Mo3pZeAn F3JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VOVnyZ6x2z8wFb4ANWmyjX8W2B68hgoGANDFQzOV+Ss=; b=jjw1tfm2d1YM9l/tH3g9xkJ8eBf/cD4+G0g9fDecDsl9aAJcgMicfgeg4143Gfoa43 MjjRgP2IXUr+D23So+AYVDgUmiWk5gmQQgQwFrsR/Jiv2R/2Ef0g+w/a9lshlZ0IQEE5 12Xz9Uo6a7nAQHYWA2j+BE4sHE2Y/xCdfAPPPG2Xi6q0pO4oBcPCadXY9J8RBKCS1Cmm eHYIQy3AZJK0sxfbXOWT2ZiG+OYQtfn0ycpASBrmxYOnBKBvpZ8eJSeZg5Unq51YX5M5 vXVL4e+iWqNqjChEuXXEf2omjqtVX0j6ZgnFI2LBINx9W03SE2v5h3QLy+kbY3VlSPpU 0Mew== X-Gm-Message-State: APjAAAVP/tYmeiE9EScssRI+SPVEMjVmLbFxiXvfh1Lt7hVFJyRclWq0 hcrvsDzToxMa4ocd7+4+sUlahfv1LEoVcD4+j8LrNg== X-Google-Smtp-Source: APXvYqymGbyrYvgn+UiemhLeMzYjVLC4Ssl0qRbtQl6V1IRou08CTggKCS0KEXLTwZr/l2orCJvNK1D+sSQxNTqL+bc= X-Received: by 2002:a67:6889:: with SMTP id d131mr861429vsc.93.1566045619439; Sat, 17 Aug 2019 05:40:19 -0700 (PDT) In-Reply-To: <83sgq0nviz.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165258 Archived-At: On Sat, Aug 17, 2019 at 9:41 AM Eli Zaretskii wrote: > > > From: Eli Barzilay > > Date: Sat, 17 Aug 2019 02:49:54 +0300 > > Cc: Lars Ingebrigtsen , 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!