From: Florian von Savigny <florian265@uboot.com>
Subject: setting text properties for strings (or string variables)?
Date: 04 Jun 2003 23:17:33 +0200 [thread overview]
Message-ID: <m34r35wniq.fsf@russel.teuto37> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 962 bytes --]
The Elisp manual says:
<quote>
Like a buffer, a string can contain text properties for the
characters in it, as well as the characters themselves. All the Lisp
primitives that copy text from strings to buffers or other strings
also copy the properties of the characters being copied.
</quote>
That kindles me to ask if there is no function to set the text
properties for a (sub)string. The available functions which set text
properties seem to work only on buffers.
I am asking because I want to insert a string into a buffer and
provide it with '(face underline) on the fly. It seems more cumbersome
to calculate the buffer positions in order to use (set-text-property
beg end '(face underline)).
--
Florian v. Savigny
If you are going to reply in private, please be patient, as I only
check for mail something like once a week. - Si vous allez répondre
personellement, patientez s.v.p., car je ne lis les courriels
qu'environ une fois par semaine.
next reply other threads:[~2003-06-04 21:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-04 21:17 Florian von Savigny [this message]
2003-06-04 20:35 ` setting text properties for strings (or string variables)? Jesper Harder
2003-06-04 22:52 ` Florian von Savigny
2003-06-04 21:05 ` Kevin Rodgers
2003-06-04 23:00 ` Florian von Savigny
2003-06-04 21:17 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m34r35wniq.fsf@russel.teuto37 \
--to=florian265@uboot.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).