[Top][All Lists]

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

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

From: Kim F. Storm
Subject: Re: buffer-substring vs. buffer-substring-no-properties
Date: 15 Nov 2001 00:59:39 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

"Eli Zaretskii" <address@hidden> 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, how do I
> > defontify a string?
> It's in NEWS: either use `copy-sequence' or `set-text-properties'.

Maybe we could add a new variable `print-properties' (default t)
while will control whether print, prin1, format, and friends
will include properties in strings or not.

That will be transparent for existing code (which is already working
on emacs-21), while it makes it straight-forward to modify old
code to get rid of unwanted properties by binding it to nil locally.

Kim F. Storm  http://www.cua.dk

reply via email to

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