emacs-devel
[Top][All Lists]
Advanced

[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"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]