From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mirko Newsgroups: gmane.emacs.help Subject: Re: elispQ: How can I extract text from #("text" ... ) Date: Fri, 4 Apr 2008 08:24:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <1d8f705b-b39a-44cd-bcfc-cb39d13e5087@a22g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207323741 22931 80.91.229.12 (4 Apr 2008 15:42:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 15:42:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 04 17:42:44 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jho37-0007D1-KA for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 17:41:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jho2V-0002on-0w for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 11:41:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t54g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 208.218.238.20 Original-X-Trace: posting.google.com 1207322677 18559 127.0.0.1 (4 Apr 2008 15:24:37 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 4 Apr 2008 15:24:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t54g2000hsg.googlegroups.com; posting-host=208.218.238.20; posting-account=yS7ZzQoAAACbDncxMo9UeCyhsLtcDWPM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:157680 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53049 Archived-At: On Apr 4, 10:11 am, "Drew Adams" wrote: > > > > 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. It does work, you are right. It is that all the extra stuff is really not necessary in my application. And it obscures debugging. Thanks