emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

overlay property `after-string'


From: Kenichi Handa
Subject: overlay property `after-string'
Date: Fri, 11 Apr 2003 13:53:07 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

I changed Subject:

In article <address@hidden>, Miles Bader <address@hidden> writes:
> Kenichi Handa <address@hidden> writes:
>>  > How about using an overlay with an `after-string' property, located at
>>  > the end of the minibuffer, for the minibuffer-message message itself?
>>  > Then there's no modification/insertion at all...
>>  
>>  Unfortunately, the cursor is shown after that `after-string'
>>  in that case.

> Oh yeah, that address@hidden& problem -- I ran in the same thing when I was 
> trying
> to do my `error messages don't obscure the users input' patch a long time
> ago.

> That behavior really should simply be fixed, it's stupid
> (but unfortunately, not entirely trivial to fix either).

I'm not sure that the current behaviour is a bug.

(let (overlay)
  (insert "abc")
  (setq overlay (make-overlay (- (point) 3) (point)))
  (overlay-put overlay 'after-string "hello")
  (sit-for 2)
  (delete-overlay overlay))

In this case, it seems that the current behaviour is correct
(i.e. the cursor is shown after "hello").

---
Ken'ichi HANDA
address@hidden





reply via email to

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