Dear all, I have submitted the InsetInfo patch in ten pieces. This makes it easy for you to review, and to revert certain features if we decide to revert them later. Here is a summary of this feature.
InsetInfo displays package, textclass, shortcut, lyxrc and menu information in a non-editable boxed InsetText. Because this inset is intended to be used only by document maintainers, there is no GUI, no menu entry for this inset. The only way to insert such an inset is 1. type: "menu paste" (type and arg) 2. select, and press C-S-I. Arg can be any string that can be converted to an LFUN by lyx. You can look in stdmenu.inc and bind files for the string representation of a particular LFUN. Currently, LaTeXConfig.lyx.in is replaced by LaTeXConfig.lyx, which @chk_blah@ replaced by InsetInfo. There are a few 'unknown info' left and I will remove or handle them later. (JMarc, can you do this?) I also added 'Menu->Shortcut'. I would appreciate it if someone can complete this file. There might be a few extensions to this feature 1. Add BufferParams to display currently used layout, class, and other settings in BufferParams. This is easy to do but I am not sure if this is useful. 2. Add system information such as version, lib_path etc. This is more useful 3. Add LFUN_RESOLVE_INFO_INSET. This can be used to replace such insets with their displayed information. One particular use of this might be to export Shortcuts.lyx to 1.5.x format and add this file to lyx.1.5.x. The problem is that we will need to prepare a file for each bind file. 4. Select and copy texts inside InsetInfo. Currently, I disable any edition of this inset. However, it is better to allow READONLY edition such as select and copy. This may be easy, but I do not know how to do it now. Cheers, Bo