aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-04-01 12:45:37 +0300
committerEli Zaretskii2018-04-01 12:45:37 +0300
commitf759c5cfe4651af5f64fac2492fa362f8d383bd5 (patch)
tree19577f2308aa42dc05a052354334eca0a595d8d8
parent02e4b05c9d274e278581e811a4e935f922db402b (diff)
downloademacs-f759c5cfe4651af5f64fac2492fa362f8d383bd5.tar.gz
emacs-f759c5cfe4651af5f64fac2492fa362f8d383bd5.zip
Followup to last change
* etc/NEWS: Mark nxml-sexp-element-flag entry as not needing documentation updates. * lisp/nxml/nxml-mode.el (nxml-mode, nxml-forward-balanced-item): Doc fixes.
-rw-r--r--etc/NEWS3
-rw-r--r--lisp/nxml/nxml-mode.el32
2 files changed, 18 insertions, 17 deletions
diff --git a/etc/NEWS b/etc/NEWS
index b874bdf6f22..b3fee089fa9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -289,7 +289,8 @@ by default use the last buffer that navigated to the current buffer.
289 289
290** nxml-mode 290** nxml-mode
291 291
292*** Changed default for variable 'nxml-sexp-element-flag' to true. 292---
293*** The default value of 'nxml-sexp-element-flag' is now t.
293This means that pressing C-M-SPACE now selects the entire tree by 294This means that pressing C-M-SPACE now selects the entire tree by
294default, and not just the opening element. 295default, and not just the opening element.
295 296
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
index 554b5acfb20..a9298be4fb4 100644
--- a/lisp/nxml/nxml-mode.el
+++ b/lisp/nxml/nxml-mode.el
@@ -471,11 +471,10 @@ The Emacs commands that normally operate on balanced expressions will
471operate on XML markup items. Thus \\[forward-sexp] will move forward 471operate on XML markup items. Thus \\[forward-sexp] will move forward
472across one markup item; \\[backward-sexp] will move backward across 472across one markup item; \\[backward-sexp] will move backward across
473one markup item; \\[kill-sexp] will kill the following markup item; 473one markup item; \\[kill-sexp] will kill the following markup item;
474\\[mark-sexp] will mark the following markup item. By default, each 474\\[mark-sexp] will mark the following markup item. By default, the
475tag each treated as a single markup item; to make the complete element 475complete element is treated as a single markup item; to make each tag be
476be treated as a single markup item, set the variable 476treated as a separate markup item, set the variable `nxml-sexp-element-flag'
477`nxml-sexp-element-flag' to t. For more details, see the function 477to nil. For more details, see the function `nxml-forward-balanced-item'.
478`nxml-forward-balanced-item'.
479 478
480\\[nxml-backward-up-element] and \\[nxml-down-element] move up and down the element structure. 479\\[nxml-backward-up-element] and \\[nxml-down-element] move up and down the element structure.
481 480
@@ -1510,17 +1509,18 @@ With ARG, do it that many times. Negative arg -N means
1510move backward across N balanced expressions. 1509move backward across N balanced expressions.
1511This is the equivalent of `forward-sexp' for XML. 1510This is the equivalent of `forward-sexp' for XML.
1512 1511
1513An element contains as items strings with no markup, tags, processing 1512An element is by default treated as a single markup item.
1514instructions, comments, CDATA sections, entity references and 1513However, if the variable `nxml-sexp-element-flag' is nil, then an
1515characters references. However, if the variable 1514element contains as items strings with no markup, tags,
1516`nxml-sexp-element-flag' is non-nil, then an element is treated as a 1515processing instructions, comments, CDATA sections, entity
1517single markup item. A start-tag contains an element name followed by 1516references and character references. A start-tag contains an
1518one or more attributes. An end-tag contains just an element name. 1517element name followed by one or more attributes. An end-tag
1519An attribute value literals contains strings with no markup, entity 1518contains just an element name. An attribute value literals
1520references and character references. A processing instruction 1519contains strings with no markup, entity references and character
1521consists of a target and a content string. A comment or a CDATA 1520references. A processing instruction consists of a target and a
1522section contains a single string. An entity reference contains a 1521content string. A comment or a CDATA section contains a single
1523single name. A character reference contains a character number." 1522string. An entity reference contains a single name. A character
1523reference contains a character number."
1524 (interactive "^p") 1524 (interactive "^p")
1525 (or arg (setq arg 1)) 1525 (or arg (setq arg 1))
1526 (cond ((> arg 0) 1526 (cond ((> arg 0)