unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles.bader@necel.com>
Cc: Richard Stallman <rms@gnu.org>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: text.texi - `buffer-substring'
Date: Fri, 23 Jun 2006 15:47:26 +0900	[thread overview]
Message-ID: <buok678wept.fsf@dhapc248.dev.necel.com> (raw)
In-Reply-To: <449B8E6A.5090007@online.de> (Andreas Roehler's message of "Fri, 23 Jun 2006 08:47:06 +0200")

Andreas Roehler <andreas.roehler@online.de> 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	other threads:[~2006-06-23  6:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-23  6:47 text.texi - `buffer-substring' Andreas Roehler
2006-06-23  6:47 ` Miles Bader [this message]
2006-06-23  7:18   ` Andreas Roehler
2006-06-23  7:50 ` Eli Zaretskii
2006-06-24  8:31 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=buok678wept.fsf@dhapc248.dev.necel.com \
    --to=miles.bader@necel.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).