From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: set-text-properties, remove-set-properties, add-text-properties: 1) doc string 2) return value Date: Sat, 18 Feb 2006 11:37:00 -0800 Message-ID: References: <87zmmjtmcj.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140300166 2962 80.91.229.2 (18 Feb 2006 22:02:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2006 22:02:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 18 23:02:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FAaA5-0007cd-BM for ged-emacs-devel@m.gmane.org; Sat, 18 Feb 2006 23:02:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAaA4-0000C1-Rj for ged-emacs-devel@m.gmane.org; Sat, 18 Feb 2006 17:02:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FAXuW-0004eH-39 for emacs-devel@gnu.org; Sat, 18 Feb 2006 14:38:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FAXtD-0003a5-Sp for emacs-devel@gnu.org; Sat, 18 Feb 2006 14:37:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAXtC-0003Z9-VI for emacs-devel@gnu.org; Sat, 18 Feb 2006 14:37:07 -0500 Original-Received: from [141.146.126.228] (helo=agminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FAXyq-0005Gl-Ow for emacs-devel@gnu.org; Sat, 18 Feb 2006 14:42:56 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet01.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k1IJb5Xk017288 for ; Sat, 18 Feb 2006 13:37:05 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k1IJb4JD032699 for ; Sat, 18 Feb 2006 12:37:04 -0700 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-80-252.vpn.oracle.com [141.144.80.252]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k1IJb4Vr032691 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 18 Feb 2006 12:37:04 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: <87zmmjtmcj.fsf@jurta.org> Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50718 Archived-At: > Exactly. I think it should just return OBJECT, whether that > is a buffer (or the current buffer, when nil) or a string. I agree. `propertize' returns its input argument with added properties. So why `add-text-properties', `set-text-properties' can't do the same. Sorry to stir this pot again. I have the same question now for `put-text-property'. It seems to always return nil (true? - the doc string says nothing about its return value). What about giving some meaning to the value returned by `put-text-property'? What about using a return value like `propertize' uses - that is, return the OBJECT? As Richard mentioned for `set-text-properties', this would be a new feature, not a bug fix, so it would be for after the release.