[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: overlay property `after-string'
From: |
Miles Bader |
Subject: |
Re: overlay property `after-string' |
Date: |
11 Apr 2003 14:02:23 +0900 |
Kenichi Handa <address@hidden> writes:
> I'm not sure that the current behaviour is a bug.
...
> In this case, it seems that the current behaviour is correct
> (i.e. the cursor is shown after "hello").
It's dependent on the insertion-type of the overlay; basically, the
cursor should be displayed relative to the overlay text wherever text
will be inserted relative to the overlay text.
For instance, try this modified version of your example:
(let (overlay)
(insert "abc")
(setq overlay (make-overlay (- (point) 3) (point) nil nil t))
(overlay-put overlay 'after-string "[hello]"))
Now type -- whoa, wierd!
-Miles
--
"1971 pickup truck; will trade for guns"
- Potential problem of minibuffer-message, Kenichi Handa, 2003/04/09
- Re: Potential problem of minibuffer-message, Stefan Monnier, 2003/04/10
- Re: Potential problem of minibuffer-message, Kenichi Handa, 2003/04/10
- Re: Potential problem of minibuffer-message, Miles Bader, 2003/04/10
- Re: Potential problem of minibuffer-message, Kenichi Handa, 2003/04/11
- Re: Potential problem of minibuffer-message, Miles Bader, 2003/04/11
- overlay property `after-string', Kenichi Handa, 2003/04/11
- Re: overlay property `after-string',
Miles Bader <=
- Re: overlay property `after-string', Kenichi Handa, 2003/04/11
- Re: Potential problem of minibuffer-message, Richard Stallman, 2003/04/13
- Re: Potential problem of minibuffer-message, Richard Stallman, 2003/04/10