From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: before-string property has no effect if display property is empty string Date: Sun, 23 Sep 2007 05:07:41 -0400 Message-ID: References: <86k5qnfxgn.fsf@macs.hw.ac.uk> <867immbpvd.fsf@macs.hw.ac.uk> <86tzpp9r51.fsf@macs.hw.ac.uk> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1190538612 1527 80.91.229.12 (23 Sep 2007 09:10:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2007 09:10:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Joe Wells Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 23 11:10:07 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZNTX-0007ih-69 for ged-emacs-devel@m.gmane.org; Sun, 23 Sep 2007 11:10:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZNTU-0001Mh-I0 for ged-emacs-devel@m.gmane.org; Sun, 23 Sep 2007 05:10:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZNS2-0000p7-JL for emacs-devel@gnu.org; Sun, 23 Sep 2007 05:08:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZNRz-0000nf-IT for emacs-devel@gnu.org; Sun, 23 Sep 2007 05:08:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZNRz-0000nM-5s for emacs-devel@gnu.org; Sun, 23 Sep 2007 05:08:27 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZNRx-0006VN-6R for emacs-devel@gnu.org; Sun, 23 Sep 2007 05:08:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IZNRF-0002AR-06; Sun, 23 Sep 2007 05:07:41 -0400 In-reply-to: <86tzpp9r51.fsf@macs.hw.ac.uk> (message from Joe Wells on Thu, 20 Sep 2007 18:35:22 +0100) X-Detected-Kernel: Error: This connection is not (no longer?) in the cache. 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:79558 Archived-At: I don't believe in "documenting bugs". Bugs should be fixed, not treated as permanent. Would someone please debug this? The documentation leads me to believe that the before-string and display properties of an overlay should be orthogonal. However, the before-string is not displayed if the display property is the empty string. Reproduce by evaluating this code: (let ((buf (get-buffer-create "foo"))) (with-current-buffer buf (display-buffer buf) (erase-buffer) (dolist (o (overlays-in (point-min) (point-max))) (delete-overlay o)) (insert "ABC") (let ((o (make-overlay 2 3)) (s (make-string 3 ?X))) (overlay-put o 'display "") (overlay-put o 'before-string s)))) You will see the foo window pop up and in the window you will see AC. I expected that instead AXXXC would be shown. > Does the same happen for the after-string? It works fine with after-string.