From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.devel Subject: Re: About string header Date: Thu, 28 Feb 2013 22:02:27 +0800 Organization: The Church of Emacs Message-ID: <20130228220227.2ee881cfecf86130315785cb@gmail.com> References: <20130228164942.67904f953de674f38ee25d02@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362060175 31589 80.91.229.3 (28 Feb 2013 14:02:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2013 14:02:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 15:03:16 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UB44p-0007QY-LO for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2013 15:03:15 +0100 Original-Received: from localhost ([::1]:55237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UB44U-0000Yk-JA for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2013 09:02:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UB44Q-0000W0-Nn for emacs-devel@gnu.org; Thu, 28 Feb 2013 09:02:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UB44L-00050C-DZ for emacs-devel@gnu.org; Thu, 28 Feb 2013 09:02:50 -0500 Original-Received: from mail-pa0-f52.google.com ([209.85.220.52]:54274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UB44L-0004zp-4d for emacs-devel@gnu.org; Thu, 28 Feb 2013 09:02:45 -0500 Original-Received: by mail-pa0-f52.google.com with SMTP id fb1so1156928pad.11 for ; Thu, 28 Feb 2013 06:02:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=F5T49GDVMjQW3DaPKbChRYWxRdfmfBDX7oQyVh6+OqI=; b=ttACxMB6wcZu3p1YHZN/Y9zhsIFl+LQreOKOFFFbYeRXM05FCaxjS1caTQ33L1CfJd s6EhEQZNWbR3oe1hqBzcNemwlvrpN0G5LZdMPkC8ZN7mj1sOVgVPjiMDVjZgx/dr5BYa O5gbr42fmfECpy3lcJjS7QNzSg5Nm3sS3I75erBeHO9BKf5trILC2oXIS5yoj90WGU4u Db1ChVqG/7TLqMuIuJgfMHLZy5LgZw/U7hQdBmSQPBPUqc8SWQu/uaViGtXGnkJhVlUf WgIKb0GaRMiZccAybIu37kOZsU6QulzeA4V4kkBvX9Q2CpZKxyE2cd9o5XyNf/Mmv2+e 0RfA== X-Received: by 10.66.3.205 with SMTP id e13mr13189537pae.144.1362060164038; Thu, 28 Feb 2013 06:02:44 -0800 (PST) Original-Received: from Emacs ([123.114.130.98]) by mx.google.com with ESMTPS id i6sm9341186paw.19.2013.02.28.06.02.36 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Feb 2013 06:02:43 -0800 (PST) In-Reply-To: X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.52 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:157453 Archived-At: On Thu, 28 Feb 2013 08:47:54 -0500 Stefan Monnier wrote: > > What does the "string header" mean here? > Every string is made of 2 parts: > The first part is a "Lisp_String" struct of fixed size which holds: > - the size of the string (in bytes and in chars). > - a pointer to the string's text-properties (stored in an "intervals tree"). > - a pointer to the second part. > The second part are the actual bytes of the string, which are stored > elsewhere (and can be relocated so as to compact the memory). > The "string header" is the first part. Thanks for your explanation. Can this be in the elisp manual? > Stefan -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao