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

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

RE: elispQ: How can I extract text from #("text" ... )


From: Drew Adams
Subject: RE: elispQ: How can I extract text from #("text" ... )
Date: Fri, 4 Apr 2008 07:11:00 -0700

> > > values such as:
> > >  #("Typically only electric field is assigned" 0 41 (face 
> > >  font-lock-string-face fontified t)))
> >
> > > Now, these are variables of type string. How can I 
> > > extract just the text from it?
> >
> > You can use function `substring-no-properties' to give you 
> > a plain string that has no face or other properties.
> >
> > But you might not need to. What do you want to do with the 
> ? resulting text (string)?
>  
> I compare its contents to some text strings using string= or insert
> them into a buffer.  I am converting a freemind mindmap to a latex
> (beamer) file.

AFAIK, string= ignores text properties and should do what you want.





reply via email to

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