I've found uses only of the following FuncAttribs values (from grepping for the funcHasFlag function): AtPoint, ReadOnly, NoBuffer, NoInternal
The following values are not being used at all: Argument, NoUpdate, SingleParUpdate. Are they still left around because they might be useful in the future or did I miss a way in which they are currently being used? It seems that there are many LFUNs that would fall under the description of the "Argument" flag (currently help-open is the only LFUN to specify it). If this flag were accurately used, would it be desired to have a centralized checking of an empty argument? It seems that LFUNs are doing (or not doing) the checking on their own. If the checking were centralized, then the advantages would be: (1) a uniform error message would be reported (2) source code would be cleaner (each LFUN would not have to check) (3) the 0-argument error message would be easy to change. For example, upon an empty argument, perhaps it is decided that a message should be issued with the syntax from the doxygen documentation. e.g., in help-open's case, Syntax: help-open <FILE>[.lyx]. This would be nice to have so that if you know what a function does but forgot the exact syntax you don't have to open up the LFUNs help file and find the LFUN to get the correct syntax. The disadvantages I see are: (1) efficiency. This would be an extra bool to check on each LFUN call. (2) the "Argument" flag is not currently being used. (3) in some cases customized error messages might be desired. Some examples of the variety of empty argument handling: help-open gives "Missing argument (help-open)" wrap-insert gives "Non-existent wrapfig type: " and different from all of the others it reports this error to stderr instead of the message box. command-sequence gives "Nothing to do (command-sequence)" inset-forall gives <<Applied "" to 0 insets (inset-forall)>> self-insert and unicode-insert give no error message. float-insert gives no error and instead inserts a "Senseless!!!" float. Any comments? Thank you, Scott