Re: Crash with Gtk-ERROR on Linux RedHat EL 5
Ulrich Hetmaniuk wrote: Qt 4 Frontend: Qt 4 version: 4.5.0 ... Do you know how can I fix this problem? i guess qt 4.5.0 makes it happen pavel
Re: Crash with Gtk-ERROR on Linux RedHat EL 5
Ulrich Hetmaniuk wrote: Dear all, Thank you for developing LyX. I have compiled successfully LyX 1.6.2 on RedHat EL 5. However, at execution, the code crashes when changing the focus on a window. Here is the error == bash-3.2$ src/lyx (unknown:11732): Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you connect a handler to this signal, it must return FALSE so the entry gets the event as well Gtk-ERROR **: file gtkentry.c: line 5287 (blink_cb): assertion failed: (GTK_WIDGET_HAS_FOCUS (entry)) aborting... Aborted == -bash-3.2$ src/lyx -version LyX 1.6.2 (2009-03-14) Built on Apr 20 2009, 17:27:32 Configuration Host type:x86_64-unknown-linux-gnu Special build flags: use-ispell C Compiler: gcc C Compiler LyX flags: C Compiler flags: -I/home/hetmaniu/src/fontconfig-2.6.0/include -O2 C++ Compiler: g++ (4.1.2) C++ Compiler LyX flags: C++ Compiler flags: -I/home/hetmaniu/src/fontconfig-2.6.0/include -O2 Linker flags: Linker user flags: -L/home/hetmaniu/src/fontconfig-2.6.0/lib -L/home/hetmaniu/src/qt-sdk/lib Qt 4 Frontend: Qt 4 version:4.5.0 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx == I am using qt-sdk for Linux/X11 64 bit. On my system, gtk is /usr/lib/gtk-2.0/2.10.0 Do you know how can I fix this problem? I think you are using a special qt-gtk skin or theme that causes the problem. Try running qtconfig to change the GUI style you are running. If that solve the problem, please report the bug to qtsoftware. Abdel.
Re: r29346 - lyx-devel/trunk/src/tex2lyx
Uwe Stöhr uwesto...@web.de writes: Jean-Marc Lasgouttes schrieb: Could you tell me whether you can import a document with only a few words but some accented? I want to check whether the problem is with the idocstream. It is more worse now. I checked out trunk, compiled it, and now LyX crashes immediately whenever I want to import a LaTeX file, even when the LaTeX file contains only a single ASCII word like Hello. This crash is just an oversight in the new multi-index support. Should be fixed now. OK Uwe (or anybody who sees the same problem under windows), could you try the following patch? I applied this patch to branch, there LyX doesn't crash but the problem persists. And could you try with the updated trunk (where the other patch should not be necessary)? JMarc
Re: Note: www.lyx.org/~user no longer accessible
Christian Ridderström schrieb: On Thu, 2 Apr 2009, Pavel Sanda wrote: Pavel Sanda wrote: Christian Ridderström wrote: Maybe you could add the images to a sub-tree of www-user? Then I can just update the checked out tree on the server? i would put all the things which were under ~user/.. into some structure say svn://www-user/trunk/misc/... is it possible to setup things that addressing www.lyx.org/misc/X goes into svn://www-user/trunk/misc/X ? i finally moved things there, i guess, you need svn update somewhere on the server. I've updated the checked out www-user tree on the server. You can see it here: http://www.lyx.org/misc/ But I don't understand this bit with svn://www-user/trunk/misc/X at all??? /Christian PS. I'm not sure about the images from Berlin, so I disabled 'rx' for others for that directory, so it's currently not world readable. Hi Christian, if the only thing you need is an OK from me... Here you are. You can publish them if you like. Stephan ---
Re: r29346 - lyx-devel/trunk/src/tex2lyx
Jean-Marc Lasgouttes lasgout...@lyx.org writes: And could you try with the updated trunk (where the other patch should not be necessary)? If trunk does not work (which is probably the case), please try the following debug patch. Note that it contains code that may cure your comment from an earlier thread: I debugged a bit and LyX finds syntax.default and can read it successfully, but stops somewhere with this meaningless message: Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: But 00C3 is a capital A with a tilde, that I don't have in the file. (Btw. Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error is just funny.) At least it may give us a more precise error message. The rest of the patch should tell us whether some parts of syntax.defaults are read correctly. JMarc svndiff Index: src/support/docstream.cpp === --- src/support/docstream.cpp (révision 29363) +++ src/support/docstream.cpp (copie de travail) @@ -129,10 +129,11 @@ protected: } #endif if (retval == base::error) { + int const save_errno = errno; fprintf(stderr, Error %d returned from iconv when converting from %s to %s: %s\n, -errno, ucs4_codeset, encoding_.c_str(), -strerror(errno)); +save_errno, ucs4_codeset, encoding_.c_str(), +strerror(save_errno)); fputs(Converted input:, stderr); for (intern_type const * i = from; i from_next; ++i) { unsigned int const c = *i; @@ -179,10 +180,11 @@ protected: reinterpret_castchar **(to_next), outbytesleft); if (retval == base::error) { + int const save_errno = errno; fprintf(stderr, Error %d returned from iconv when converting from %s to %s: %s\n, -errno, encoding_.c_str(), ucs4_codeset, -strerror(errno)); +save_errno, encoding_.c_str(), ucs4_codeset, +strerror(save_errno)); fputs(Converted input:, stderr); for (extern_type const * i = from; i from_next; ++i) { // extern_type may be signed, avoid output of Index: src/tex2lyx/tex2lyx.cpp === --- src/tex2lyx/tex2lyx.cpp (révision 29363) +++ src/tex2lyx/tex2lyx.cpp (copie de travail) @@ -164,6 +164,7 @@ void read_command(Parser p, string com arguments.push_back(optional); } } + cerr read command command endl; commands[command] = arguments; } @@ -202,7 +203,8 @@ void read_environment(Parser p, string */ void read_syntaxfile(FileName const file_name) { - ifdocstream is(file_name.toFilesystemEncoding().c_str()); + ifdocstream is; + is.open(file_name.toFilesystemEncoding().c_str()); if (!is.good()) { cerr Could not open syntax file \ file_name \ for reading. endl; @@ -219,6 +221,7 @@ void read_syntaxfile(FileName const fi string const command = t.asInput(); if (command == \\begin) { string const name = p.getArg('{', '}'); +cerr \\begin{ name }endl; if (name == environments || name == reLyXre) // We understand reLyXre, but it is // not as powerful as environments. @@ -227,6 +230,8 @@ void read_syntaxfile(FileName const fi else if (name == mathenvironments) read_environment(p, name, known_math_environments); +cerr \\end{ name }endl; + } else { read_command(p, command, known_commands); }
Re: Note: www.lyx.org/~user no longer accessible
Stephan Witt wrote: PS. I'm not sure about the images from Berlin, so I disabled 'rx' for others for that directory, so it's currently not world readable. Hi Christian, if the only thing you need is an OK from me... Here you are. You can publish them if you like. iirc the problem was the location :) pavel
Re: r29364 - lyx-devel/trunk/src
lasgouttes wrote: - runparams.use_indices = buffer-params().use_indices; - - if (buffer) + if (buffer) { runparams.use_japanese = buffer-bufferFormat() == platex; + runparams.use_indices = buffer-params().use_indices; + } Oops. Thanks. Jürgen
spellcheck typos
the attached fixes some typos in the spellcheck code i can't seem to commit, perhaps someone can do it for me? thanks, edwin Index: GuiSpellchecker.h === --- GuiSpellchecker.h (revision 29364) +++ GuiSpellchecker.h (working copy) @@ -35,9 +35,9 @@ private Q_SLOTS: void on_closePB_clicked(); - void on_suggestionsLW_changed(QListWidgetItem *); - void on_replaceC0_highlighted(const QString str); - void on_replaceAllPB_clicked(); + void on_suggestionsLW_itemChanged(QListWidgetItem *); + void on_replaceCO_highlighted(const QString str); + void on_ignoreAllPB_clicked(); void on_addPB_clicked(); void on_ignorePB_clicked(); void on_replacePB_clicked(); Index: ui/SpellcheckerUi.ui === --- ui/SpellcheckerUi.ui (revision 29364) +++ ui/SpellcheckerUi.ui (working copy) @@ -103,7 +103,7 @@ /widget /item item row=6 column=1 - widget class=QPushButton name=replacePB_3 + widget class=QPushButton name=ignoreAllPB property name=toolTip stringIgnore this word throughout this session/string /property Index: GuiSpellchecker.cpp === --- GuiSpellchecker.cpp (revision 29364) +++ GuiSpellchecker.cpp (working copy) @@ -90,7 +90,7 @@ } -void GuiSpellchecker::on_suggestionsLW_changed(QListWidgetItem * item) +void GuiSpellchecker::on_suggestionsLW_itemChanged(QListWidgetItem * item) { if (d-ui.replaceCO-count() != 0) d-ui.replaceCO-setItemText(0, item-text()); @@ -101,7 +101,7 @@ } -void GuiSpellchecker::on_replaceC0_highlighted(const QString str) +void GuiSpellchecker::on_replaceCO_highlighted(const QString str) { QListWidget * lw = d-ui.suggestionsLW; if (lw-currentItem() lw-currentItem()-text() == str) @@ -123,7 +123,7 @@ } -void GuiSpellchecker::on_replaceAllPB_clicked() +void GuiSpellchecker::on_ignoreAllPB_clicked() { /// replace all occurances of word theSpellChecker()-accept(d-word_); @@ -169,13 +169,13 @@ lw-clear(); if (words.empty()) { - on_suggestionsLW_changed(new QListWidgetItem(suggestion)); + on_suggestionsLW_itemChanged(new QListWidgetItem(suggestion)); return; } for (size_t i = 0; i != words.size(); ++i) lw-addItem(toqstr(words[i])); - on_suggestionsLW_changed(lw-item(0)); + on_suggestionsLW_itemChanged(lw-item(0)); lw-setCurrentRow(0); }
Re: spellcheck typos
Edwin Leuven wrote: the attached fixes some typos in the spellcheck code i can't seem to commit, perhaps someone can do it for me? you need to svn switch --relocate svn+ssh://lar...@svn.lyx.org/lyx/... svn://svn.lyx.org/lyx/... for your tree or checkout the fresh archive (now without the '+ssh' prefix in protocol). first commit you will be asked for user and pass you had previsouly and from then svn remebers it... pavel
RE: spellcheck typos
pavel wrote: you need to svn switch --relocate svn+ssh://lar...@svn.lyx.org/lyx/... svn://svn.lyx.org/lyx/... for your tree or checkout the fresh archive (now without the '+ssh' prefix in protocol). first commit you will be asked for user and pass you had previsouly and from then svn remebers it... i did a clean checkout with svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel doing svn commit gives me svn: Commit failed (details follow): svn: Authentication error from server: Username not found
Re: spellcheck typos
Edwin Leuven edwin.leu...@ensae.fr writes: doing svn commit gives me svn: Commit failed (details follow): svn: Authentication error from server: Username not found You should use as username tour @lyx.org login name. And you need to send a password to Lars so that he activates your account. JMarc
RE: spellcheck typos
jmarc wrote: You should use as username tour @lyx.org login name. And you need to send a password to Lars so that he activates your account. mm, i think i did both ... but now i start to have some doubts lars can u confirm that my account is active? ed.
Re: r29342 - lyx-devel/trunk/src
Jean-Marc Lasgouttes schrieb: Yes, but what if I keep a reference to the temporary variable that gets returned? Does my reference point to neverland? Yes it does. Or more precisely it points to somewhere on the stack because local variables in functions are allocated on the stack. When the function returns a reference (or a pointer) to such a variable then calling another function most likely overwrites the content of that variable. e.g. try this one #include iostream struct T { int x; }; struct U { char c1; char c2; char c3; char c4; }; T Foo() { T t; t.x = 1; return t; } void Bar() { U u; u.c1 = 0x12; u.c2 = 0x34; u.c3 = 0x56; u.c4 = 0x78; } int main() { T const t = Foo(); std::cout std::hex t.x std::endl; Bar(); std::cout std::hex t.x std::endl; return 0; } Output is: 1 78563412 bernhard
Re: r29342 - lyx-devel/trunk/src
Bernhard Roider bernhard.roi...@sonnenkinder.org writes: Jean-Marc Lasgouttes schrieb: Yes, but what if I keep a reference to the temporary variable that gets returned? Does my reference point to neverland? Yes it does. Or more precisely it points to somewhere on the stack because local variables in functions are allocated on the stack. When the function returns a reference (or a pointer) to such a variable then calling another function most likely overwrites the content of that variable. e.g. try this one OK I see. But is there a problem when Foo returns a value, like below? T Foo() { T t; t.x = 1; return t; } JMarc
Re: r29342 - lyx-devel/trunk/src
On Tue, Apr 21, 2009 at 08:48:50PM +0200, Jean-Marc Lasgouttes wrote: Bernhard Roider bernhard.roi...@sonnenkinder.org writes: Jean-Marc Lasgouttes schrieb: Yes, but what if I keep a reference to the temporary variable that gets returned? Does my reference point to neverland? Yes it does. Or more precisely it points to somewhere on the stack because local variables in functions are allocated on the stack. When the function returns a reference (or a pointer) to such a variable then calling another function most likely overwrites the content of that variable. e.g. try this one OK I see. But is there a problem when Foo returns a value, like below? T Foo() { T t; t.x = 1; return t; } No, never. Andre'
Re: spellcheck typos
Edwin Leuven wrote: You should use as username tour @lyx.org login name. And you need to send a password to Lars so that he activates your account. mm, i think i did both ... but now i start to have some doubts lars can u confirm that my account is active? for the time being i have commited your patch. pavel
Re: r29346 - lyx-devel/trunk/src/tex2lyx
Jean-Marc Lasgouttes schrieb: It is more worse now. I checked out trunk, compiled it, and now LyX crashes immediately whenever I want to import a LaTeX file, even when the LaTeX file contains only a single ASCII word like Hello. This crash is just an oversight in the new multi-index support. Should be fixed now. Yes, the crash is now fixed. And could you try with the updated trunk (where the other patch should not be necessary)? Still the same problem. If trunk does not work (which is probably the case), please try the following debug patch. Done. I get: ... read command titlepage \end{reLyXre} Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: Overwriting existing file C:/Documents and Settings/usti/My Documents/testcase.lyx Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: Warning: #LyX file created by tex2lyx 2.0.0svn The first error disappears when I delete the character é of the name André in line 681 of syntax.default. Then tex2lyx again parses formulas correctly. But then I still get the second error message: Overwriting existing file C:/Documents and Settings/usti/My Documents/testcase.lyx Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: Warning: #LyX file created by tex2lyx 2.0.0svn regards Uwe
Re: How does the Navigate Back feature work?
i described it in doxy: Thanks for the explanation. I open for example the Tutorial manual. Via the menu Navigate I go to chapter 2 and then to chapter 3. I expect that I can now go back to chapter 2 by pressing the Navigate Back button, no, the intention was to go the place of last editation in case you have just scrolled/jumped in other place of the document just to see something. OK, but I would find it very useful when the go back button can also what I thought it is for. Do you think you ca implement this easily? I also haven't found a menu entry as alternative for the Navigate Back button. According to our UI guideline, the Navigate menu should have such an entry. i thought this holds for keyboard binding, but i can add it. Could you please add an entry for this in the Navigate menu? There should be a menu entry for every toolbar button. thanks and regards Uwe
LyX 1.6.2 -- does it provide inverse search via Yap ?
hi, I'm running LyX 1.6.2 on Windows XP. I would like to perform inverse searches from Yap back to the actual line in LyX. Is this possible? Also, is there a better viewer than Yap that people could suggest? Thanks, Ed Sykes -- View this message in context: http://n2.nabble.com/LyX-1.6.2does-it-provide-inverse-search-via-Yap---tp2673760p2673760.html Sent from the LyX - Developers mailing list archive at Nabble.com.
LyX 1.6.2 -- svn on Windows
hi, I'm running LyX 1.6.2 on Windows XP. I use the Tortoise SVN client for subversion. I'm getting an error when I try to commit from within LyX: Some problem occured while running the command: 'svn commit -m ... I'm assuming I need a command line client for svn to execute... is there a way to make Tortoise SVN handle this...or is there another application that will do it...or do I need to install cygwin and run LyX through it? thanks in advance. Cheers, Ed Sykes -- View this message in context: http://n2.nabble.com/LyX-1.6.2svn-on-Windows-tp2673845p2673845.html Sent from the LyX - Developers mailing list archive at Nabble.com.
Re: Crash with Gtk-ERROR on Linux RedHat EL 5
Ulrich Hetmaniuk wrote: > Qt 4 Frontend: > Qt 4 version: 4.5.0 ... > Do you know how can I fix this problem? i guess qt 4.5.0 makes it happen pavel
Re: Crash with Gtk-ERROR on Linux RedHat EL 5
Ulrich Hetmaniuk wrote: Dear all, Thank you for developing LyX. I have compiled successfully LyX 1.6.2 on RedHat EL 5. However, at execution, the code crashes when changing the focus on a window. Here is the error == bash-3.2$ src/lyx (:11732): Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you connect a handler to this signal, it must return FALSE so the entry gets the event as well Gtk-ERROR **: file gtkentry.c: line 5287 (blink_cb): assertion failed: (GTK_WIDGET_HAS_FOCUS (entry)) aborting... Aborted == -bash-3.2$ src/lyx -version LyX 1.6.2 (2009-03-14) Built on Apr 20 2009, 17:27:32 Configuration Host type:x86_64-unknown-linux-gnu Special build flags: use-ispell C Compiler: gcc C Compiler LyX flags: C Compiler flags: -I/home/hetmaniu/src/fontconfig-2.6.0/include -O2 C++ Compiler: g++ (4.1.2) C++ Compiler LyX flags: C++ Compiler flags: -I/home/hetmaniu/src/fontconfig-2.6.0/include -O2 Linker flags: Linker user flags: -L/home/hetmaniu/src/fontconfig-2.6.0/lib -L/home/hetmaniu/src/qt-sdk/lib Qt 4 Frontend: Qt 4 version:4.5.0 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx == I am using qt-sdk for Linux/X11 64 bit. On my system, gtk is /usr/lib/gtk-2.0/2.10.0 Do you know how can I fix this problem? I think you are using a special qt-gtk skin or theme that causes the problem. Try running qtconfig to change the GUI style you are running. If that solve the problem, please report the bug to qtsoftware. Abdel.
Re: r29346 - lyx-devel/trunk/src/tex2lyx
Uwe Stöhrwrites: > Jean-Marc Lasgouttes schrieb: > >>> Could you tell me whether you can import a document with only a few >>> words but some accented? I want to check whether the problem is with the >>> idocstream. > > It is more worse now. I checked out trunk, compiled it, and now LyX > crashes immediately whenever I want to import a LaTeX file, even when > the LaTeX file contains only a single ASCII word like "Hello". This crash is just an oversight in the new multi-index support. Should be fixed now. >> OK Uwe (or anybody who sees the same problem under windows), could you >> try the following patch? > > I applied this patch to branch, there LyX doesn't crash but the > problem persists. And could you try with the updated trunk (where the other patch should not be necessary)? JMarc
Re: Note: www.lyx.org/~ no longer accessible
Christian Ridderström schrieb: On Thu, 2 Apr 2009, Pavel Sanda wrote: Pavel Sanda wrote: Christian Ridderström wrote: Maybe you could add the images to a sub-tree of www-user? Then I can just update the checked out tree on the server? i would put all the things which were under ~user/.. into some structure say svn://www-user/trunk/misc/... is it possible to setup things that addressing www.lyx.org/misc/X goes into svn://www-user/trunk/misc/X ? i finally moved things there, i guess, you need svn update somewhere on the server. I've updated the checked out www-user tree on the server. You can see it here: http://www.lyx.org/misc/ But I don't understand this bit with svn://www-user/trunk/misc/X at all??? /Christian PS. I'm not sure about the images from Berlin, so I disabled 'rx' for others for that directory, so it's currently not world readable. Hi Christian, if the only thing you need is an OK from me... Here you are. You can publish them if you like. Stephan ---
Re: r29346 - lyx-devel/trunk/src/tex2lyx
Jean-Marc Lasgoutteswrites: > And could you try with the updated trunk (where the other patch should > not be necessary)? If trunk does not work (which is probably the case), please try the following debug patch. Note that it contains code that may cure your comment from an earlier thread: I debugged a bit and LyX finds syntax.default and can read it successfully, but stops somewhere with this meaningless message: Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: But 00C3 is a capital A with a tilde, that I don't have in the file. (Btw. "Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error" is just funny.) At least it may give us a more precise error message. The rest of the patch should tell us whether some parts of syntax.defaults are read correctly. JMarc svndiff Index: src/support/docstream.cpp === --- src/support/docstream.cpp (révision 29363) +++ src/support/docstream.cpp (copie de travail) @@ -129,10 +129,11 @@ protected: } #endif if (retval == base::error) { + int const save_errno = errno; fprintf(stderr, "Error %d returned from iconv when converting from %s to %s: %s\n", -errno, ucs4_codeset, encoding_.c_str(), -strerror(errno)); +save_errno, ucs4_codeset, encoding_.c_str(), +strerror(save_errno)); fputs("Converted input:", stderr); for (intern_type const * i = from; i < from_next; ++i) { unsigned int const c = *i; @@ -179,10 +180,11 @@ protected: reinterpret_cast(_next), ); if (retval == base::error) { + int const save_errno = errno; fprintf(stderr, "Error %d returned from iconv when converting from %s to %s: %s\n", -errno, encoding_.c_str(), ucs4_codeset, -strerror(errno)); +save_errno, encoding_.c_str(), ucs4_codeset, +strerror(save_errno)); fputs("Converted input:", stderr); for (extern_type const * i = from; i < from_next; ++i) { // extern_type may be signed, avoid output of Index: src/tex2lyx/tex2lyx.cpp === --- src/tex2lyx/tex2lyx.cpp (révision 29363) +++ src/tex2lyx/tex2lyx.cpp (copie de travail) @@ -164,6 +164,7 @@ void read_command(Parser & p, string com arguments.push_back(optional); } } + cerr << "read command " << command << endl; commands[command] = arguments; } @@ -202,7 +203,8 @@ void read_environment(Parser & p, string */ void read_syntaxfile(FileName const & file_name) { - ifdocstream is(file_name.toFilesystemEncoding().c_str()); + ifdocstream is; + is.open(file_name.toFilesystemEncoding().c_str()); if (!is.good()) { cerr << "Could not open syntax file \"" << file_name << "\" for reading." << endl; @@ -219,6 +221,7 @@ void read_syntaxfile(FileName const & fi string const command = t.asInput(); if (command == "\\begin") { string const name = p.getArg('{', '}'); +cerr << "\\begin{" << name << "}"<
Re: Note: www.lyx.org/~ no longer accessible
Stephan Witt wrote: >> PS. I'm not sure about the images from Berlin, so I disabled 'rx' for >> others for that directory, so it's currently not world readable. > > Hi Christian, > > if the only thing you need is an OK from me... Here you are. > You can publish them if you like. iirc the problem was the location :) pavel
Re: r29364 - lyx-devel/trunk/src
lasgouttes wrote: > - runparams.use_indices = buffer->params().use_indices; > - > - if (buffer) > + if (buffer) { > runparams.use_japanese = buffer->bufferFormat() == > "platex"; + runparams.use_indices = > buffer->params().use_indices; + } Oops. Thanks. Jürgen
spellcheck typos
the attached fixes some typos in the spellcheck code i can't seem to commit, perhaps someone can do it for me? thanks, edwin Index: GuiSpellchecker.h === --- GuiSpellchecker.h (revision 29364) +++ GuiSpellchecker.h (working copy) @@ -35,9 +35,9 @@ private Q_SLOTS: void on_closePB_clicked(); - void on_suggestionsLW_changed(QListWidgetItem *); - void on_replaceC0_highlighted(const QString & str); - void on_replaceAllPB_clicked(); + void on_suggestionsLW_itemChanged(QListWidgetItem *); + void on_replaceCO_highlighted(const QString & str); + void on_ignoreAllPB_clicked(); void on_addPB_clicked(); void on_ignorePB_clicked(); void on_replacePB_clicked(); Index: ui/SpellcheckerUi.ui === --- ui/SpellcheckerUi.ui (revision 29364) +++ ui/SpellcheckerUi.ui (working copy) @@ -103,7 +103,7 @@ - + Ignore this word throughout this session Index: GuiSpellchecker.cpp === --- GuiSpellchecker.cpp (revision 29364) +++ GuiSpellchecker.cpp (working copy) @@ -90,7 +90,7 @@ } -void GuiSpellchecker::on_suggestionsLW_changed(QListWidgetItem * item) +void GuiSpellchecker::on_suggestionsLW_itemChanged(QListWidgetItem * item) { if (d->ui.replaceCO->count() != 0) d->ui.replaceCO->setItemText(0, item->text()); @@ -101,7 +101,7 @@ } -void GuiSpellchecker::on_replaceC0_highlighted(const QString & str) +void GuiSpellchecker::on_replaceCO_highlighted(const QString & str) { QListWidget * lw = d->ui.suggestionsLW; if (lw->currentItem() && lw->currentItem()->text() == str) @@ -123,7 +123,7 @@ } -void GuiSpellchecker::on_replaceAllPB_clicked() +void GuiSpellchecker::on_ignoreAllPB_clicked() { /// replace all occurances of word theSpellChecker()->accept(d->word_); @@ -169,13 +169,13 @@ lw->clear(); if (words.empty()) { - on_suggestionsLW_changed(new QListWidgetItem(suggestion)); + on_suggestionsLW_itemChanged(new QListWidgetItem(suggestion)); return; } for (size_t i = 0; i != words.size(); ++i) lw->addItem(toqstr(words[i])); - on_suggestionsLW_changed(lw->item(0)); + on_suggestionsLW_itemChanged(lw->item(0)); lw->setCurrentRow(0); }
Re: spellcheck typos
Edwin Leuven wrote: > the attached fixes some typos in the spellcheck code > > i can't seem to commit, perhaps someone can do it for me? you need to svn switch --relocate svn+ssh://lar...@svn.lyx.org/lyx/... svn://svn.lyx.org/lyx/... for your tree or checkout the fresh archive (now without the '+ssh' prefix in protocol). first commit you will be asked for user and pass you had previsouly and from then svn remebers it... pavel
RE: spellcheck typos
pavel wrote: > you need to > svn switch --relocate svn+ssh://lar...@svn.lyx.org/lyx/... > svn://svn.lyx.org/lyx/... > > for your tree or checkout the fresh archive (now without the '+ssh' prefix > in protocol). first commit you will be asked for user and pass you had > previsouly and from then svn remebers it... i did a clean checkout with svn co svn://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel doing svn commit gives me svn: Commit failed (details follow): svn: Authentication error from server: Username not found
Re: spellcheck typos
Edwin Leuvenwrites: > doing svn commit gives me > > svn: Commit failed (details follow): > svn: Authentication error from server: Username not found You should use as username tour @lyx.org login name. And you need to send a password to Lars so that he activates your account. JMarc
RE: spellcheck typos
jmarc wrote: > You should use as username tour @lyx.org login name. And you need to > send a password to Lars so that he activates your account. mm, i think i did both ... but now i start to have some doubts lars can u confirm that my account is active? ed.
Re: r29342 - lyx-devel/trunk/src
Jean-Marc Lasgouttes schrieb: Yes, but what if I keep a reference to the temporary variable that gets returned? Does my reference point to neverland? Yes it does. Or more precisely it points to somewhere on the stack because local variables in functions are allocated on the stack. When the function returns a reference (or a pointer) to such a variable then calling another function most likely overwrites the content of that variable. e.g. try this one #include struct T { int x; }; struct U { char c1; char c2; char c3; char c4; }; T () { T t; t.x = 1; return t; } void Bar() { U u; u.c1 = 0x12; u.c2 = 0x34; u.c3 = 0x56; u.c4 = 0x78; } int main() { T const& t = Foo(); std::cout << std::hex << t.x << std::endl; Bar(); std::cout << std::hex << t.x << std::endl; return 0; } Output is: 1 78563412 bernhard
Re: r29342 - lyx-devel/trunk/src
Bernhard Roiderwrites: > Jean-Marc Lasgouttes schrieb: > >> Yes, but what if I keep a reference to the temporary variable that >> gets returned? Does my reference point to neverland? > > Yes it does. Or more precisely it points to somewhere on the stack > because local variables in functions are allocated on the stack. When > the function returns a reference (or a pointer) to such a variable > then calling another function most likely overwrites the content of > that variable. > > e.g. try this one OK I see. But is there a problem when Foo returns a value, like below? T Foo() { T t; t.x = 1; return t; } JMarc
Re: r29342 - lyx-devel/trunk/src
On Tue, Apr 21, 2009 at 08:48:50PM +0200, Jean-Marc Lasgouttes wrote: > Bernhard Roiderwrites: > > > Jean-Marc Lasgouttes schrieb: > > > >> Yes, but what if I keep a reference to the temporary variable that > >> gets returned? Does my reference point to neverland? > > > > Yes it does. Or more precisely it points to somewhere on the stack > > because local variables in functions are allocated on the stack. When > > the function returns a reference (or a pointer) to such a variable > > then calling another function most likely overwrites the content of > > that variable. > > > > e.g. try this one > > OK I see. But is there a problem when Foo returns a value, like below? > > T Foo() { >T t; >t.x = 1; >return t; > } No, never. Andre'
Re: spellcheck typos
Edwin Leuven wrote: > You should use as username tour @lyx.org login name. And you need to > > send a password to Lars so that he activates your account. > > mm, i think i did both ... but now i start to have some doubts > > lars can u confirm that my account is active? for the time being i have commited your patch. pavel
Re: r29346 - lyx-devel/trunk/src/tex2lyx
Jean-Marc Lasgouttes schrieb: It is more worse now. I checked out trunk, compiled it, and now LyX crashes immediately whenever I want to import a LaTeX file, even when the LaTeX file contains only a single ASCII word like "Hello". This crash is just an oversight in the new multi-index support. Should be fixed now. Yes, the crash is now fixed. And could you try with the updated trunk (where the other patch should not be necessary)? Still the same problem. > If trunk does not work (which is probably the case), please try the > following debug patch. Done. I get: ... read command titlepage \end{reLyXre} Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: Overwriting existing file C:/Documents and Settings/usti/My Documents/testcase.lyx Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: Warning: #LyX file created by tex2lyx 2.0.0svn The first error disappears when I delete the character "é" of the name "André" in line 681 of syntax.default. Then tex2lyx again parses formulas correctly. But then I still get the second error message: Overwriting existing file C:/Documents and Settings/usti/My Documents/testcase.lyx Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error Converted input: Stopped at: 0xc3 Unconverted input: Converted output: Warning: #LyX file created by tex2lyx 2.0.0svn regards Uwe
Re: How does the Navigate Back feature work?
> i described it in doxy: Thanks for the explanation. >> I open for example the Tutorial manual. Via the menu Navigate I go to >> chapter 2 and then to chapter 3. I expect that I can now go back to chapter >> 2 by pressing the Navigate Back button, > no, the intention was to go the place of last editation in case you have just > scrolled/jumped in other place of the document just to see something. OK, but I would find it very useful when the go back button can also what I thought it is for. Do you think you ca implement this easily? >> I also haven't found a menu entry as alternative for the Navigate Back >> button. According to our UI guideline, the Navigate menu should have such >> an entry. > > i thought this holds for keyboard binding, but i can add it. Could you please add an entry for this in the Navigate menu? There should be a menu entry for every toolbar button. thanks and regards Uwe
LyX 1.6.2 -- does it provide inverse search via Yap ?
hi, I'm running LyX 1.6.2 on Windows XP. I would like to perform inverse searches from Yap back to the actual line in LyX. Is this possible? Also, is there a better viewer than Yap that people could suggest? Thanks, Ed Sykes -- View this message in context: http://n2.nabble.com/LyX-1.6.2does-it-provide-inverse-search-via-Yap---tp2673760p2673760.html Sent from the LyX - Developers mailing list archive at Nabble.com.
LyX 1.6.2 -- svn on Windows
hi, I'm running LyX 1.6.2 on Windows XP. I use the Tortoise SVN client for subversion. I'm getting an error when I try to commit from within LyX: "Some problem occured while running the command: 'svn commit -m " ... " I'm assuming I need a command line client for svn to execute... is there a way to make Tortoise SVN handle this...or is there another application that will do it...or do I need to install cygwin and run LyX through it? thanks in advance. Cheers, Ed Sykes -- View this message in context: http://n2.nabble.com/LyX-1.6.2svn-on-Windows-tp2673845p2673845.html Sent from the LyX - Developers mailing list archive at Nabble.com.