]> git.rkrishnan.org Git - .emacs.d.git/blob - emacs/nxhtml/tests/in/err-line38.html
remove toolbar and menubar
[.emacs.d.git] / emacs / nxhtml / tests / in / err-line38.html
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3           "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
5   <head>
6     <title>News and Notes about nXhtml</title>
7     <link href="wd/grapes/nxhtml-grapes.css" rel="StyleSheet" type="text/css" />
8   </head>
9   <body>
10     <div id="container">
11
12       <div id="rgtcol">
13         <p id="nxhtml-home">
14           <a href="nxhtml.html">To nXhtml main page</a>
15         </p>
16
17         <h1>News and Notes about nXhtml</h1>
18
19         <dl>
20
21           <dt id="hadron-bugs" style="margin-top:1em;">Thanks for testing!</dt>
22           <dd>
23             <p>
24               I want to thanks the testers, especially Hadron Quark
25               and Eric Lilja, for helping me by testing and pointing
26               out bugs and weaknesses, most related to editing of PHP.
27             </p>
28             <p>
29               It is quite a big job trying to get rid of smaller annoying bugs and bigger ones.
30               In my mailbox folder for nXhtml I have more than 500 old messages currently.
31             </p>
32           </dd>
33
34           <dt id="state-of-the-art" style="margin-top:1em;
35             background-color: #00fa9a;
36             background-color: #20b2aa;
37             padding: 0.5em;
38                                            ">The State of the Art</dt>
39           <dd style="background-color: #54ff9f; padding: 0.5em">
40             <p>
41               I have more and more come to realize that there are two
42               main parts of nXhtml which are in quite different
43               degrees of maturity.  The reason for the difference is
44               mainly that one of them, <strong>mumamo-mode</strong>, requires
45               very tight integration with Emacs in a way that
46               currently is not completely possible. Some things must
47               be changed in Emacs for this.  There are also things to
48               discover in the interactions with other minor modes for
49               example.
50             </p>
51             <p>
52               That said I still think mumamo-mode is mature enough for
53               serious use (though it sometimes conflicts with some other modules).
54             </p>
55             <p>
56               The other part, <strong>nxhtml-mode</strong>, is more mature,
57               since it stands more by itself and since it builds on
58               the very stable nxml-mode. I would not say nxhtml-mode
59               is finished, but it is stable and useful.
60             </p>
61           </dd>
62
63           <dt id="magic-problems" style="margin-top:1em;">Magic major mode selection</dt>
64           <dd>
65             <p>
66               Sometimes the major mode that Emacs opens a file in is
67               not what you expect. This can happen with files like PHP
68               files.  The reason might be that magic-mode-alist have
69               choosen a mode based on the content of the file. The way
70               this is done does not take files with mixes a mix of for
71               example XHTML and PHP into account.
72             </p>
73             <p>
74               You may try setting magic-mode-alist to nil if this is a
75               problem for you.
76             </p>
77             <p>
78               <em>
79                 This is now no longer necessary since the introduction
80                 of magic-fallback-mode-alist in CVS Emacs on 2007-05-16.
81                 (If you have an Emacs newer than that, of course.)
82               </em>
83             </p>
84           </dd>
85
86           <dt id="underline-bug" style="margin-top:1em;">Long Red Underlines</dt>
87           <dd>
88             <p>
89               Because of a bug in Emacs 22.1 you can sometimes (at the
90               end of a line) get long red lines instead of just a
91               single underlined character.  Many users (me included)
92               find this quite a bit disturbing. I have therefore added
93               a command to quickly hide/show the underlines. This is
94               on <em>C-c C-w</em>.
95             </p>
96             <p>
97               This is particular useful for example in the case where
98               you edit a PHP file and are bound to get a lot of XHTML
99               validation errors.
100             </p>
101           </dd>
102
103           <dt id="php-attribute-values" style="margin-top:1em;">Attribute values computed by PHP</dt>
104           <dd>
105             <p>
106               If you want to have attribute values computed by PHP
107               here is a way how to structure that to avoid breaking
108               completion and validation in the XHTML part unnessecary:
109             </p>
110             <p style="margin-left:2em">
111               &lt;img src=&quot;images/linux.png&quot; title=&quot;&lt;?php foo(&quot;bar&quot;);?&gt;&quot;/>
112             </p>
113             <p>
114               Unfortunately that still breaks XHTML validation since
115               &lt; is not allowed in strings.  In the long run I
116               believe the XML validator has to be broken up so that it
117               avoids parsing the string here (in PHP files).
118             </p>
119             <p>
120               For now I have implemented a workaround.
121               If you are using constructs like those above then turn on <em>nxhtml-strval-mode</em>.
122               This will temporarily replace the above with
123             </p>
124             <p style="margin-left:2em">
125               &lt;img src=&quot;images/linux.png&quot; title=&quot;&#171;?php foo(&quot;bar&quot;);?&#187;&quot;/>
126             </p>
127             <p>
128               However on the screen you will still see the original
129               string and when writing to file the correct characters
130               will be used.
131             </p>
132           </dd>
133
134           <dt id="pi-note" style="margin-top:1em;">A note for PHP and its cousins</dt>
135           <dd>
136             <p>
137               The rules for a process instruction in XML, like &lt;?php
138               ... ?&gt; says that the text can contain any text except
139               <em>?&gt;</em>. So if you want to output that string
140               from PHP then break it up so it does not look as ?&gt; in
141               the source file.
142             </p>
143             <p>
144               It might be good to break up the beginning part of the
145               process instructions too.  And please note that to use
146               XHTML validation or completion you should avoid using
147               &lt; in strings, since it is not allowed there.
148             </p>
149           </dd>
150
151           <dt id="pi-note" style="margin-top:1em;">Perl Mode slow with Mumamo Mode</dt>
152           <dd>
153             <p>
154               Perl mode used with MuMaMo mode sometimes makes the
155               fontification slow for big files.  I do not know the
156               reason, but I am trying to find a solution for this.  If
157               you encounter this problem, just turn off mumamo-mode in
158               that buffer.
159             </p>
160           </dd>
161
162           <dt id="tab-width-problems" style="margin-top:1em;">Tab width</dt>
163           <dd>
164             <p>
165               Do you have <em>tab-width</em> to something different than 8
166               (the default)? Then please change this to 8. I have got
167               reports of problem with indentation when it is not 8.
168             </p>
169           </dd>
170
171           <dt id="mmm-compat" style="margin-top:1em;">Why the chunks are not compatible with mmm</dt>
172           <dd>
173             <p>
174               Some people have asked why the way to specify chunks in
175               mumamo-mode is not compatible with the old mmm-mode. The
176               answer is that I was not sure that the way used in
177               mmm-mode for specifying the chunks was flexible enough.
178             </p>
179             <p>
180               And I am sure that even the way used in mumamo-mode is
181               not good enough for all cases, but I let it be the way
182               it is until I have a better understanding of the
183               problem. Suggestions and comments are welcome!
184             </p>
185           </dd>
186
187       </dl>
188
189         <h1>nXhtml Changes</h1>
190
191         <dl>
192           <dt>0.89</dt>
193           <dd>
194             <ul>
195               <li>
196                 Corrected autostart for nXhtml when not used together with EmacsW32.
197               </li>
198             </ul>
199           </dd>
200           <dt>0.90</dt>
201           <dd>
202             <ul>
203               <li>
204                 Improved display of XML path.
205               </li>
206               <li>
207                 Discontinued xmple-mode.
208               </li>
209               <li>
210                 New major modes nxhtml-part-mode/nxml-part-mode replaces
211                 minor mode xmlpe-mode.  (While moving the code to
212                 nxhtml-part.el I also fixed a bug in Xmple minor mode that
213                 made Emacs take 99% of the CPU.)
214               </li>
215             </ul>
216           </dd>
217           <dt>0.91</dt>
218           <dd>
219             <ul>
220               <li>
221                 Fixed some calls to perl which prevented uploading of
222                 a site of you did not have perl in the same location
223                 as me.
224               </li>
225               <li>
226                 Glued together things so that editing PHP files works
227                 as I intended. (This means that Emacs switches between
228                 php-mode and nxhtml-part-mode automatically when
229                 moving point. And that you can use completion.)
230               </li>
231               <li>
232                 Starting working on the documentation for nXhtml.
233                 New layout to the documentation files.
234                 Examples with images.
235               </li>
236             </ul>
237           </dd>
238           <dt>0.92</dt>
239           <dd>
240             <ul>
241               <li>
242                 Fixes to make the switching between php and xhtml
243                 style editing work better.
244               </li>
245             </ul>
246           </dd>
247           <dt>0.93</dt>
248           <dd>
249             <ul>
250               <li>
251                 Better error handling when switching to editing
252                 embedded JavaScript and CSS.
253               </li>
254               <li>
255                 Removed PHP spec from embedded switching since they
256                 interfered with the automatic switching between php
257                 and xhtml.
258               </li>
259               <li>
260                 Gives an error message if web host is not defined in
261                 site when trying to use View Uploaded File and
262                 cousins.
263               </li>
264               <li>
265                 Gives a ready message when finished uploading a single
266                 file.
267               </li>
268               <li>
269                 When using Mode Switching at &lt;? ... ?&gt; mode
270                 switching could occur in wrong buffer. Fixed together
271                 with some other buffer problems.
272               </li>
273             </ul>
274           </dd>
275           <dt>0.94</dt>
276           <dd>
277             <ul>
278               <li>
279                 Add http://www.w3.org/ to the help sites for CSS.
280               </li>
281               <li>
282                 Included a CSS mode.
283               </li>
284               <li>
285                 Added a menu entry for bug reporting.
286               </li>
287               <li>
288                 Renamed menu bar entry from XHTML to nXhtml for clarity.
289                 (But nXml menu bar entry is still called XML.)
290               </li>
291               <li>
292                 Added work around for globalized minor modes in the
293                 cases of MLinks, XML Path and mode switching at &lt;? ... ?&gt;.
294               </li>
295             </ul>
296           </dd>
297           <dt>0.95</dt>
298           <dd>
299             <ul>
300               <li>
301                 Added workaround for the problem with the first
302                 keyboard key after automatically switching of mode at
303                 &lt;? ... ?&gt;.
304               </li>
305             </ul>
306           </dd>
307           <dt>0.96</dt>
308           <dd>
309             <ul>
310               <li>
311                 Added support for multiple major modes with mumamo.el.
312               </li>
313               <li>
314                 More conventient handling of links. They can now be
315                 opened in the same window, 'other window' or in a new
316                 frame.
317               </li>
318             </ul>
319           </dd>
320           <dt>0.97</dt>
321           <dd>
322             <ul>
323               <li>
324                 Schema was not setup after starting new page so
325                 completion did not work. Fixed.
326               </li>
327               <li>
328                 Added http://xhtml.com/ to help sites for XHTML.
329               </li>
330               <li>
331                 Added the concept of <em>XML validation headers</em>.
332                 These are just text parsed by the nXml validation
333                 parser to get a start state before starting parsing a
334                 buffer.  This allows the use of the nXml completion in
335                 buffers where there are no XML header.  Such a header
336                 is often lacking for example in PHP code since the
337                 XHTML header is often generated dynamically.
338               </li>
339               <li>
340                 Because of the change above <em>nxhtml-part-mode</em>
341                 is no longer needed and is therefore declared
342                 obsolete.
343               </li>
344               <li>
345                 Corrected a bug in mlinks.el that prevented opening an
346                 HTML link in a other window or a new frame.
347               </li>
348               <li>
349                 Added support for JSP, eRuby and some support for perl
350                 in mumamo.el.
351               </li>
352             </ul>
353           </dd>
354           <dt>0.98</dt>
355           <dd id="v0.98">
356             <ul>
357               <li>
358                 Mumamo was not found when nXhtml was installed with
359                 just the zip file. Corrected.  (nXhtml is also
360                 installed when you install EmacsW32.)
361               </li>
362               <li>
363                 Enhancement to mumamo error handling when a bad mode
364                 specifier for an embedded mode is found.
365               </li>
366               <li>
367                 Introduced a bug for empty XHTML documents in
368                 0.97. Corrected.
369               </li>
370               <li>
371                 Corrected a bug for chunks 1 character long.
372               </li>
373               <li>
374                 There is what I consider is a bug in Emacs 22.1 in the
375                 handling of global minor mode that are not distributed
376                 with Emacs. If they are turned on by customization,
377                 but loaded after Emacs have loaded the customizations
378                 (usually in .emacs) then they are not turned on
379                 correctly. Added work-around for this.
380               </li>
381               <li>
382                 <em>Extra XHTML Validation Header</em>:
383                 <ul>
384                   <li>
385                     <em>Extra XHTML Validation Header</em> state was not saved when moving between chunks. Fixed.
386                   </li>
387                   <li>
388                     Tried to make the concept of <em>Extra XHTML Validation Header</em>
389                     more clear.  Added this visually to the buffer.
390                   </li>
391                   <li>
392                     <em>Extra XHTML Validation Headers</em> can now be turned on
393                     automatically based on file name.
394                   </li>
395                 </ul>
396               </li>
397               <li>
398                 <em>nXhtml menu:</em>
399                 <ul>
400                   <li>
401                     Reorganized the nXhtml menu.
402                   </li>
403                   <li>
404                     Added <em>customization</em> groups for help libraries to nXhtml.
405                   </li>
406                   <li>
407                     Added an entry for customization of nXhtml to the menus.
408                   </li>
409                   <li>
410                     Added <em>Tidy</em> to the menus again.
411                   </li>
412                 </ul>
413               </li>
414               <li>
415                 Corrected bug in <em>XML Path</em> (nxml-where) for single tags.
416                 Other small fixes to nxhtml-where.
417               </li>
418               <li>
419                 Documentation enhancements.
420                 Added <em>The Quick Guide</em>.
421               </li>
422             </ul>
423           </dd>
424           <dt>0.99</dt>
425           <dd id="v0.99">
426             <ul>
427               <li>
428                 Fixed a serious bug in the cooperation between nxhtml-mode and mumamo-mode.
429               </li>
430               <li>
431                 Turn on mumamo-mode by file name (mumamo-global-mode).
432               </li>
433               <li>
434                 Extra XHTML Validation Header:
435                 <ul>
436                   <li>
437                     The Extra XHTML Validation Header state were not saved when changing major mode in MuMaMo. Corrected.
438                   </li>
439                   <li>
440                     Added more alternatives to the Extra XHTML Validation Header list.
441                     This should make it easier to use completion with for example PHP.
442                   </li>
443                   <li>
444                     Added default value for the Extra XHTML Validation Header.
445                   </li>
446                   <li>
447                     Tried to make the use of Extra XHTML Validation Header more automatic and therefore useful.
448                     Also tried to make it play better with setting schema file.
449                     (There is no need normally to set schema file by hand.)
450                   </li>
451                   <li>
452                     To turn this on by default customize nxhtml-global-validation-header-mode.
453                   </li>
454                 </ul>
455               </li>
456               <li>
457                 Possible to hide validation warnings without turning
458                 on validation (which would make completion in the
459                 XHTML part impossible).
460               </li>
461               <li>
462                 Some fixes to php-mode:
463                 <ul>
464                   <li>Using the character # for comments now works for most cases.</li>
465                   <li>Now uses the fontification faces in a more standard way which calms down the look.</li>
466                   <li>Initialization bug fixes.</li>
467                   <li>Renamed php-mode-user-hook to php-mode-hook to follow standard.</li>
468                 </ul>
469               </li>
470               <li>
471                 Indentation fixes:
472                 <ul>
473                   <li>
474                     Various corrections to indentation in mumamo.
475                   </li>
476                   <li>
477                     Added the possibility to use TAB to indent regions
478                     (indent-region-mode).
479                   </li>
480                   <li>
481                     Warn about bad indentation in mixed PHP/HTML code
482                     when using php-mode only.
483                   </li>
484                 </ul>
485               </li>
486               <li>
487                 Fontification now fontifies all text first in main
488                 major mode and thereafter applies submodes. (This
489                 avoids some problems with around a submode chunk.)
490               </li>
491               <li>
492                 Reorganized the nXhtml menu:
493                 <ul>
494                   <li>
495                     There is now a minor mode for the nXhtml
496                     menu. This makes it possible to easier use common
497                     features when in buffers not in nxhtml-mode.
498                   </li>
499                   <li>
500                     The nXhtml menu does not disappear when moving
501                     into a chunk where the major mode is not
502                     nxhtml-mode.  The changes also makes it easy to
503                     access uploading functions functions etc from
504                     other modes than nxhtml-mode since the
505                     <em>nXhtml</em> may also be shown in them.
506                   </li>
507                   <li>
508                     The nXhtml menu can be turned on globally by default.
509                     Customize nxhtml-menu-mode for that.
510                   </li>
511                 </ul>
512               </li>
513             </ul>
514           </dd>
515           <dt>1.00</dt>
516           <dd id="v1.00">
517             <ul>
518               <li>
519                 Reached version number 1.00 - which you maybe believe
520                 means the bugs should be gone? Sorry, it is just that
521                 I ran out of version numbers ;-) However it looks like
522                 much fewer bugs at least.
523               </li>
524               <li>
525                 Fixed problems mostly related to global turn on of different features in nXhtml.
526               </li>
527               <li>
528                 Small fixes to indentation.
529                 <ul>
530                   <li>
531                     nxhtml-mode could get confused by php tags.
532                   </li>
533                   <li>
534                     nxhtml-mode did not indent &lt;!DOCTYPE in a sensible way.
535                   </li>
536                   <li>
537                     Electric keys now works in embedded php when using mumamo-mode.
538                   </li>
539                 </ul>
540               </li>
541               <li>
542                 Tidy was very misbehaving since the output buffer was
543                 not erased between different files. But I have got no
544                 bug reports on this ;-)
545               </li>
546               <li>
547                 Fixed a bug in validation that should up when using muamo-mode.
548               </li>
549               <li>
550                 Fixed bug in &lt;script ...> and &lt;style ...> chunk dividing.
551               </li>
552               <li>
553                 Added support for OpenLaszlo.
554               </li>
555               <li>
556                 Corrections to mlinks-mode (visible mostly as links in
557                 XHTML buffers):
558                 <ul>
559                   <li>
560                     Links disappeared when a new file was
561                     opened. Corrected.
562                   </li>
563                   <li>
564                     Links were not correctly updated at changes in the
565                     buffer when mumamo-mode was used. Fixed.
566                   </li>
567                 </ul>
568               </li>
569               <li>
570                 The welcome message for nXhtml could be shown too
571                 early sometimes when loading, before nXhtml actually
572                 knew if it should be shown or not. Tried to fix it.
573               </li>
574             </ul>
575           </dd>
576           <dt>1.01</dt>
577           <dd id="v1.01">
578             <ul>
579               <li>
580                 Reported wrong version number for nXhtml in the menus. Fixed.
581               </li>
582               <li>
583                 <em>If you use the zip file to install nXhtml please
584                 notice that it has now a top level nxml.</em> Sorry for not
585                 having zipped it like that before!
586               </li>
587               <li>
588                 The url links in <em>Welcome to nXhtml</em> was a bit
589                 incorrect and did not work on all OS:es. Fixed.
590               </li>
591               <li>
592                 Added customization of popup completion to the 'nxhtml
593                 customization group so they are easier to find.
594               </li>
595               <li>
596                 MuMaMo
597                 <ul>
598                   <li>
599                     Struggled a bit with the load sequences of the elisp
600                     libraries used by nXhtml when using MuMaMo.
601                   </li>
602                   <li>
603                     Tried to get the global turn on of mumam-mode to work
604                     in all cases.
605                   </li>
606                   <li>
607                     The screen was blinking when changing overlays after
608                     changes in the buffer. Tried to fix this.
609                   </li>
610                   <li>
611                     Minor fixes do syntax highlighting, like taking care of single ':s.
612                   </li>
613                   <li>
614                     Fixes to the support for JSP and eRuby.
615                   </li>
616                   <li>
617                     Made the support for perl here documents a bit better.
618                     Large perl documents are however still quite slow when
619                     using mumamo-mode.  I do not know the reason yet.
620                   </li>
621                   <li>
622                     Refontification could miss some parts when buffer
623                     changes caused chunk division changes. Complex,
624                     tried to fix it, but I am a bit unsure that it
625                     always works.
626                   </li>
627                   <li>
628                     Cleaned up mumamo.el a bit.
629                   </li>
630                   <li>
631                     Rewrote mumamo-test.el and functions called from it in
632                     mumamo.el a bit to make tracebacks from errors more
633                     useful. Changed keybindings in mumamo-test.el from
634                     global to a minor mode <em>mumamo-test-mode</em>.
635                     Renamed mumamo-notest.el to mumamo-test.el.  Added it
636                     to the zipped distribution of nXhtml.
637                   </li>
638                 </ul>
639               </li>
640               <li>
641                 Fixed a bug related to links and buffer changes.
642               </li>
643             </ul>
644           </dd>
645           <dt>1.02</dt>
646           <dd id="v1.02">
647             <ul>
648               <li>
649                 Fixed a refontification bug that occured after changes.
650               </li>
651             </ul>
652           </dd>
653           <dt>1.03</dt>
654           <dd id="v1.03">
655             <ul>
656               <li>
657                 Added the possibility to call GIMP.
658               </li>
659               <li>
660                 Reworked the messages for fontification errors to try
661                 to catch an error that shows up sometimes.  Tried to
662                 avoid disturbing normal use in spite of that error.
663               </li>
664               <li>
665                 Reverted to using a short delay before switching major
666                 mode when moving between buffers.
667               </li>
668             </ul>
669           </dd>
670           <dt>1.04</dt>
671           <dd id="v1.04">
672             <ul>
673               <li>
674                 Completion in empty buffers with a completion header
675                 did not work. Fixed.
676               </li>
677               <li>
678                 Multiple major modes:
679                 <ul>
680                   <li>
681                     Better error tracing for some functions.
682                   </li>
683                   <li>
684                     Position was garbled when a ;-char was inserted in php-mode chunk. Fixed.
685                   </li>
686                 </ul>
687               </li>
688               <li>
689                 Extra XHTML Validation Header:
690                 <ul>
691                   <li>
692                     View File did not work correctly when an extra
693                     XHTML validation header was used. Corrected.
694                   </li>
695                   <li>
696                     Extra XHTML validation headers are no longer
697                     turned on by default in any buffers.
698                   </li>
699                 </ul>
700               </li>
701               <li>
702                 Tried to fix a problem when using newline-and-indent.
703                 When this was in a mode derived from C the indentation
704                 sometimes became 0.
705               </li>
706               <li>
707                 Added a workaround for <a
708                 href="#php-attribute-values">Attribute values computed
709                 by PHP</a>
710               </li>
711               <li>
712                 Ruby
713                 <ul>
714                   <li>
715                     Multiple major mode turned on by default for .rhtml files when this mode is global.
716                   </li>
717                   <li>
718                     Multiple major mode is no longer turned on when rub-mode is turned on.
719                   </li>
720                 </ul>
721               </li>
722               <li>
723                 Added .nosearch to subdirectories with no elisp files.
724               </li>
725               <li>
726                 Added support for Firefox add-on It's All Text.
727               </li>
728               <li>
729                 Added the possibility to easily view the output of scripts on the server (if they require no parameters).
730                 You can now do that from the nXhtml menu.
731                 Previously only html files on the server could be viewed that way.
732                 Image files can also be viewed this way.
733               </li>
734               <li>
735                 Upgraded htmlize.el to version 1.34
736               </li>
737               <li>
738                 Added functions for unfilling.
739               </li>
740               <li>
741                 Added keybindings and menu entries for longlines-mode, fill-paragraph and unfill-paragraph.
742               </li>
743               <li>
744                 Added image-mode to those that are encompassed by
745                 nxhtml-global-minor-mode so that images can be
746                 uploaded more easily.
747               </li>
748               <li>
749                 Added <em>edit with GIMP</em> and <em>upload</em> to the popup menu for links.
750                 This avoids the need to load the linked files in Emacs first.
751               </li>
752               <li>
753                 Fixed incorrect checks for mlinks-mode in menu building.
754               </li>
755             </ul>
756           </dd>
757         </dl>
758       </div>
759     </div>
760
761     <hr class="footer"/>
762     <p class="footer">
763       Copyright &copy; 2007 OurComments.org
764       --
765       Latest update 2007-05-06
766     </p>
767   </body>
768 </html>