From 10545bd83d3b5c7f6082d56a59449ff1eddae2ff Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Thu, 3 Jul 2008 12:25:23 +0000 Subject: Fix typos, and general docstring cleanup. * nxml/nxml-glyph.el (nxml-glyph-set-hook): * nxml/nxml-uchnm.el (nxml-unicode-blocks) (nxml-unicode-block-char-name-set): * nxml/nxml-util.el (nxml-debug, nxml-make-namespace): * nxml/rng-nxml.el (rng-set-state-after): * nxml/rng-uri.el (rng-file-name-uri): Fix typo in docstring. * nxml/rng-cmpct.el (rng-c-lookup-create, rng-c-parse-primary) (rng-c-parse-annotation-body): * nxml/rng-dt.el (rng-dt-namespace-context-getter): Reflow docstrings. * nxml/nxml-mode.el (nxml, nxml-mode, nxml-after-change1) (nxml-extend-region, nxml-merge-indent-context-type, nxml-complete) (nxml-forward-balanced-item, nxml-dynamic-markup-word) (nxml-define-char-name-set, nxml-toggle-char-ref-extra-display): Fix typos in docstrings. (nxml-attribute-indent): Reflow docstring. (nxml-bind-meta-tab-to-complete-flag, nxml-last-fontify-end) (nxml-default-buffer-file-coding-system): Doc fixes. * nxml/nxml-ns.el (nxml-ns-state, nxml-ns-initial-state) (nxml-ns-set-prefix): Fix typos in docstrings. (nxml-ns-push-state, nxml-ns-pop-state, nxml-ns-set-default): Reflow docstring. (nxml-ns-get-prefix, nxml-ns-get-default): Doc fixes. * nxml/nxml-outln.el (nxml-hide-all-text-content) (nxml-show-direct-text-content, nxml-show-direct-subheadings) (nxml-hide-direct-text-content, nxml-hide-subheadings) (nxml-hide-text-content, nxml-show-subheadings, nxml-hide-other) (nxml-outline-display-rest, nxml-outline-set-overlay) (nxml-section-tag-forward, nxml-section-tag-backward) (nxml-back-to-section-start): Fix typos in docstrings. * nxml/nxml-parse.el (nxml-validate-function, nxml-parse-file): Doc fixes. * nxml/nxml-rap.el (nxml-scan-end, nxml-move-tag-backwards) (nxml-scan-element-forward, nxml-scan-element-backward): Doc fixes. (nxml-scan-after-change): Fix typo in docstring. * nxml/rng-match.el (rng-being-compiled, rng-normalize-choice-list) (rng-name-class-possible-names): Doc fixes. (rng-memo-map-add, rng-intern-group, rng-match-possible-namespace-uris) (rng-match-possible-start-tag-names, rng-match-possible-value-strings): Fix typos in docstrings. (rng-intern-group-shortcut, rng-intern-choice-shortcut): Reflow docstrings. * nxml/rng-util.el (rng-uniquify-eq, rng-uniquify-equal): Doc fixes. (rng-substq, rng-complete-before-point): Fix typos in docstrings. * nxml/rng-xsd.el (rng-xsd-make-date-time-regexp) (rng-xsd-convert-date-time): Reflow docstrings. (rng-xsd-compile): Fix typo in docstring. * nxml/rng-loc.el (rng-current-schema-file-name) (rng-locate-schema-file-using, rng-locate-schema-file-from-type-id): Doc fixes. (rng-set-schema-file): Fix typo in docstring. * nxml/rng-valid.el (rng-error-count, rng-validate-mode) (rng-do-some-validation, rng-process-start-tag, rng-process-text): Fix typos in docstrings. (rng-message-overlay, rng-conditional-up-to-date-start) (rng-conditional-up-to-date-end): Doc fixes. (rng-next-error, rng-previous-error): Reflow docstrings. * nxml/xmltok.el (xmltok-attribute-raw-normalized-value): Doc fix. (xmltok-dtd, xmltok-dependent-regions, xmltok-attribute-refs) (xmltok-valid-char-p, xmltok-standalone, xmltok-forward-prolog) (xmltok-merge-attributes): Fix typos in docstrings. (xmltok-make-attribute, xmltok-forward-special) (xmltok-get-declared-encoding-position): Reflow docstrings. * nxml/xsd-regexp.el (xsdre-char-class-to-range-list): Doc fix. (xsdre-range-list-union, xsdre-check-range-list, xsdre-current-regexp): Fix typos in docstrings. --- lisp/nxml/nxml-mode.el | 94 +++++++++++++++++++++++++------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) (limited to 'lisp/nxml/nxml-mode.el') diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index e4fa008f9aa..49dcaecaab5 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -44,7 +44,7 @@ ;;; Customization (defgroup nxml nil - "New XML editing mode" + "New XML editing mode." :group 'languages :group 'wp) @@ -86,9 +86,9 @@ nothing else other than that start-tag." (defcustom nxml-attribute-indent 4 "*Indentation for the attributes of an element relative to the start-tag. -This only applies when the first attribute of a tag starts a line. In other -cases, the first attribute on one line is indented the same as the first -attribute on the previous line." +This only applies when the first attribute of a tag starts a line. +In other cases, the first attribute on one line is indented the same +as the first attribute on the previous line." :group 'nxml :type 'integer) @@ -97,7 +97,7 @@ attribute on the previous line." C-return will be bound to `nxml-complete' in any case. M-TAB gets swallowed by many window systems/managers, and `documentation' will show M-TAB rather than C-return as the -binding `rng-complete' when both are bound. So it's better +binding for `nxml-complete' when both are bound. So it's better to bind M-TAB only when it will work." :group 'nxml :set (lambda (sym flag) @@ -125,7 +125,7 @@ and when the encoding declaration specifies `UTF-16'." (defcustom nxml-default-buffer-file-coding-system nil "*Default value for `buffer-file-coding-system' for a buffer for a new file. -Nil means use the default value of `buffer-file-coding-system' as normal. +A value of nil means use the default value of `buffer-file-coding-system' as normal. A buffer's `buffer-file-coding-system' affects what \\[nxml-insert-xml-declaration] inserts." :group 'nxml :type 'coding-system) @@ -263,7 +263,7 @@ This includes ths `x' in hex references." '((t (:inherit nxml-delimiter))) "Face used for the colon in attribute names." :group 'nxml-faces) - + (defface nxml-attribute-local-name '((t (:inherit font-lock-variable-name-face))) "Face used for the local name of attributes." @@ -339,7 +339,7 @@ The delimiters are ." :foreground "black" :weight - normal + normal :slant normal)) (t @@ -348,7 +348,7 @@ The delimiters are ." :foreground "black" :weight - normal + normal :slant normal))) "Face used for glyph for char references." @@ -363,7 +363,7 @@ See the function `xmltok-forward-prolog' for more information.") (defvar nxml-last-fontify-end nil "Position where fontification last ended. -Nil if the buffer changed since the last fontification.") +It is nil if the buffer changed since the last fontification.") (make-variable-buffer-local 'nxml-last-fontify-end) (defvar nxml-degraded nil @@ -416,7 +416,7 @@ reference.") (define-key map "\C-c\C-o" nxml-outline-prefix-map) (define-key map [S-mouse-2] 'nxml-mouse-hide-direct-text-content) (define-key map "/" 'nxml-electric-slash) - (define-key map [C-return] 'nxml-complete) + (define-key map [C-return] 'nxml-complete) (when nxml-bind-meta-tab-to-complete-flag (define-key map "\M-\t" 'nxml-complete)) map) @@ -439,7 +439,7 @@ reference.") \\[nxml-finish-element] finishes the current element by inserting an end-tag. C-c C-i closes a start-tag with `>' and then inserts a balancing end-tag -leaving point between the start-tag and end-tag. +leaving point between the start-tag and end-tag. \\[nxml-balanced-close-start-tag-block] is similar but for block rather than inline elements: the start-tag, point, and end-tag are all left on separate lines. If `nxml-slash-auto-complete-flag' is non-nil, then inserting a `") (setq nxml-dynamic-markup-prev-pos (point)))))))))) - + ;;; Character names @@ -2494,10 +2494,10 @@ and NAME is a string naming a character.") (defvar nxml-autoload-char-name-set-list nil "List of char namesets that can be autoloaded.") -(defun nxml-enable-char-name-set (nameset) +(defun nxml-enable-char-name-set (nameset) (put nameset 'nxml-char-name-set-enabled t)) -(defun nxml-disable-char-name-set (nameset) +(defun nxml-disable-char-name-set (nameset) (put nameset 'nxml-char-name-set-enabled nil)) (defun nxml-char-name-set-enabled-p (nameset) @@ -2512,9 +2512,9 @@ and NAME is a string naming a character.") (defun nxml-define-char-name-set (nameset alist) "Define a set of character names. NAMESET is a symbol identifying the set. -Alist is a list where each member has the form (NAME CODE), -where NAME is a string naming a character and code -is an integer giving the Unicode scalar value of the character." +ALIST is a list where each member has the form (NAME CODE), +where NAME is a string naming a character and code is an +integer giving the Unicode scalar value of the character." (when (get nameset 'nxml-char-name-set-defined) (error "Nameset `%s' already defined" nameset)) (let ((iter alist)) @@ -2573,7 +2573,7 @@ With a prefix argument, inserts the character directly." (error "Character %x is not supported by Emacs" code)) (format "&#x%X;" code)))))) - + (defun nxml-maybe-load-char-name-set (sym) (when (and (get sym 'nxml-char-name-set-enabled) (not (get sym 'nxml-char-name-set-defined)) @@ -2581,7 +2581,7 @@ With a prefix argument, inserts the character directly." (load (get sym 'nxml-char-name-set-file)))) (defun nxml-toggle-char-ref-extra-display (arg) - "*Toggle the display of extra information for character references." + "Toggle the display of extra information for character references." (interactive "P") (let ((new (if (null arg) (not nxml-char-ref-extra-display) @@ -2619,7 +2619,7 @@ With a prefix argument, inserts the character directly." (defun nxml-start-delimiter-length (type) (or (get type 'nxml-start-delimiter-length) 0)) - + (put 'cdata-section 'nxml-start-delimiter-length 9) (put 'comment 'nxml-start-delimiter-length 4) (put 'processing-instruction 'nxml-start-delimiter-length 2) @@ -2632,7 +2632,7 @@ With a prefix argument, inserts the character directly." (defun nxml-end-delimiter-length (type) (or (get type 'nxml-end-delimiter-length) 0)) - + (put 'cdata-section 'nxml-end-delimiter-length 3) (put 'comment 'nxml-end-delimiter-length 3) (put 'processing-instruction 'nxml-end-delimiter-length 2) -- cgit v1.2.3