From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#9825: 24.0.90; doc of `propertize' is misleading Date: Fri, 21 Oct 2011 09:06:04 -0700 Message-ID: <9E7F1C308C024D1DABB8B840BD77316B@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319213984 5867 80.91.229.12 (21 Oct 2011 16:19:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 16:19:44 +0000 (UTC) To: 9825@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 21 18:19:38 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RHHon-0000nP-Td for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2011 18:19:38 +0200 Original-Received: from localhost ([::1]:38690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHHon-0001EI-Ah for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Oct 2011 12:19:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHHcP-0006h2-Bm for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 12:06:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHHcO-0003EC-25 for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 12:06:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHHcN-0003E8-Ua for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 12:06:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RHHdZ-0000jC-Oe for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 12:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Oct 2011 16:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9825 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.13192132812791 (code B ref -1); Fri, 21 Oct 2011 16:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Oct 2011 16:08:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHHdY-0000iv-N8 for submit@debbugs.gnu.org; Fri, 21 Oct 2011 12:08:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RHHdW-0000ik-0M for submit@debbugs.gnu.org; Fri, 21 Oct 2011 12:07:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHHc7-0003BP-Fp for submit@debbugs.gnu.org; Fri, 21 Oct 2011 12:06:37 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:35842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHHc7-0003BJ-Cq for submit@debbugs.gnu.org; Fri, 21 Oct 2011 12:06:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHHbt-00056t-Rf for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 12:06:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHHbr-000387-OD for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 12:06:17 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:32100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHHbr-00037r-EY for bug-gnu-emacs@gnu.org; Fri, 21 Oct 2011 12:06:15 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p9LG6CqW015325 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Oct 2011 16:06:14 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p9LG6Bx2020896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 21 Oct 2011 16:06:12 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p9LG668k003143 for ; Fri, 21 Oct 2011 11:06:06 -0500 Original-Received: from dradamslap1 (/10.159.63.178) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 21 Oct 2011 09:06:05 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcyQC1WW+G0g4cFgSKW8MiS9IY1DZQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4EA19876.0049:SCFMA922111,ss=1,re=-4.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 21 Oct 2011 12:08:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52996 Archived-At: In (elisp) Changing Properties: This function returns a copy of STRING which has the text properties PROPERTIES. The text is ambiguous and vague, but the impression from just saying "has" is that the new string has ONLY properties PROPERTIES. it gives the impression that `propertize' SETS the properties of the string copy, rather than just adding the given properties (setting any that are the same). E.g.: (setq foo (propertize "abcd" 'face 'bold)) (setq foo (propertize foo 'mouse-face 'highlight) foo => #("abcd" 0 4 (face bold mouse-face highlight)) and NOT #("abcd" 0 4 (mouse-face highlight)). Note that the doc string is clear in this regard. It says: Return a copy of STRING with text properties added. ^^^^^ ... text properties to add to the result. ^^^^^^^^^^^^^^^^^ In GNU Emacs 24.0.90.1 (i386-mingw-nt5.1.2600) of 2011-10-18 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.6) --no-opt --cflags -I"C:/Program Files (x86)/GnuWin32/include" -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5.8/src -ID:/devel/emacs/gnutls-2.10.5-x86/include --ldflags -LD:/devel/emacs/gnutls-2.10.5-x86/lib'