From xemacs-m  Thu Jan  9 03:12:32 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id DAA15973 for <xemacs-beta@xemacs.org>; Thu, 9 Jan 1997 03:12:24 -0600 (CST)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.4/8.8.4)
	  id KAA28932; Thu, 9 Jan 1997 10:12:02 +0100 (MET)
Sender: hniksic@public.srce.hr
To: xemacs-beta@xemacs.org
Subject: Re: scrollbars
References: <9701080035.AA12973@euler.alphatech.com> <kigafql5608.fsf@jagor.srce.hr> <x220bwlhpl.fsf@lemcbed.lem.uni-karlsruhe.de> <kigu3osmvl0.fsf@jagor.srce.hr> <x2sp4cxtob.fsf@lemcbed.lem.uni-karlsruhe.de>
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E
 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 09 Jan 1997 10:11:59 +0100
In-Reply-To: Jens Lautenbacher's message of 08 Jan 1997 13:01:08 +0100
Message-ID: <kigu3or6wm8.fsf@jagor.srce.hr>
Lines: 44
X-Mailer: Red Gnus v0.79/XEmacs 19.14

Jens Lautenbacher (jens@lemcbed.lem.uni-karlsruhe.de) wrote:
> 'atomic  makes an extent intangible. Together with the 'hidden
> attribute they provide for portions of text getting totally out of the
> way. (While only 'hidden doesn't provide for the cursor not being able
> to enter the hidden area which is very confusing at least)

It's (arguably) a bug, although it is fixable.

> Consider this:
> ----->buffer start<-----------------------------------------
> 123456789012345678901234567890123456789012345678901234567890
>          1         2         3         4         5         6 
> (progn
>   (put-text-property 20 40 'atomic t)
>   (put-text-property 10 50 'read-only nil))
> ------------------------------------------------------------
> At the beginning, we don't use read-only. move the cursor in the first
> line: everything works as expected: the cursor jumps from 20 to 40, on

Does it?  I have tried it, and cursor doesn't jump from 20 to 40 for
me.

> Conclusion: atomic is broken with respect to killing and undoing.
> One has to use also read-only to be on a (safer) side.
[...]
> Conclusion: 'atomic is broken with respect to multible lines, as it
> doesn't cope with the cursor moving up or down.
> 
> I hope I made myself clearer this time.

Yes, thanks!

> At the current state I think that 'atomic is usuable for the gnus
> example you stated because everything is bette than having the cursor
> lost in an invisible region of text.

Yes, it seems so.  Killing and undoing is not a problem since the
buffer should be read-only anyway.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Then...  his face does a complete change of expression.  It goes from
a "Vengeance is mine" expression, to a "What the fuck" blank look.

