[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'buffer-substring' returns rubbish
From: |
Juanma Barranquero |
Subject: |
Re: 'buffer-substring' returns rubbish |
Date: |
Thu, 18 Jan 2001 12:52:33 -0200 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 17 Jan 2001 17:42:26 +0200, eliz@is.elta.co.il (Eli Zaretskii)
wrote:
>Does it help to use buffer-substring-no-properties instead of
>buffer-substring?
<snip>
>I think this will happen for lines which have text properties
>associated with them. It's a feature, actually.
What is the recommended way to copy a string without properties? I've
tried:
(concat str)
(format "%s" str)
(copy-sequence str)
(substring str 0)
and even (in a moment of desperation)
(apply #'concat (split-string str ""))
without success.
/L/e/k/t/u
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBOmcCGv4C0a0jUw5YEQLiRgCfQ2oYJ0nAZq1Tdn3t5YfOTr74VOMAoMyk
zaCZG9D5ku2XW8C89oJxlMnF
=vKXq
-----END PGP SIGNATURE-----