From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: format padding and text properties Date: Wed, 22 Jun 2016 13:38:16 +0800 Message-ID: <871t3pye9j.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466573958 24344 80.91.229.3 (22 Jun 2016 05:39:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 05:39:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 22 07:39:10 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bFasX-0002AR-4T for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2016 07:39:09 +0200 Original-Received: from localhost ([::1]:55769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFasW-0007xr-Dg for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Jun 2016 01:39:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFas4-0007xe-9k for help-gnu-emacs@gnu.org; Wed, 22 Jun 2016 01:38:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFas0-0008Uy-5Q for help-gnu-emacs@gnu.org; Wed, 22 Jun 2016 01:38:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFarz-0008UW-UR for help-gnu-emacs@gnu.org; Wed, 22 Jun 2016 01:38:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bFaru-0001KP-9V for help-gnu-emacs@gnu.org; Wed, 22 Jun 2016 07:38:30 +0200 Original-Received: from 123.115.138.47 ([123.115.138.47]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2016 07:38:30 +0200 Original-Received: from eric by 123.115.138.47 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jun 2016 07:38:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.115.138.47 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:bJSUjcBV0nUHRMjKiRNTK2D5Fo0= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110545 Archived-At: I'm trying to pad out a string that has had a face applied to it, and it's not quite going as I'd hoped. In a nutshell: (setq ss "bubba") (put-text-property 0 (length ss) 'face 'my-face ss) (format "%10s" ss) --> #(" bubba" 0 5 (face my-face)) I'd like the face to stay with the actual string, not the spaces! Does text property stickiness have anything to do with this? Does anyone have any clever tips? Using Emacs git... Thanks! Eric