To nXhtml main page

nXhtml Notes and Bugs

I have rewritten the PHP mode switching

Because of some (fair) critique I have gotten about the way mode switching between php-mode and nxhtml-mode works I have rewritten that part. The new mode switching also includes embedded css, javascript, eRuby and JSP.

A lot of bugs corrected for version 0.98

I want to thanks Hadron Quark for helping me by testing and pointing out bugs and weaknesses, most related to editing of PHP. I have included fixes for many of them in version 0.98 and more may follow.

nXhtml Changes

0.89
  • Corrected autostart for nXhtml when not used together with EmacsW32.
0.90
  • Improved display of XML path.
  • Discontinued xmple-mode.
  • New major modes nxhtml-part-mode/nxml-part-mode replaces minor mode xmlpe-mode. (While moving the code to nxhtml-part.el I also fixed a bug in Xmple minor mode that made Emacs take 99% of the CPU.)
0.91
  • Fixed some calls to perl which prevented uploading of a site of you did not have perl in the same location as me.
  • Glued together things so that editing PHP files works as I intended. (This means that Emacs switches between php-mode and nxhtml-part-mode automatically when moving point. And that you can use completion.)
  • Starting working on the documentation for nXhtml. New layout to the documentation files. Examples with images.
0.92
  • Fixes to make the switching between php and xhtml style editing work better.
0.93
  • Better error handling when switching to editing embedded JavaScript and CSS.
  • Removed PHP spec from embedded switching since they interfered with the automatic switching between php and xhtml.
  • Gives an error message if web host is not defined in site when trying to use View Uploaded File and cousins.
  • Gives a ready message when finished uploading a single file.
  • When using Mode Switching at <? ... ?> mode switching could occur in wrong buffer. Fixed together with some other buffer problems.
0.94
  • Add http://www.w3.org/ to the help sites for CSS.
  • Included a CSS mode.
  • Added a menu entry for bug reporting.
  • Renamed menu bar entry from XHTML to nXhtml for clarity. (But nXml menu bar entry is still called XML.)
  • Added work around for globalized minor modes in the cases of MLinks, XML Path and mode switching at <? ... ?>.
0.95
  • Added workaround for the problem with the first keyboard key after automatically switching of mode at <? ... ?>.
0.96
  • Added support for multiple major modes with mumamo.el.
  • More conventient handling of links. They can now be opened in the same window, 'other window' or in a new frame.
0.97
  • Schema was not setup after starting new page so completion did not work. Fixed.
  • Added http://xhtml.com/ to help sites for XHTML.
  • Added the concept of XML validation headers. These are just text parsed by the nXml validation parser to get a start state before starting parsing a buffer. This allows the use of the nXml completion in buffers where there are no XML header. Such a header is often lacking for example in PHP code since the XHTML header is often generated dynamically.
  • Because of the change above nxhtml-part-mode is no longer needed and is therefore declared obsolete.
  • Corrected a bug in mlinks.el that prevented opening an HTML link in a other window or a new frame.
  • Added support for JSP, eRuby and some support for perl in mumamo.el.
0.98
  • Mumamo was not found when nXhtml was installed with just the zip file. Corrected. (nXhtml is also installed when you install EmacsW32.)
  • Enhancement to mumamo error handling when a bad mode specifier for an embedded mode is found.
  • Introduced a bug for empty XHTML documents in 0.97. Corrected.
  • Corrected a bug for chunks 1 character long.
  • There is a bug in Emacs 22 in the handling of global minor mode that are not distributed with Emacs. If they are turned on by customization, but loaded after Emacs have loaded the customizations (usually in .emacs) then they are not turned on correctly. Added work-around for this.
  • Extra XHTML Validation Header:
    • Extra XHTML Validation Header state was not saved when moving between chunks. Fixed.
    • Tried to make the concept of Extra XHTML Validation Header more clear. Added this visually to the buffer.
    • Extra XHTML Validation Headers can now be turned on automatically based on file name.
  • nXhtml menu:
    • Reorganized the nXhtml menu.
    • Added customization groups for help libraries to nXhtml.
    • Added an entry for customization of nXhtml to the menus.
    • Added Tidy to the menus again.
  • Corrected bug in XML Path (nxml-where) for single tags. Other small fixes to nxhtml-where.
  • Documentation enhancements. Added The Quick Guide.
0.99
  • Corrections to indentation.
  • Turn on mumamo-mode by file name.
  • The Extra XHTML Validation Header state were not saved when changing major mode in MuMaMo. Corrected.
  • Added more alternatives to the Extra XHTML Validation Header list. This should make it easier to use completion with for example PHP.
  • Added default value for the Extra XHTML Validation Header.