all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to get rid of string properties
@ 2002-12-19  3:07 Ian Zimmerman
       [not found] ` <itz@speakeasy.org>
  2002-12-19  4:32 ` John Paul Wallington
  0 siblings, 2 replies; 3+ messages in thread
From: Ian Zimmerman @ 2002-12-19  3:07 UTC (permalink / raw)



Given a propertied string, how can I clear _all_ its properties?
There's a buffer-substring-no-properties, but I can't find anything
like substring-no-properties.  remove-text-properties requires that I
know the set of possible properties in advance, which I don't (or
rather, the set is infinite in my case).

-- 
Ian Zimmerman, Oakland, California, U.S.A. 
if (sizeof(signed) > sizeof(unsigned) + 4) { delete this; }
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to get rid of string properties
       [not found] ` <itz@speakeasy.org>
@ 2002-12-19  4:02   ` Peter S Galbraith
  0 siblings, 0 replies; 3+ messages in thread
From: Peter S Galbraith @ 2002-12-19  4:02 UTC (permalink / raw)
  Cc: help-gnu-emacs

Ian Zimmerman <itz@speakeasy.org> wrote:

> Given a propertied string, how can I clear _all_ its properties?
> There's a buffer-substring-no-properties, but I can't find anything
> like substring-no-properties.

You could use `string-match' followed by `match-string-no-properties' on
it.

Peter

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to get rid of string properties
  2002-12-19  3:07 how to get rid of string properties Ian Zimmerman
       [not found] ` <itz@speakeasy.org>
@ 2002-12-19  4:32 ` John Paul Wallington
  1 sibling, 0 replies; 3+ messages in thread
From: John Paul Wallington @ 2002-12-19  4:32 UTC (permalink / raw)


Ian Zimmerman wrote:

>  Given a propertied string, how can I clear _all_ its properties?

How about (set-text-properties 0 (length string) nil string) ?

-- 
John Paul Wallington

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-19  4:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19  3:07 how to get rid of string properties Ian Zimmerman
     [not found] ` <itz@speakeasy.org>
2002-12-19  4:02   ` Peter S Galbraith
2002-12-19  4:32 ` John Paul Wallington

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.