From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Florian von Savigny Newsgroups: gmane.emacs.help Subject: setting text properties for strings (or string variables)? Date: 04 Jun 2003 23:17:33 +0200 Organization: Linux Private Site Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054758839 28643 80.91.224.249 (4 Jun 2003 20:33:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2003 20:33:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 04 22:33:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19NexJ-0007Rh-00 for ; Wed, 04 Jun 2003 22:33:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19NevU-0002Ug-8I for gnu-help-gnu-emacs@m.gmane.org; Wed, 04 Jun 2003 16:32:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: pd9506f5a.dip0.t-ipconnect.de Original-X-Trace: online.de 1054758474 24970 217.80.111.90 (4 Jun 2003 20:27:54 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Wed, 4 Jun 2003 20:27:54 +0000 (UTC) X-Newsreader: Gnus v5.7/Emacs 20.6 Original-Xref: shelby.stanford.edu gnu.emacs.help:114136 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10630 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10630 The Elisp manual says: 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. 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.