From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: elispQ: How can I extract text from #("text" ... ) Date: Fri, 4 Apr 2008 08:57:22 -0700 Message-ID: <006801c8966c$9276e940$0200a8c0@us.oracle.com> References: <1d8f705b-b39a-44cd-bcfc-cb39d13e5087@a22g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1207324771 26848 80.91.229.12 (4 Apr 2008 15:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Apr 2008 15:59:31 +0000 (UTC) To: "'Mirko'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 04 18:00:03 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 1JhoKT-0006XI-JI for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 17:59:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhoJr-00013o-0F for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Apr 2008 11:59:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JhoJa-00013h-0b for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:58:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JhoJX-00010e-Dj for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:58:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JhoJX-00010Z-Af for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:58:51 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JhoJX-0003K0-0J for help-gnu-emacs@gnu.org; Fri, 04 Apr 2008 11:58:51 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m34FwhVR013558; Fri, 4 Apr 2008 09:58:43 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m32G43H5003303; Fri, 4 Apr 2008 09:58:42 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3638526591207324642; Fri, 04 Apr 2008 08:57:22 -0700 Original-Received: from dradamslap1 (/141.144.82.71) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 04 Apr 2008 08:57:21 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AciWam2gSZme5/QrTw2g2KwwRCTvoAAAEhOw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:53052 Archived-At: > > 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. Then I guess your options are to either (1) prevent the string from having a text property to begin with or (2) remove the text property. For #1, you need to find where that happens. #2 is straightforward: (substring-no-properties string-w-text-props) Depending on what you are doing, you might alternatively use a print function to insert text (without faces) in a buffer.: (with-output-to-temp-buffer "foo" (princ some-text)) And if you are getting the text from a buffer in the first place, you can use `buffer-substring-no-properties' instead of `buffer-substring'. See also `insert-buffer-substring-no-properties'. HTH