Re: [PATCH] CT 13

2006-05-29 Thread Andre Poenitz
On Wed, May 24, 2006 at 01:04:20PM +, Angus Leeming wrote: Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Michael isDeletedText has been changed into a method of class Michael Paragraph (where it belongs). This is also more OO-like. I think Lars prefers to have these kind of helper

Re: [PATCH] CT 13

2006-05-29 Thread Lars Gullik Bjønnes
Michael Gerz [EMAIL PROTECTED] writes: | Well, my attempt is to hide as much of the CT logic as possible behind | class Paragraph. Having a method rather than a helper function makes | things a bit more clearer to me. At the expense of higher coupling and less cohesion. -- Lgb

Re: [PATCH] CT 13

2006-05-29 Thread Andre Poenitz
On Wed, May 24, 2006 at 01:04:20PM +, Angus Leeming wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > Michael> isDeletedText has been changed into a method of class > > Michael> Paragraph (where it belongs). This is also more OO-like. > > > I think Lars prefers to have these kind

Re: [PATCH] CT 13

2006-05-29 Thread Lars Gullik Bjønnes
"Michael Gerz" <[EMAIL PROTECTED]> writes: | Well, my attempt is to hide as much of the CT logic as possible behind | class Paragraph. Having a method rather than a helper function makes | things a bit more clearer to me. At the expense of higher coupling and less cohesion. -- Lgb

[PATCH] CT 13

2006-05-24 Thread Michael Gerz
Hi, the attached patch adds trackChangesflags to various methods and includes some minor cleanups. The overall idea is that whenever you insert or erase text, you have to tell the corresponding method(s) whether you are in a change tracking buffer or not. Complete Log:add

Re: [PATCH] CT 13

2006-05-24 Thread Jean-Marc Lasgouttes
Michael == Michael Gerz [EMAIL PROTECTED] writes: Michael Hi, the attached patch adds trackChanges flags to various Michael methods and includes some minor cleanups. Michael The overall idea is that whenever you insert or erase text, Michael you have to tell the corresponding method(s) whether

Re: [PATCH] CT 13

2006-05-24 Thread Michael Gerz
Hi Jean-Marc, I do not see why you remove isDeletedText and isInsertedText. These are typically helper functions and do not need to be methods at all. IIRC, isInsertedText() is not used at all. isDeletedText has been changed into a method of class Paragraph (where it belongs). This is also

Re: [PATCH] CT 13

2006-05-24 Thread Jean-Marc Lasgouttes
Michael == Michael Gerz [EMAIL PROTECTED] writes: Michael Hi Jean-Marc, I do not see why you remove isDeletedText and isInsertedText. These are typically helper functions and do not need to be methods at all. Michael IIRC, isInsertedText() is not used at all. Do you know why? It is strange.

Re: [PATCH] CT 13

2006-05-24 Thread Angus Leeming
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: Michael isDeletedText has been changed into a method of class Michael Paragraph (where it belongs). This is also more OO-like. I think Lars prefers to have these kind of helper functions outside of classes. We tend to have too many methods now,

Re: [PATCH] CT 13

2006-05-24 Thread Michael Gerz
Michael Hi Jean-Marc, I do not see why you remove isDeletedText and isInsertedText. These are typically helper functions and do not need to be methods at all. Michael IIRC, isInsertedText() is not used at all. Do you know why? It is strange. I don't know. A lot of complicated things happen

[PATCH] CT 13

2006-05-24 Thread Michael Gerz
Hi,   the attached patch adds trackChanges flags to various methods and includes some minor cleanups.   The overall idea is that whenever you insert or erase text, you have to tell the corresponding method(s) whether you are in a change tracking buffer or not.   Complete Log:add

Re: [PATCH] CT 13

2006-05-24 Thread Jean-Marc Lasgouttes
> "Michael" == Michael Gerz <[EMAIL PROTECTED]> writes: Michael> Hi, the attached patch adds trackChanges flags to various Michael> methods and includes some minor cleanups. Michael> The overall idea is that whenever you insert or erase text, Michael> you have to tell the corresponding

Re: [PATCH] CT 13

2006-05-24 Thread Michael Gerz
Hi Jean-Marc, I do not see why you remove isDeletedText and isInsertedText. These are typically helper functions and do not need to be methods at all. IIRC, isInsertedText() is not used at all. isDeletedText has been changed into a method of class Paragraph (where it belongs). This is also

Re: [PATCH] CT 13

2006-05-24 Thread Jean-Marc Lasgouttes
> "Michael" == Michael Gerz <[EMAIL PROTECTED]> writes: Michael> Hi Jean-Marc, >> I do not see why you remove isDeletedText and isInsertedText. These >> are typically helper functions and do not need to be methods at >> all. Michael> IIRC, isInsertedText() is not used at all. Do you know

Re: [PATCH] CT 13

2006-05-24 Thread Angus Leeming
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Michael> isDeletedText has been changed into a method of class > Michael> Paragraph (where it belongs). This is also more OO-like. > I think Lars prefers to have these kind of helper functions outside of > classes. We tend to have too many

Re: [PATCH] CT 13

2006-05-24 Thread Michael Gerz
Michael> Hi Jean-Marc, I do not see why you remove isDeletedText and isInsertedText. These are typically helper functions and do not need to be methods at all. Michael> IIRC, isInsertedText() is not used at all. Do you know why? It is strange. I don't know. A lot of complicated things