From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Baylis Newsgroups: gmane.emacs.help Subject: Re: Elisp: How to set multiple text properties. Date: Sat, 15 Jan 2011 10:53:52 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <4b20c8e7-806b-427c-b814-72523c0232eb@s9g2000vby.googlegroups.com> <9c06c829-c35e-4af8-beec-726fa5f66e11@32g2000yqz.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1295120863 14606 80.91.229.12 (15 Jan 2011 19:47:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 15 Jan 2011 19:47:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 15 20:47:38 2011 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.69) (envelope-from ) id 1PeC63-00010w-TC for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Jan 2011 20:47:36 +0100 Original-Received: from localhost ([127.0.0.1]:35331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeBzC-0001q8-7W for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Jan 2011 14:40:30 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!y31g2000vbt.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 76.208.141.253 Original-X-Trace: posting.google.com 1295117632 24091 127.0.0.1 (15 Jan 2011 18:53:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 15 Jan 2011 18:53:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y31g2000vbt.googlegroups.com; posting-host=76.208.141.253; posting-account=dNm1mAoAAADEStfarqbdhwZIMTNBGDT8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.231 Safari/534.10, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:184300 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:78474 Archived-At: Thanks, Stefan. I seem to have it figured out now. For those interested, here are some calls that work (Emacs 23.2.1): (These calls set properties on the entire line containing point.) Set the text to italic only: (put-text-property (line-beginning-position) (line-end-position) 'face 'italic) Set the text to blue only: (put-text-property (line-beginning-position) (line-end-position) 'face '(:foreground "blue")) Set the text to blue and bold: (put-text-property (line-beginning-position) (line-end-position) 'face '((:foreground "blue") bold)) Set the text to blue and italic: (put-text-property (line-beginning-position) (line-end-position) 'face '((:foreground "blue") italic)) Set the text to bold, italic, and red: (put-text-property (line-beginning-position) (line-end-position) 'face '(bold italic (:foreground "red"))) Neil