Thank you very much for your detailed answer. I'm doing what you recommended, and it's starting to make some more sense. I appreciate the emacs tip as well.
On Jan 5, 9:41 am, Stephen Compall <[email protected]> wrote: > > What is the syntax for adding new fields? I haven't seen any examples > > of it anywhere. > > It's the same for the "company" slot you posted. Currently, we don't do > any slot combination like CLOS does; we just use direct override. So in > the example, the `company' slot works by shadowing the inherited one. > If you want to see how inheritance works, apply the attached patch > before reading get-object-view-fields (the patch will be pushed to dev > once I'm more comfortable with it). > > govf-refactoring.patch > 10KViewDownload > > The syntax is the [FIELD-NAME | (FIELD-NAME ...)] described in defview's > docstring. Full details start with the "FIELD-NAME" entry in the > docstring. > > > I've been poring over the code (and documentation strings) in > > compiler.lisp, but I don't see how this can be easily done. > > To really get this, you need to chase down the relevant classes. For a > view with `:type form' (where `form' has symbol-package=weblocks), the > VIEW-KWARGS available are initargs defined by class `form-view' (and so > inherited, such as the :caption arg from class `view'), and the > FIELD-KWARGS available are those on `form-view-field'. Lots of this can > be overridden using the relevant generic functions. > > The nice thing about the `...' syntax is that Emacs understands that > it's a symbol delimiter. To learn more about a symbol the defview > docstring talks about, just stick point there, hit M-., and read. For > example, to read up on the `form-view' slot `satisfies', stick point in > the form-view part, hit M-., and find the slot docstring for `satisfies' > in the list of slots it has. > > -- > Sorry but you say Nibiru is a Hoax? Doesnt Exist? So maybe The > Sumerian people doesnt exist also! --Anonymous by way of SkI --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
