Re: [patch]: bug 2744

2006-10-09 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Jean-Marc, can I commit this patch (it's reattached for Juergen> information)? The remaining issue is not a regression (it's a Juergen> drawback of changeRefsIfUnique from the beginning), so this Juergen> could be fixed l

Re: [patch]: bug 2744

2006-10-08 Thread Juergen Spitzmueller
Juergen Spitzmueller wrote: > Attached another version. I have noted a final drawback now, though: The > refs are not changed in the master/child documents. It would be easy to go > to the master by adding something like in fillWithBibKeys: > > /// if this is a child document and the parent

Re: [patch]: bug 2744

2006-10-02 Thread Andre Poenitz
On Fri, Sep 29, 2006 at 10:26:52AM +0200, Jean-Marc Lasgouttes wrote: > > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> On Thu, Sep 28, 2006 at 07:23:16AM +0200, Jean-Marc Lasgouttes > Andre> wrote: > >> > "Andre" == Andre Poenitz > >> <[EMAIL PROTECTED]> writes: > >> >

Re: [patch]: bug 2744

2006-09-29 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Sep 28, 2006 at 07:23:16AM +0200, Jean-Marc Lasgouttes Andre> wrote: >> > "Andre" == Andre Poenitz >> <[EMAIL PROTECTED]> writes: >> Andre> Why not have a virtual function in the insets filling a list Andre> and iterati

Re: [patch]: bug 2744

2006-09-28 Thread Andre Poenitz
On Thu, Sep 28, 2006 at 07:23:16AM +0200, Jean-Marc Lasgouttes wrote: > > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> Why not have a virtual function in the insets filling a list > Andre> and iterating over all insets in the buffer calling this > Andre> function? > > Filli

Re: [patch]: bug 2744

2006-09-27 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Juergen> I thought it is better to not go the complicated way if the > Juergen> inset contains only one item (which should be the common > Juergen> case). That's my real life thinking perhaps. I can delete the > Juergen> first statement if you wish. In theory, it shoul

Re: [patch]: bug 2744

2006-09-27 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Why not have a virtual function in the insets filling a list Andre> and iterating over all insets in the buffer calling this Andre> function? Filling a list of what? Something like InsetBse::fillSomeList? JMarc

Re: [patch]: bug 2744

2006-09-27 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Wed, Sep 27, 2006 at 02:16:01PM +0200, Juergen Spitzmueller Andre> wrote: >> It would be easier if nextInset() would not return InsetBase, but >> the real inset. Any idea to simplify it further? Andre> Huh? Andre> InsetBase _is

Re: [patch]: bug 2744

2006-09-27 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: >> I would have thought that the 'else' part is enough. Is it >> necessary to handle the case where there is no ','? Juergen> I thought it is better to not go the complicated way if the Juergen> inset contains only one item (whic

Re: [patch]: bug 2744

2006-09-27 Thread Andre Poenitz
On Wed, Sep 27, 2006 at 03:03:44PM +0200, Jean-Marc Lasgouttes wrote: > > "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > > Juergen> Attached is what I have so far. Please keep on commenting. > > Very good. Let's start from there, then. > > --- src/insets/insetcommand.h

Re: [patch]: bug 2744

2006-09-27 Thread Andre Poenitz
On Wed, Sep 27, 2006 at 12:16:33PM +0200, Jean-Marc Lasgouttes wrote: > > "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > > Juergen> "Changing the citation key does not update references to it" > Juergen> http://bugzilla.lyx.org/show_bug.cgi?id=2744 > > Juergen> The attached p

Re: [patch]: bug 2744

2006-09-27 Thread Andre Poenitz
On Wed, Sep 27, 2006 at 02:16:01PM +0200, Juergen Spitzmueller wrote: > It would be easier if nextInset() would not return InsetBase, but the real > inset. Any idea to simplify it further? Huh? InsetBase _is_ an inset. Andre'

Re: [patch]: bug 2744

2006-09-27 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Very good. Let's start from there, then. > > --- src/insets/insetcommand.h (Revision 15150) > +++ src/insets/insetcommand.h (Arbeitskopie) > @@ -72,6 +72,8 @@ >p_.setContents(c); >} > /// > + void replaceC

Re: [patch]: bug 2744

2006-09-27 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> Attached is what I have so far. Please keep on commenting. Very good. Let's start from there, then. --- src/insets/insetcommand.h (Revision 15150) +++ src/insets/insetcommand.h (Arbeitskopie) @@ -72,6 +72,8 @@

Re: [patch]: bug 2744

2006-09-27 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote: > Some comments: > > -void Buffer::changeRefsIfUnique(string const & from, string const & to) > +void Buffer::changeRefsIfUnique(string const & from, string const & to, > InsetBase::Code code) > > I do not like passing an inset code if it is not really generic (the >

Re: [patch]: bug 2744

2006-09-27 Thread Juergen Spitzmueller
Georg Baum wrote: > Does using of changeRefsIfUnique mean that it does not have the copy/paste > problems I described in the bug report? Yes, in the sense that it only changes refs and citations when the given label/bibitem is unique (so not if it has been duplicated by pasting). However, my pat

Re: [patch]: bug 2744

2006-09-27 Thread Georg Baum
Juergen Spitzmueller wrote: > "Changing the citation key does not update references to it" > http://bugzilla.lyx.org/show_bug.cgi?id=2744 > > The attached patch against 1.4svn fixes the bug by extending > changeRefsIfUnique. It works very nicely. OK for trunk and branch? (I have > another fix for

Re: [patch]: bug 2744

2006-09-27 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes: Juergen> "Changing the citation key does not update references to it" Juergen> http://bugzilla.lyx.org/show_bug.cgi?id=2744 Juergen> The attached patch against 1.4svn fixes the bug by extending Juergen> changeRefsIfUnique. It wor

[patch]: bug 2744

2006-09-26 Thread Juergen Spitzmueller
"Changing the citation key does not update references to it" http://bugzilla.lyx.org/show_bug.cgi?id=2744 The attached patch against 1.4svn fixes the bug by extending changeRefsIfUnique. It works very nicely. OK for trunk and branch? (I have another fix for bug 1684 in the pipe). Jürgen Index: