emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text.texi - `buffer-substring'


From: Miles Bader
Subject: Re: text.texi - `buffer-substring'
Date: Fri, 23 Jun 2006 15:47:26 +0900

Andreas Roehler <address@hidden> writes:
> (buffer-substring 1 10)#("This is t" 0 1 (fontified t) 1 9 (fontified t))
>
> ie text-properties are copied as a kind of comment
> behind, not solely `along' as the info says. (Reading
> the info I would understand, that the chars copied into
> the returned string are propertized as the original
> one, as it seems the case altogether.)

No, you are still confusing the _printed representation_ of the return
value of buffer-substring with the actual return value.

Try this:

  (type-of (buffer-substring 1 10))

It returns `string', showing that the return value of buffer-substring
is really a string.

-Miles
-- 
`...the Soviet Union was sliding in to an economic collapse so comprehensive
 that in the end its factories produced not goods but bads: finished products
 less valuable than the raw materials they were made from.'  [The Economist]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]