all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System)
To: Chong Yidong <cyd@stupidchicken.com>
Subject: bug#802: marked as done (before-string property has no effect if display property is empty)
Date: Sat, 27 Jun 2009 04:30:04 +0000	[thread overview]
Message-ID: <handler.802.D802.124607672212667.ackdone@emacsbugs.donarmstrong.com> (raw)
In-Reply-To: 9nfxoqfbn2.fsf@fencepost.gnu.org

[-- Attachment #1: Type: text/plain, Size: 919 bytes --]


Your message dated Sat, 27 Jun 2009 00:25:08 -0400
with message-id <87d48qb8wr.fsf@stupidchicken.com>
and subject line Re: before-string property has no effect if display property is empty
has caused the Emacs bug report #802,
regarding before-string property has no effect if display property is empty
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
802: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=802
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 2379 bytes --]

From: Glenn Morris <rgm@gnu.org>
To: quiet <quiet@emacsbugs.donarmstrong.com>
Subject: before-string property has no effect if display property is empty
Date: Wed, 27 Aug 2008 16:25:53 -0400
Message-ID: <9nfxoqfbn2.fsf@fencepost.gnu.org>

Package: emacs
Version: 22.1
Severity: minor

(Filing a report for an old item from FOR-RELEASE.)

http://lists.gnu.org/archive/html/bug-gnu-emacs/2007-09/msg00094.html
http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg01816.html

Summary:
    
    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.



[-- Attachment #3: Type: message/rfc822, Size: 2261 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: 802-done@emacsbugs.donarmstrong.com
Subject: Re: before-string property has no effect if display property is empty
Date: Sat, 27 Jun 2009 00:25:08 -0400
Message-ID: <87d48qb8wr.fsf@stupidchicken.com>

> 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.

>   (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.

This bug is already fixed in current CVS (and in the Emacs 23.1 branch).

           reply	other threads:[~2009-06-27  4:30 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <9nfxoqfbn2.fsf@fencepost.gnu.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=handler.802.D802.124607672212667.ackdone@emacsbugs.donarmstrong.com \
    --to=owner@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.