From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.devel Subject: Re: before-string property has no effect if display property is empty string Date: Wed, 19 Sep 2007 17:07:34 +0100 Message-ID: <867immbpvd.fsf@macs.hw.ac.uk> References: <86k5qnfxgn.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1190218335 17436 80.91.229.12 (19 Sep 2007 16:12:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2007 16:12:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 19 18:12:06 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 1IY29S-0007p6-MY for ged-emacs-devel@m.gmane.org; Wed, 19 Sep 2007 18:11:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IY29R-0008VN-4Y for ged-emacs-devel@m.gmane.org; Wed, 19 Sep 2007 12:11:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IY25X-0004Ms-6o for emacs-devel@gnu.org; Wed, 19 Sep 2007 12:07:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IY25V-0004LF-I8 for emacs-devel@gnu.org; Wed, 19 Sep 2007 12:07:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IY25V-0004L6-AR for emacs-devel@gnu.org; Wed, 19 Sep 2007 12:07:41 -0400 Original-Received: from izanami.macs.hw.ac.uk ([137.195.13.6]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IY25Q-0001FA-8V; Wed, 19 Sep 2007 12:07:36 -0400 Original-Received: from selene.macs.hw.ac.uk ([137.195.27.40]:47174 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1IY25P-0005KD-3C; Wed, 19 Sep 2007 17:07:35 +0100 Original-Received: (nullmailer pid 31361 invoked by uid 1001); Wed, 19 Sep 2007 16:07:34 -0000 In-Reply-To: (Richard Stallman's message of "Wed\, 19 Sep 2007 11\:48\:47 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:79327 Archived-At: Richard Stallman writes: > 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. > > I think the thing to do is document this. This is not clear. For example, linum.el makes empty overlays with before-string properties and no display property at all. And this works. So why shouldn't it work when there is a display property that is the empty string? > Does the same happen for the after-string? It works fine with after-string. The following expression displays =E2=80=9CAXXXC=E2=80=9D (correctly): (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 'after-string s)))) Given that it works with after-string, this is evidence for interpreting the behavior with before-string as a bug. --=20 Joe