Guenter Milde <mi...@users.berlios.de> writes: >> There was a discussion on the proper name for this, but I don't >> remember anyone coming up with anything better. "Optional argument" is >> correct but very LaTeX centric and not clear to the uninitiated. > > "LaTeX argument" seems the best choice to me.
IMO the name should be coded in the layout file. Here is how it could work: 1/ when using getStatus(), the lfun validator uses FuncStatus::message to set a special string that could be - the name of the optional argument for the current layout - the name of the current inset - anything else that could be useful 2/ when the menu item string contains %s, the menu code replaces this %s with the message returned by above. With this, we have a way to have menu entry names that depend on context. Would that make sense? JMarc