all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Overlays' `before-string' not displayed in left margin?
Date: Mon, 27 Jul 2009 22:38:43 +0100	[thread overview]
Message-ID: <4A6E1E63.9000201@harpegolden.net> (raw)
In-Reply-To: <e01d8a50907271332jf9b67cvf2512a4e80e626e4@mail.gmail.com>

Lennart Borgman wrote:
> I put this on an overlay's before-string property
> 
>   ((margin left-margin)
>    "1 php-mode")
> 
> but I see nothing in the left margin (with left-margin-width set to 20).
> 
> Is this a bug or do I misunderstand something? Doesn't it work for overlays?
> 
> 

try e.g.

(overlay-put ov 'before-string
	     (propertize " " 'display
			 '((margin left-margin) "1 php-mode")))


i.e. a margin display property on string that is the before-string 
you're putting on the overlay...








      reply	other threads:[~2009-07-27 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27 20:32 Overlays' `before-string' not displayed in left margin? Lennart Borgman
2009-07-27 21:38 ` David De La Harpe Golden [this message]

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=4A6E1E63.9000201@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.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.