From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: az Newsgroups: gmane.emacs.help Subject: question concerning overlay before-strings and property inheritance Date: Mon, 25 Apr 2011 20:34:54 +0000 (UTC) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303764020 7430 80.91.229.12 (25 Apr 2011 20:40:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2011 20:40:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 25 22:40:16 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QESZr-0000rx-7w for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Apr 2011 22:40:15 +0200 Original-Received: from localhost ([::1]:39335 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QESZq-0007BA-QC for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Apr 2011 16:40:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:38825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QESZl-0007Ap-P3 for help-gnu-emacs@gnu.org; Mon, 25 Apr 2011 16:40:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QESZl-0000IT-1X for help-gnu-emacs@gnu.org; Mon, 25 Apr 2011 16:40:09 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:48035) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QESZk-0000HE-SF for help-gnu-emacs@gnu.org; Mon, 25 Apr 2011 16:40:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QESZi-0000jP-4I for help-gnu-emacs@gnu.org; Mon, 25 Apr 2011 22:40:06 +0200 Original-Received: from pool-71-182-163-252.pitbpa.east.verizon.net ([71.182.163.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2011 22:40:06 +0200 Original-Received: from ujfubvur by pool-71-182-163-252.pitbpa.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2011 22:40:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 71.182.163.252 (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80841 Archived-At: Is there any way to arrange for an overlay before-string to inherit face properties from other overlays? Evaluation of the following form provides a test case of my problem: (save-excursion (goto-char 1) (insert ";; String\n") (let ((o (make-overlay 6 7)) (o2 (make-overlay 4 8))) (overlay-put o 'before-string "FOO") (overlay-put o2 'face 'highlight))) As you can see, the before-string "FOO" doesn't inherit any highlighting from the second overlay. Is it possible to set up the overlays up so that the before-string inherits the face property from the second overlay? (I know I can manually propertize the before-string with the relevant face, but I'd like, if possible, to arrange for the face inheritance to happen automatically.)