From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Overlay before-string property Date: Sat, 30 Sep 2006 20:57:31 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159675096 2125 80.91.229.2 (1 Oct 2006 03:58:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Oct 2006 03:58:16 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 01 05:58:14 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GTsSo-0004Bo-Gg for ged-emacs-devel@m.gmane.org; Sun, 01 Oct 2006 05:58:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTsSo-0007PH-5P for ged-emacs-devel@m.gmane.org; Sat, 30 Sep 2006 23:58:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTsSe-0007P6-Bv for emacs-devel@gnu.org; Sat, 30 Sep 2006 23:57:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTsSb-0007Oo-Md for emacs-devel@gnu.org; Sat, 30 Sep 2006 23:57:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTsSb-0007Ol-Ib for emacs-devel@gnu.org; Sat, 30 Sep 2006 23:57:49 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GTsYH-0005Bp-3j for emacs-devel@gnu.org; Sun, 01 Oct 2006 00:03:41 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id k913vkQn010665; Sat, 30 Sep 2006 21:57:46 -0600 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-81-49.vpn.oracle.com [141.144.81.49]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with SMTP id k913vjXe027852; Sat, 30 Sep 2006 21:57:45 -0600 Original-To: "Stefan Monnier" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-reply-to: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60347 Archived-At: > Unfortunately, the depth-indicator overlay picks up the face > used for the first character of the prompt string. I don't > want that - I want it to have its own face (e.g. the default). > So, I tried adding this at the end of the above code: > (overlay-put minibuf-depth-overlay 'face 'default) Put the face property on the before-string string. OK, that makes sense (and it works). Thanks. However, I'd like to be able to just use the existing code as is, without redefining it. That is, I'd prefer to do something simple after loading the file minibuf-depth.el, rather than rewriting part of it. Can you explain what is going on here, so I can understand it? Is this a quality of the `before-string' property, in general, or does it result from something else? And should Miles' code (presumably to be added to Emacs after the release) not result in this stickiness, or is it intended (does it have some benefit)?