unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: setnu.el / setnu+.el
Date: Tue, 27 Dec 2005 10:01:01 -0700	[thread overview]
Message-ID: <dors0g$cl4$1@sea.gmane.org> (raw)
In-Reply-To: <87bqz395kj.fsf-monnier+gnu.emacs.help@gnu.org>

Stefan Monnier wrote:
>>Instead of setting the overlay's before-string property to "...", I
>>tried setting its display property to ((margin left-margin) "...") plus
>>the left-margin-width variable to the length of "...".
> 
> 
> Yes, the use of the display property for such uses is somewhat odd: you have
> to use a (dummy) before-string (or after-string) property on an overlay and
> place the `display' property on that string.  The dummy string should have
> length >= 1.
> 
> Typically the code looks something like:
> 
>   (let ((ol (make-overlay start end))) ;; start can be equal to end if you want
>     (overlay-put ol 'before-string
>                  (propertize " " 'display
>                              <the intersting stuff>)))
> 
> See for instance the code of put-image.

Yes, the way put-image works is well-documented, in both its doc string
and the Emacs Lisp manual.  But the fact that the display property
doesn't work unless it's a text property of an overlay's before- or
after-string is not documented.

That the display property doesn't work as expected seems to me to be a
bug, and it's definitely a documentation bug that the way to get it to
work is only described in regards to the put-image function.

Thanks,
-- 
Kevin

  reply	other threads:[~2005-12-27 17:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.20010.1135147162.20277.help-gnu-emacs@gnu.org>
2005-12-21 17:49 ` setnu.el / setnu+.el Stefan Monnier
2005-12-22  7:24   ` Drew Adams
2005-12-22 16:24     ` Kevin Rodgers
     [not found]     ` <mailman.20176.1135268751.20277.help-gnu-emacs@gnu.org>
2005-12-22 17:57       ` Stefan Monnier
2005-12-22 18:42         ` Drew Adams
2005-12-23 21:48         ` Kevin Rodgers
2005-12-23 21:57           ` Drew Adams
     [not found]         ` <mailman.20286.1135374622.20277.help-gnu-emacs@gnu.org>
2005-12-26 16:44           ` Stefan Monnier
2005-12-27 17:01             ` Kevin Rodgers [this message]
     [not found]             ` <mailman.20559.1135702971.20277.help-gnu-emacs@gnu.org>
2005-12-29  3:56               ` Stefan Monnier
     [not found] <mailman.20287.1135375137.20277.help-gnu-emacs@gnu.org>
2005-12-26 16:47 ` Stefan Monnier
2005-12-21  4:54 Sean Sieger
2005-12-21  5:12 ` Drew Adams
2005-12-21  5:22   ` Sean Sieger
2005-12-21  6:38     ` Drew Adams
2005-12-21 15:21       ` Sean Sieger
2005-12-21 17:11       ` Kevin Rodgers
2005-12-22  7:24         ` Drew Adams
2005-12-23  5:07 ` Sean Sieger

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='dors0g$cl4$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).