aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2010-03-25 16:32:39 -0400
committerChong Yidong2010-03-25 16:32:39 -0400
commitf67c5dd0dd1560f1272d692818aebf82ab6c26b1 (patch)
treec4dbbb9b5094e6bb71b7ecac2f5a424069095f2e /doc
parent0f72a391d3323bd30d39174ad7b037144234c3ff (diff)
downloademacs-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/ChangeLog3
-rw-r--r--doc/emacs/emacs.texi2
-rw-r--r--doc/emacs/text.texi58
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 @@
12010-03-25 Chong Yidong <cyd@stupidchicken.com> 12010-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
52010-03-24 Glenn Morris <rgm@gnu.org> 82010-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''
30commands, such as @TeX{} and La@TeX{} (@pxref{TeX Mode}); HTML, SGML, 34commands, such as @TeX{} and La@TeX{} (@pxref{TeX Mode}); HTML and
31and XML (@pxref{HTML Mode}); and Groff and Nroff (@pxref{Nroff Mode}). 35SGML (@pxref{HTML Mode}); XML (@pxref{Top, nXML Mode,,nxml-mode, nXML
32In addition, you can edit formatted text in WYSIWYG style (``what you 36Mode}); and Groff and Nroff (@pxref{Nroff Mode}). In addition, you
33see is what you get''), using Enriched mode (@pxref{Formatted Text}). 37can edit formatted text in WYSIWYG style (``what you see is what you
38get''), 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
1743Ref@TeX{}. @inforef{Top,, reftex}. 1748Ref@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
1758and commands for operating on tags. XML mode is actually identical to 1760commands for operating on tags. HTML mode is a slightly customized
1759SGML mode (to be precise, @code{xml-mode} is an alias for 1761variant of SGML mode.
1760@code{sgml-mode}), because XML is a strict subset of SGML. HTML mode
1761is 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
1765the variable @code{sgml-xml-mode} is non-@code{nil}, the tag insertion
1766commands described below always insert explicit closing tags as well.
1767When you visit a file, Emacs determines whether it is XML by examining
1768the 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
1859documents, 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
1860many existing XML schema, and uses them to provide completion of XML 1853that can recognize many existing XML schema and use them to provide
1861elements via @kbd{C-@key{RET}} or @kbd{M-@key{TAB}}, as well as 1854completion 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 1855as well as ``on-the-fly'' XML validation with error highlighting. It
1863Lock (@pxref{Font Lock}). It is described in its own manual. 1856is described in its own manual. @xref{Top, nXML Mode,,nxml-mode, nXML
1864@xref{Top, nXML Mode,,nxml-mode, nXML Mode}. 1857Mode}.
1858
1859@vindex sgml-xml-mode
1860 However, you can also use SGML mode to edit XML, since XML is a
1861strict subset of SGML. In XML, every opening tag must have an
1862explicit closing tag. When the variable @code{sgml-xml-mode} is
1863non-@code{nil}, the tag insertion commands described above always
1864insert explicit closing tags as well. When you visit a file in SGML
1865mode, Emacs determines whether it is XML by examining the file
1866contents, 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