GNU bug report logs - #9825
24.0.90; doc of `propertize' is misleading

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 21 Oct 2011 16:08:01 UTC

Severity: minor

Found in version 24.0.90

Fixed in version 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9825 in the body.
You can then email your comments to 9825 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#9825; Package emacs. (Fri, 21 Oct 2011 16:08:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 21 Oct 2011 16:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.90; doc of `propertize' is misleading
Date: Fri, 21 Oct 2011 09:06:04 -0700
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'
 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#9825; Package emacs. (Mon, 17 Sep 2012 00:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 9825 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <9825 <at> debbugs.gnu.org>
Subject: RE: bug#9825: 24.0.90; doc of `propertize' is misleading
Date: Sun, 16 Sep 2012 17:27:54 -0700
ping





bug marked as fixed in version 24.4, send any further explanations to 9825 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 09 Feb 2014 06:19:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Mar 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.