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: why is `propertize' defined in C? Date: Fri, 21 Oct 2011 09:49:44 -0700 Message-ID: <844848AA0FEB4DAE9527DCFC4BE1A9E4@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 1319215811 19413 80.91.229.12 (21 Oct 2011 16:50:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 16:50:11 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 18:50:03 2011 Return-path: Envelope-to: ged-emacs-devel@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 1RHIIE-00068A-Gz for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 18:50:02 +0200 Original-Received: from localhost ([::1]:57652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHIID-0004sh-Ng for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 12:50:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHIIA-0004ra-9P for emacs-devel@gnu.org; Fri, 21 Oct 2011 12:49:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHII8-0004rU-79 for emacs-devel@gnu.org; Fri, 21 Oct 2011 12:49:57 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:33481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHII7-0004pG-O7 for emacs-devel@gnu.org; Fri, 21 Oct 2011 12:49:55 -0400 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p9LGnq6n002211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Oct 2011 16:49:54 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p9LGnpRT021239 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 21 Oct 2011 16:49:51 GMT Original-Received: from abhmt115.oracle.com (abhmt115.oracle.com [141.146.116.67]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p9LGnki0024745 for ; Fri, 21 Oct 2011 11:49:46 -0500 Original-Received: from dradamslap1 (/10.159.63.178) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 21 Oct 2011 09:49:45 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcyQEW9oaaMx32CbSzy+6zEFKeUIKA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4EA1A2B2.008F:SCFMA922111,ss=1,re=-4.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145401 Archived-At: Does the C definition of `propertize' do anything other than this? (defun propertize (string &rest properties) (let ((new (copy-sequence string)) (add-text-properties 0 (length new) properties new) new)) (Well, to get the exact same result as the C version, PROPERTIES would need to be reversed before adding.) What's the point of defining something like this in C?