Juergen Spitzmueller wrote: > > I'm not even sure I understand what LABEL_GOTO does (or is it broken?) > > OK, now I do. This is really odd.
I think this menu entry is extremely irritating. How about the following patch, that does enable the entry only when it actually makes sense? Jürgen
Index: BufferView_pimpl.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v retrieving revision 1.584 diff -u -r1.584 BufferView_pimpl.C --- BufferView_pimpl.C 31 May 2005 14:40:23 -0000 1.584 +++ BufferView_pimpl.C 3 Jun 2005 19:08:13 -0000 @@ -976,7 +976,6 @@ case LFUN_FONT_STATE: case LFUN_INSERT_LABEL: case LFUN_BOOKMARK_SAVE: - case LFUN_LABEL_GOTO: case LFUN_GOTO_PARAGRAPH: case LFUN_GOTOERROR: case LFUN_GOTONOTE: @@ -990,6 +989,16 @@ case LFUN_WORDS_COUNT: flag.enabled(true); break; + + case LFUN_LABEL_GOTO: { + if (cmd.argument.empty() + && !getInsetByCode<InsetRef>(cursor_, InsetBase::REF_CODE)) { + flag.enabled(false); + break; + } + flag.enabled(true); + break; + } case LFUN_BOOKMARK_GOTO: flag.enabled(isSavedPosition(convert<unsigned int>(cmd.argument)));