all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: indentation via text or overlay property?
Date: Mon, 09 Jun 2003 15:56:34 -0600	[thread overview]
Message-ID: <3EE50292.6000100@yahoo.com> (raw)
In-Reply-To: 5l3cinf1i5.fsf@rum.cs.yale.edu

Stefan Monnier wrote:

>>(let ((lbp (line-beginning-position)))
>>   (overlay-put (make-overlay lbp lbp)
>>	       'display '(space :align-to 4)))
>>
> 
> Does it work with text-properties ?  How about with a non-empty overlay ?
> It's a part of the code that hasn't seen much use yet, so there might
> be bugs.


Yes, it works with non-empty overlays, and with a text property assigned to the

first character on the line.  But the empty overlay case seems to be a bug.


>>(let ((lbp (line-beginning-position)))
>>   (overlay-put (make-overlay lbp lbp)
>>	       'string-before (make-string 4 ? )))
>>
> 
> The `string-before' should be `before-string' and it should work
> because it's been around (and used) for a long time.

Doh!  I think that's the best solution for my problem.

Thanks for your help,
-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

  reply	other threads:[~2003-06-09 21:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-04 19:13 indentation via text or overlay property? Kevin Rodgers
2003-06-04 21:16 ` Stefan Monnier
2003-06-06 16:23   ` Kevin Rodgers
2003-06-06 16:59     ` Stefan Monnier
2003-06-06 18:09       ` Kevin Rodgers
2003-06-06 19:29         ` Stefan Monnier
2003-06-09 21:56           ` Kevin Rodgers [this message]
2003-06-09 22:57             ` Stefan Monnier

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=3EE50292.6000100@yahoo.com \
    --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.
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.