diff options
| author | Eli Zaretskii | 2018-04-01 12:45:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-04-01 12:45:37 +0300 |
| commit | f759c5cfe4651af5f64fac2492fa362f8d383bd5 (patch) | |
| tree | 19577f2308aa42dc05a052354334eca0a595d8d8 | |
| parent | 02e4b05c9d274e278581e811a4e935f922db402b (diff) | |
| download | emacs-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/NEWS | 3 | ||||
| -rw-r--r-- | lisp/nxml/nxml-mode.el | 32 |
2 files changed, 18 insertions, 17 deletions
| @@ -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. | ||
| 293 | This means that pressing C-M-SPACE now selects the entire tree by | 294 | This means that pressing C-M-SPACE now selects the entire tree by |
| 294 | default, and not just the opening element. | 295 | default, 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 | |||
| 471 | operate on XML markup items. Thus \\[forward-sexp] will move forward | 471 | operate on XML markup items. Thus \\[forward-sexp] will move forward |
| 472 | across one markup item; \\[backward-sexp] will move backward across | 472 | across one markup item; \\[backward-sexp] will move backward across |
| 473 | one markup item; \\[kill-sexp] will kill the following markup item; | 473 | one 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 |
| 475 | tag each treated as a single markup item; to make the complete element | 475 | complete element is treated as a single markup item; to make each tag be |
| 476 | be treated as a single markup item, set the variable | 476 | treated 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 | 477 | to 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 | |||
| 1510 | move backward across N balanced expressions. | 1509 | move backward across N balanced expressions. |
| 1511 | This is the equivalent of `forward-sexp' for XML. | 1510 | This is the equivalent of `forward-sexp' for XML. |
| 1512 | 1511 | ||
| 1513 | An element contains as items strings with no markup, tags, processing | 1512 | An element is by default treated as a single markup item. |
| 1514 | instructions, comments, CDATA sections, entity references and | 1513 | However, if the variable `nxml-sexp-element-flag' is nil, then an |
| 1515 | characters references. However, if the variable | 1514 | element contains as items strings with no markup, tags, |
| 1516 | `nxml-sexp-element-flag' is non-nil, then an element is treated as a | 1515 | processing instructions, comments, CDATA sections, entity |
| 1517 | single markup item. A start-tag contains an element name followed by | 1516 | references and character references. A start-tag contains an |
| 1518 | one or more attributes. An end-tag contains just an element name. | 1517 | element name followed by one or more attributes. An end-tag |
| 1519 | An attribute value literals contains strings with no markup, entity | 1518 | contains just an element name. An attribute value literals |
| 1520 | references and character references. A processing instruction | 1519 | contains strings with no markup, entity references and character |
| 1521 | consists of a target and a content string. A comment or a CDATA | 1520 | references. A processing instruction consists of a target and a |
| 1522 | section contains a single string. An entity reference contains a | 1521 | content string. A comment or a CDATA section contains a single |
| 1523 | single name. A character reference contains a character number." | 1522 | string. An entity reference contains a single name. A character |
| 1523 | reference 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) |