From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mirko Newsgroups: gmane.emacs.help Subject: Re: Elisp: How to set multiple text properties. Date: Sat, 15 Jan 2011 11:45:10 -0800 (PST) Organization: http://groups.google.com Message-ID: References: Reply-To: gnu.emacs.help@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 1295181996 14966 80.91.229.12 (16 Jan 2011 12:46:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 16 Jan 2011 12:46:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 16 13:46:32 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 1PeS07-00070b-PG for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Jan 2011 13:46:32 +0100 Original-Received: from localhost ([127.0.0.1]:55333 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeS06-0005TC-QC for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Jan 2011 07:46:30 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 74.76.172.207 Original-X-Trace: posting.google.com 1295120711 27288 127.0.0.1 (15 Jan 2011 19:45:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 15 Jan 2011 19:45:11 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=74.76.172.207; posting-account=yS7ZzQoAAACbDncxMo9UeCyhsLtcDWPM User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:184301 X-Mailman-Approved-At: Sun, 16 Jan 2011 07:45:45 -0500 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:78477 Archived-At: On Saturday, January 15, 2011 1:53:52 PM UTC-5, Neil Baylis wrote: > 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 Thank you for the examples Mirko