From: Mirko <mvukovic@nycap.rr.com>
To: help-gnu-emacs@gnu.org
Subject: Re: elispQ: How can I extract text from #("text" ... )
Date: Fri, 4 Apr 2008 10:15:27 -0700 (PDT) [thread overview]
Message-ID: <9f668e22-39c7-4135-a95a-479c6ac93e71@y21g2000hsf.googlegroups.com> (raw)
In-Reply-To: mailman.9990.1207324736.18990.help-gnu-emacs@gnu.org
On Apr 4, 11:57 am, "Drew Adams" <drew.ad...@oracle.com> wrote:
> > > 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
Thanks for the pointers to those functions. I will communicate with
the xml.el maintainer to see if he sees anything problem in
implementing them. But I can always fall back to the (substring-no-
properties).
Out of curiosity, do you know where is the #( syntax described? I
could not find it in the manual.
Thanks again,
Mirko
next prev parent reply other threads:[~2008-04-04 17:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-04 2:04 elispQ: How can I extract text from #("text" ... ) Mirko
2008-04-04 4:14 ` Drew Adams
[not found] ` <mailman.9966.1207282652.18990.help-gnu-emacs@gnu.org>
2008-04-04 11:00 ` Mirko
2008-04-04 14:11 ` Drew Adams
[not found] ` <mailman.9985.1207318373.18990.help-gnu-emacs@gnu.org>
2008-04-04 15:24 ` Mirko
2008-04-04 15:57 ` Drew Adams
[not found] ` <mailman.9990.1207324736.18990.help-gnu-emacs@gnu.org>
2008-04-04 17:15 ` Mirko [this message]
2008-04-04 18:28 ` Drew Adams
2008-04-05 15:45 ` Eli Zaretskii
[not found] ` <mailman.10042.1207410333.18990.help-gnu-emacs@gnu.org>
2008-05-04 1:28 ` David Combs
2008-05-04 4:10 ` Eli Zaretskii
2008-05-05 14:17 ` Joel J. Adamson
[not found] ` <mailman.9998.1207333808.18990.help-gnu-emacs@gnu.org>
2008-04-05 1:16 ` Mirko
2008-04-05 3:30 ` Tim X
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9f668e22-39c7-4135-a95a-479c6ac93e71@y21g2000hsf.googlegroups.com \
--to=mvukovic@nycap.rr.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.