bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: buffer-substring vs. buffer-substring-no-properties


From: Per Abrahamsen
Subject: Re: buffer-substring vs. buffer-substring-no-properties
Date: Wed, 14 Nov 2001 18:12:36 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu)

address@hidden (Kevin Layer) writes:

> Given that I have lots and lots of calls to buffer-substring that I
> don't want to change to buffer-substring-no-properties,

Why not?

> how do I defontify a string?

You mean remove all text properties?

(set-text-properties 0 (length string) nil string)

You can use 'remove-text-properties' to remove specific properties
(like those added by font lock), but if you are going to send the
string out of emacs you probably want them all gone.



reply via email to

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