Comment 2 for bug 580058

Revision history for this message
lborgman (lennart-borgman) wrote :

Hi Dino,

I am glad for your thoughts. You are right the docs could be better. I just tried to enhance them - just a little bit. Maybe you want to have a look at mumamo.el again and see if the answers to your questions are more easy to find now?

Note that a big problem with mumamo.el is that I have not had time to clean up everything that is not used any more. The chunk dividing routines where very complex from the beginning (and that did not pay back .. ;-). And the way I did it was a mistake. So looking at mumamo might be confusing. Also there is a lot of details that it tries to take care of that you do not have to know about just to write chunk dividing routines now. In fact I guess for most cases just using `mumamo-quick-chunk-forward' is enough.

If you install the latest beta 2.09 from the repositories there are some convenient ways to find out which multi major modes that are defined in your Emacs. In the menus open the submenu

   nXhtml / Multi Major Modes

At the bottom there are two alternatives

  List Defined Multi Major Modes
  Find a Multi Major Mode

The first just shows a list (which you can narrow with a regexp against the name).

The second tries to be a little bit more fun and guess from what you have in the buffer. (It only looks at the chunks.)

The words "try to behave like" refers to my inability to code them right. I am really not a coder.

The design is quite a bit ad hoc since the problem was really too complex for me. I did not realize from the beginning what was needed and how to cooperate with other parts of Emacs. I still don't do, but it seems to work. Part of the work has been and is how to find a good working design. (Cleaning up is not on my favorite list.)

The design of the chunk dividing routines are driven mostly be the need to save as much work as possible when changing the buffer. Therefore the routines to search for chunks and creating them are separate. Reuse chunks if possible. (Actually those routines are much simpler now that they create chunks from the top to the bottom all the time.)

Mumamo is part of nXhtml today since that is the easiest way to manage and distribute it. Since so many things could go wrong from the beginning this was easiest. The goal is just to include it in Emacs.

I see no reason and possibility to split it out from nXhtml now. There is no good enough system for distribution yet. (I tried to include one in nXhtml but it was by some believed to be dangerous, unfortunately.) At the moment I think most users benefits from having it all in one bundle, but I know some heavy users disagree.

I myself thinks that coordination is the most difficult part for free software.

Now I am a bit curious. Most users just try out the software. It looks to me like you tried to read it instead. Have you tried to use nXhtml?