From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Overlay before-string property Date: Sun, 01 Oct 2006 08:12:49 +0200 Message-ID: <851wps5ztq.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159683215 16655 80.91.229.2 (1 Oct 2006 06:13:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Oct 2006 06:13:35 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 01 08:13:32 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 1GTuZq-0007ra-AF for ged-emacs-devel@m.gmane.org; Sun, 01 Oct 2006 08:13:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTuZp-0001Rj-GU for ged-emacs-devel@m.gmane.org; Sun, 01 Oct 2006 02:13:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTuZd-0001Qc-CQ for emacs-devel@gnu.org; Sun, 01 Oct 2006 02:13:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTuZc-0001Pu-Dn for emacs-devel@gnu.org; Sun, 01 Oct 2006 02:13:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTuZc-0001Pn-8U for emacs-devel@gnu.org; Sun, 01 Oct 2006 02:13:12 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GTufJ-0006H7-KJ for emacs-devel@gnu.org; Sun, 01 Oct 2006 02:19:05 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GTuZb-0004yT-F3; Sun, 01 Oct 2006 02:13:11 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 9614B1C39589; Sun, 1 Oct 2006 08:12:50 +0200 (CEST) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sat\, 30 Sep 2006 18\:20\:13 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:60348 Archived-At: "Drew Adams" writes: > I use this, from Miles Bader's minibuf-depth.el (or whatever it's called > now): > > ;; This function goes on minibuffer-setup-hook > (defun minibuf-depth-setup-minibuffer () > "Set up a minibuffer for `minibuffer-indicate-depth-mode'. > The prompt should already have been inserted." > (when (> (minibuffer-depth) 1) > (setq minibuf-depth-overlay > (make-overlay (point-min) (1+ (point-min)))) > (overlay-put minibuf-depth-overlay 'before-string > (format "%d) " (minibuffer-depth))) > (overlay-put minibuf-depth-overlay 'evaporate t))) > > Does this have something to do with text-property stickiness? I have > not knowingly changed any sticky properties, and the manual seems to > say that text is, by default, only rear sticky. The behavior seems > to be as if the prompt-string text were front-sticky and the overlay > were rear-sticky, IIUC. You could read the DOC string of make-overlay. It has optional arguments. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum