diff options
| author | Chong Yidong | 2010-03-25 16:32:39 -0400 |
|---|---|---|
| committer | Chong Yidong | 2010-03-25 16:32:39 -0400 |
| commit | f67c5dd0dd1560f1272d692818aebf82ab6c26b1 (patch) | |
| tree | c4dbbb9b5094e6bb71b7ecac2f5a424069095f2e /doc | |
| parent | 0f72a391d3323bd30d39174ad7b037144234c3ff (diff) | |
| download | emacs-f67c5dd0dd1560f1272d692818aebf82ab6c26b1.tar.gz emacs-f67c5dd0dd1560f1272d692818aebf82ab6c26b1.zip | |
Note in documentation that nXML is now the default XML mode.
* text.texi (HTML Mode): Note that nXML is now the default XML mode.
* emacs.texi: Update node description.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/emacs/emacs.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/text.texi | 58 |
3 files changed, 34 insertions, 29 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 821a318a783..a15efcea1a2 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-03-25 Chong Yidong <cyd@stupidchicken.com> | 1 | 2010-03-25 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * text.texi (HTML Mode): Note that nXML is now the default XML mode. | ||
| 4 | * emacs.texi: Update node description. | ||
| 5 | |||
| 3 | * misc.texi (Navigation): Document doc-view-continuous. | 6 | * misc.texi (Navigation): Document doc-view-continuous. |
| 4 | 7 | ||
| 5 | 2010-03-24 Glenn Morris <rgm@gnu.org> | 8 | 2010-03-24 Glenn Morris <rgm@gnu.org> |
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi index 18859f91c04..a21bf44ee40 100644 --- a/doc/emacs/emacs.texi +++ b/doc/emacs/emacs.texi | |||
| @@ -574,7 +574,7 @@ Commands for Human Languages | |||
| 574 | * Text Mode:: The major modes for editing text files. | 574 | * Text Mode:: The major modes for editing text files. |
| 575 | * Outline Mode:: Editing outlines. | 575 | * Outline Mode:: Editing outlines. |
| 576 | * TeX Mode:: Editing input to the formatter TeX. | 576 | * TeX Mode:: Editing input to the formatter TeX. |
| 577 | * HTML Mode:: Editing HTML, SGML, and XML files. | 577 | * HTML Mode:: Editing HTML and SGML files. |
| 578 | * Nroff Mode:: Editing input to the formatter nroff. | 578 | * Nroff Mode:: Editing input to the formatter nroff. |
| 579 | * Formatted Text:: Editing formatted text directly in WYSIWYG fashion. | 579 | * Formatted Text:: Editing formatted text directly in WYSIWYG fashion. |
| 580 | * Text Based Tables:: Editing text-based tables in WYSIWYG fashion. | 580 | * Text Based Tables:: Editing text-based tables in WYSIWYG fashion. |
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 7b4baec1131..e94770313cc 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -26,11 +26,16 @@ structure. | |||
| 26 | @xref{Outline Mode}. | 26 | @xref{Outline Mode}. |
| 27 | @end iftex | 27 | @end iftex |
| 28 | 28 | ||
| 29 | @cindex nXML mode | ||
| 30 | @cindex mode, XML | ||
| 31 | @cindex mode, nXML | ||
| 32 | @findex nxml-mode | ||
| 29 | Emacs has other major modes for text which contains ``embedded'' | 33 | Emacs has other major modes for text which contains ``embedded'' |
| 30 | commands, such as @TeX{} and La@TeX{} (@pxref{TeX Mode}); HTML, SGML, | 34 | commands, such as @TeX{} and La@TeX{} (@pxref{TeX Mode}); HTML and |
| 31 | and XML (@pxref{HTML Mode}); and Groff and Nroff (@pxref{Nroff Mode}). | 35 | SGML (@pxref{HTML Mode}); XML (@pxref{Top, nXML Mode,,nxml-mode, nXML |
| 32 | In addition, you can edit formatted text in WYSIWYG style (``what you | 36 | Mode}); and Groff and Nroff (@pxref{Nroff Mode}). In addition, you |
| 33 | see is what you get''), using Enriched mode (@pxref{Formatted Text}). | 37 | can edit formatted text in WYSIWYG style (``what you see is what you |
| 38 | get''), using Enriched mode (@pxref{Formatted Text}). | ||
| 34 | 39 | ||
| 35 | @cindex ASCII art | 40 | @cindex ASCII art |
| 36 | If you need to edit pictures made out of text characters (commonly | 41 | If you need to edit pictures made out of text characters (commonly |
| @@ -61,7 +66,7 @@ for editing such pictures. | |||
| 61 | * Text Mode:: The major modes for editing text files. | 66 | * Text Mode:: The major modes for editing text files. |
| 62 | * Outline Mode:: Editing outlines. | 67 | * Outline Mode:: Editing outlines. |
| 63 | * TeX Mode:: Editing input to the formatter TeX. | 68 | * TeX Mode:: Editing input to the formatter TeX. |
| 64 | * HTML Mode:: Editing HTML, SGML, and XML files. | 69 | * HTML Mode:: Editing HTML and SGML files. |
| 65 | * Nroff Mode:: Editing input to the formatter nroff. | 70 | * Nroff Mode:: Editing input to the formatter nroff. |
| 66 | * Formatted Text:: Editing formatted text directly in WYSIWYG fashion. | 71 | * Formatted Text:: Editing formatted text directly in WYSIWYG fashion. |
| 67 | * Text Based Tables:: Editing text-based tables in WYSIWYG fashion. | 72 | * Text Based Tables:: Editing text-based tables in WYSIWYG fashion. |
| @@ -1743,29 +1748,17 @@ required. This is set up for Czech---customize the group | |||
| 1743 | Ref@TeX{}. @inforef{Top,, reftex}. | 1748 | Ref@TeX{}. @inforef{Top,, reftex}. |
| 1744 | 1749 | ||
| 1745 | @node HTML Mode | 1750 | @node HTML Mode |
| 1746 | @section SGML, XML, and HTML Modes | 1751 | @section SGML and HTML Modes |
| 1747 | @cindex SGML mode | 1752 | @cindex SGML mode |
| 1748 | @cindex HTML mode | 1753 | @cindex HTML mode |
| 1749 | @cindex XML mode | ||
| 1750 | @cindex mode, SGML | 1754 | @cindex mode, SGML |
| 1751 | @cindex mode, HTML | 1755 | @cindex mode, HTML |
| 1752 | @cindex mode, XML | ||
| 1753 | @findex sgml-mode | 1756 | @findex sgml-mode |
| 1754 | @findex html-mode | 1757 | @findex html-mode |
| 1755 | @findex xml-mode | ||
| 1756 | 1758 | ||
| 1757 | The major modes for SGML, XML, and HTML provide indentation support | 1759 | The major modes for SGML and HTML provide indentation support and |
| 1758 | and commands for operating on tags. XML mode is actually identical to | 1760 | commands for operating on tags. HTML mode is a slightly customized |
| 1759 | SGML mode (to be precise, @code{xml-mode} is an alias for | 1761 | variant of SGML mode. |
| 1760 | @code{sgml-mode}), because XML is a strict subset of SGML. HTML mode | ||
| 1761 | is a slightly customized variant of SGML mode. | ||
| 1762 | |||
| 1763 | @vindex sgml-xml-mode | ||
| 1764 | In XML, every opening tag must have an explicit closing tag. When | ||
| 1765 | the variable @code{sgml-xml-mode} is non-@code{nil}, the tag insertion | ||
| 1766 | commands described below always insert explicit closing tags as well. | ||
| 1767 | When you visit a file, Emacs determines whether it is XML by examining | ||
| 1768 | the file contents, and sets @code{sgml-xml-mode} accordingly. | ||
| 1769 | 1762 | ||
| 1770 | @table @kbd | 1763 | @table @kbd |
| 1771 | @item C-c C-n | 1764 | @item C-c C-n |
| @@ -1855,13 +1848,22 @@ used as a cheap preview. | |||
| 1855 | @cindex mode, nXML | 1848 | @cindex mode, nXML |
| 1856 | @findex nxml-mode | 1849 | @findex nxml-mode |
| 1857 | @cindex XML schema | 1850 | @cindex XML schema |
| 1858 | Emacs also provides a more advanced mode for editing XML | 1851 | The default mode for editing XML documents is called nXML mode |
| 1859 | documents, called nXML mode (@code{nxml-mode}). nXML mode is aware of | 1852 | (@code{xml-mode} or @code{nxml-mode}). This is a powerful major mode |
| 1860 | many existing XML schema, and uses them to provide completion of XML | 1853 | that can recognize many existing XML schema and use them to provide |
| 1861 | elements via @kbd{C-@key{RET}} or @kbd{M-@key{TAB}}, as well as | 1854 | completion of XML elements via @kbd{C-@key{RET}} or @kbd{M-@key{TAB}}, |
| 1862 | ``on-the-fly'' validation of XML, with errors highlighted via Font | 1855 | as well as ``on-the-fly'' XML validation with error highlighting. It |
| 1863 | Lock (@pxref{Font Lock}). It is described in its own manual. | 1856 | is described in its own manual. @xref{Top, nXML Mode,,nxml-mode, nXML |
| 1864 | @xref{Top, nXML Mode,,nxml-mode, nXML Mode}. | 1857 | Mode}. |
| 1858 | |||
| 1859 | @vindex sgml-xml-mode | ||
| 1860 | However, you can also use SGML mode to edit XML, since XML is a | ||
| 1861 | strict subset of SGML. In XML, every opening tag must have an | ||
| 1862 | explicit closing tag. When the variable @code{sgml-xml-mode} is | ||
| 1863 | non-@code{nil}, the tag insertion commands described above always | ||
| 1864 | insert explicit closing tags as well. When you visit a file in SGML | ||
| 1865 | mode, Emacs determines whether it is XML by examining the file | ||
| 1866 | contents, and sets @code{sgml-xml-mode} accordingly. | ||
| 1865 | 1867 | ||
| 1866 | @node Nroff Mode | 1868 | @node Nroff Mode |
| 1867 | @section Nroff Mode | 1869 | @section Nroff Mode |