From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: indentation via text or overlay property?
Date: Fri, 06 Jun 2003 12:09:22 -0600 [thread overview]
Message-ID: <3EE0D8D2.3040007@yahoo.com> (raw)
In-Reply-To: 5l7k7zf8g0.fsf@rum.cs.yale.edu
Stefan Monnier wrote:
>>Cool! But since those spaces are displayed instead of the original text
>>(not in addition to it), I don't see how to use that to
>>implement indentation.
>
> You might want to put that property on an overlay (of size 0), then.
Good idea, especially because I want to avoid modifying the buffer. But I'm
having problems getting overlays of size 0 to work. Trying things out manually
with M-:, I've only gotten the desired effect once. I'm trying things like:
(let ((lbp (line-beginning-position)))
(overlay-put (make-overlay lbp lbp)
'display '(space :align-to 4)))
(let ((lbp (line-beginning-position)))
(overlay-put (make-overlay lbp lbp)
'string-before (make-string 4 ? )))
>>Thanks for the pointers. Is the correct way to test for this feature:
>> (>= emacs-major-version 21)
>
> I think (featurep 'text-properties 'display) is better.
| Debugger entered--Lisp error: (wrong-number-of-arguments #<subr featurep> 2)
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
next prev parent reply other threads:[~2003-06-06 18:09 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 [this message]
2003-06-06 19:29 ` Stefan Monnier
2003-06-09 21:56 ` Kevin Rodgers
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=3EE0D8D2.3040007@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.