>>>>> "christian" == christian ridderstrom <[EMAIL PROTECTED]> writes:
christian> The attribute 'Noop' is the default attribute, i.e. doesn't christian> mean anything. I'm slightly confused by the choice of christian> "Noop" though... Noop usually means "No Operation" to me. christian> Example: break-line Yes, it mean something like "do not change default attributes" christian> The attribute 'ReadOnly' means that the LFUN will not christian> modify the current buffer, i.e. it can be used when a christian> buffer is read-only. Example: char-forward Yes. Note that a lfun that is not ReadOnly will mean that the buffer is marked dirty. christian> The attribute 'NoBuffer' means that the LFUN can be used christian> regardless if a current buffer exists (a document is open). christian> Example: file-open Yes. christian> The attribute 'Argument' means that the LFUN requires an christian> argument. Example: help-open (this is the only LFUN that christian> uses 'Argument' btw) Yes, this one is not yet used a lot. christian> The attribute 'NoUpdate' means that invoking the LFUN christian> usually does not (usually??) required <what??> to be christian> updated. Example: char-backward It is used to avoid extra screen updates. Not interesting for the user, I guess. christian> The attribute 'SingleParUpdate' means invoking the LFUN christian> usually (?) only requires the current paragraph to be christian> updated (?). Example: delete-backward (I'm slightly christian> confused though... why is 'down-select' SingleParUpdate, christian> couldn't that cross a paragraph boundary, or is that the christian> "usually" bit?) The only change it can do to the document is trigger the "delete empty stuff" mechanism, which is local to current paragraph. This is also internal and not interesting to users (I think you may want to ignore those). christian> According to LyXAction.h, these seem to be all the christian> attributes, is this correct? Yes. christian> Are these attributes meaningful to know about for an christian> (expert) user, or are they strictly useful for developers? Not sure. christian> When defining a new command sequence... is that sequence christian> automatically given the correct attribute (based on the christian> LFUNs it is comprised of)? Or does a command sequence not christian> have an attribute by itself? The attributes are just shortcuts used to implement the getStatus methods (which decides whether commands are available). For command sequences, as a heuristic, the sequence is declared enabled if the first action is enabled. This is not correct, but I do not have a better idea. JMarc
