diff options
| author | Juanma Barranquero | 2007-01-29 16:56:46 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-01-29 16:56:46 +0000 |
| commit | a4c6cfad1ce2abe4c4bed2e43d054cdc5bd825b3 (patch) | |
| tree | 56b40be0a545568bdfd364acc1ea9308f06f8c13 | |
| parent | 84bb5a0c652ab8108b35ea6e67981924742bd6bf (diff) | |
| download | emacs-a4c6cfad1ce2abe4c4bed2e43d054cdc5bd825b3.tar.gz emacs-a4c6cfad1ce2abe4c4bed2e43d054cdc5bd825b3.zip | |
(vhdl-components-package-name, vhdl-get-library-unit, vhdl-corresponding-begin,
vhdl-skip-case-alternative, vhdl-backward-skip-label, vhdl-align-region-2,
vhdl-electric-dash, vhdl-case-word, vhdl-hooked-abbrev,
vhdl-hs-forward-sexp-func, vhdl-font-lock-match-item): Fix typos in docstrings.
(vhdl-get-library-unit, vhdl-get-block-state, vhdl-sort-alist, vhdl-set-offset,
vhdl-fix-case-region-1, vhdl-scan-directory-contents,
vhdl-speedbar-insert-project-hierarchy): Improve argument/docstring consistency.
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index dbd8e2b080d..2d7bbd79c6b 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -1147,7 +1147,7 @@ default setting as example)." | |||
| 1147 | (concat | 1147 | (concat |
| 1148 | "*Specifies how the name for the components package is obtained. | 1148 | "*Specifies how the name for the components package is obtained. |
| 1149 | The components package is a package containing all component declarations for | 1149 | The components package is a package containing all component declarations for |
| 1150 | the current design. It's name can be obtained by modifying the project name | 1150 | the current design. Its name can be obtained by modifying the project name |
| 1151 | \(e.g. attaching or stripping off a substring). If no project is defined, the | 1151 | \(e.g. attaching or stripping off a substring). If no project is defined, the |
| 1152 | DIRECTORY entry is chosen." | 1152 | DIRECTORY entry is chosen." |
| 1153 | vhdl-name-doc-string) | 1153 | vhdl-name-doc-string) |
| @@ -2434,7 +2434,7 @@ conversion." | |||
| 2434 | (insert-file-contents filename t))) | 2434 | (insert-file-contents filename t))) |
| 2435 | 2435 | ||
| 2436 | (defun vhdl-sort-alist (alist) | 2436 | (defun vhdl-sort-alist (alist) |
| 2437 | "Sort alist." | 2437 | "Sort ALIST." |
| 2438 | (sort alist (function (lambda (a b) (string< (car a) (car b)))))) | 2438 | (sort alist (function (lambda (a b) (string< (car a) (car b)))))) |
| 2439 | 2439 | ||
| 2440 | (defun vhdl-get-subdirs (directory) | 2440 | (defun vhdl-get-subdirs (directory) |
| @@ -5239,7 +5239,7 @@ Return a valid value only." | |||
| 5239 | (defun vhdl-set-offset (symbol offset &optional add-p) | 5239 | (defun vhdl-set-offset (symbol offset &optional add-p) |
| 5240 | "Change the value of a syntactic element symbol in `vhdl-offsets-alist'. | 5240 | "Change the value of a syntactic element symbol in `vhdl-offsets-alist'. |
| 5241 | SYMBOL is the syntactic element symbol to change and OFFSET is the new | 5241 | SYMBOL is the syntactic element symbol to change and OFFSET is the new |
| 5242 | offset for that syntactic element. Optional ADD says to add SYMBOL to | 5242 | offset for that syntactic element. Optional ADD-P says to add SYMBOL to |
| 5243 | `vhdl-offsets-alist' if it doesn't already appear there." | 5243 | `vhdl-offsets-alist' if it doesn't already appear there." |
| 5244 | (interactive | 5244 | (interactive |
| 5245 | (let* ((langelem | 5245 | (let* ((langelem |
| @@ -5765,7 +5765,7 @@ keyword." | |||
| 5765 | "If the word at the current position corresponds to an \"end\" | 5765 | "If the word at the current position corresponds to an \"end\" |
| 5766 | keyword, then return a vector containing enough information to find | 5766 | keyword, then return a vector containing enough information to find |
| 5767 | the corresponding \"begin\" keyword, else return nil. The keyword to | 5767 | the corresponding \"begin\" keyword, else return nil. The keyword to |
| 5768 | search backward for is aref 0. The column in which the keyword must | 5768 | search backward for is aref 0. The column in which the keyword must |
| 5769 | appear is aref 1 or nil if any column is suitable. The supplementary | 5769 | appear is aref 1 or nil if any column is suitable. The supplementary |
| 5770 | keyword to search forward for is aref 2 or nil if this is not | 5770 | keyword to search forward for is aref 2 or nil if this is not |
| 5771 | required. If aref 3 is t, then the \"begin\" keyword may be found in | 5771 | required. If aref 3 is t, then the \"begin\" keyword may be found in |
| @@ -6424,8 +6424,8 @@ statement if already at the beginning of one." | |||
| 6424 | ;; Defuns for calculating the current syntactic state: | 6424 | ;; Defuns for calculating the current syntactic state: |
| 6425 | 6425 | ||
| 6426 | (defun vhdl-get-library-unit (bod placeholder) | 6426 | (defun vhdl-get-library-unit (bod placeholder) |
| 6427 | "If there is an enclosing library unit at bod, with it's \"begin\" | 6427 | "If there is an enclosing library unit at BOD, with its \"begin\" |
| 6428 | keyword at placeholder, then return the library unit type." | 6428 | keyword at PLACEHOLDER, then return the library unit type." |
| 6429 | (let ((here (vhdl-point 'bol))) | 6429 | (let ((here (vhdl-point 'bol))) |
| 6430 | (if (save-excursion | 6430 | (if (save-excursion |
| 6431 | (goto-char placeholder) | 6431 | (goto-char placeholder) |
| @@ -6448,7 +6448,7 @@ keyword at placeholder, then return the library unit type." | |||
| 6448 | 6448 | ||
| 6449 | (defun vhdl-get-block-state (&optional lim) | 6449 | (defun vhdl-get-block-state (&optional lim) |
| 6450 | "Finds and records all the closest opens. | 6450 | "Finds and records all the closest opens. |
| 6451 | lim is the furthest back we need to search (it should be the | 6451 | LIM is the furthest back we need to search (it should be the |
| 6452 | previous libunit keyword)." | 6452 | previous libunit keyword)." |
| 6453 | (let ((here (point)) | 6453 | (let ((here (point)) |
| 6454 | (lim (or lim (point-min))) | 6454 | (lim (or lim (point-min))) |
| @@ -6514,8 +6514,8 @@ previous libunit keyword)." | |||
| 6514 | 6514 | ||
| 6515 | (defun vhdl-skip-case-alternative (&optional lim) | 6515 | (defun vhdl-skip-case-alternative (&optional lim) |
| 6516 | "Skip forward over case/when bodies, with optional maximal | 6516 | "Skip forward over case/when bodies, with optional maximal |
| 6517 | limit. If no next case alternative is found, nil is returned and point | 6517 | limit. If no next case alternative is found, nil is returned and |
| 6518 | is not moved." | 6518 | point is not moved." |
| 6519 | (let ((lim (or lim (point-max))) | 6519 | (let ((lim (or lim (point-max))) |
| 6520 | (here (point)) | 6520 | (here (point)) |
| 6521 | donep foundp) | 6521 | donep foundp) |
| @@ -6541,7 +6541,7 @@ is not moved." | |||
| 6541 | 6541 | ||
| 6542 | (defun vhdl-backward-skip-label (&optional lim) | 6542 | (defun vhdl-backward-skip-label (&optional lim) |
| 6543 | "Skip backward over a label, with optional maximal | 6543 | "Skip backward over a label, with optional maximal |
| 6544 | limit. If label is not found, nil is returned and point | 6544 | limit. If label is not found, nil is returned and point |
| 6545 | is not moved." | 6545 | is not moved." |
| 6546 | (let ((lim (or lim (point-min))) | 6546 | (let ((lim (or lim (point-min))) |
| 6547 | placeholder) | 6547 | placeholder) |
| @@ -7306,9 +7306,9 @@ indentation is done before aligning." | |||
| 7306 | 7306 | ||
| 7307 | (defun vhdl-align-region-2 (begin end match &optional substr spacing) | 7307 | (defun vhdl-align-region-2 (begin end match &optional substr spacing) |
| 7308 | "Align a range of lines from BEGIN to END. The regular expression | 7308 | "Align a range of lines from BEGIN to END. The regular expression |
| 7309 | MATCH must match exactly one fields: the whitespace to be | 7309 | MATCH must match exactly one field: the whitespace to be |
| 7310 | contracted/expanded. The alignment column will equal the | 7310 | contracted/expanded. The alignment column will equal the |
| 7311 | rightmost column of the widest whitespace block. SPACING is | 7311 | rightmost column of the widest whitespace block. SPACING is |
| 7312 | the amount of extra spaces to add to the calculated maximum required. | 7312 | the amount of extra spaces to add to the calculated maximum required. |
| 7313 | SPACING defaults to 1 so that at least one space is inserted after | 7313 | SPACING defaults to 1 so that at least one space is inserted after |
| 7314 | the token in MATCH." | 7314 | the token in MATCH." |
| @@ -8101,7 +8101,7 @@ Turn on if ARG positive, turn off if ARG negative, toggle if ARG zero or nil." | |||
| 8101 | 8101 | ||
| 8102 | (defun vhdl-electric-dash (count) | 8102 | (defun vhdl-electric-dash (count) |
| 8103 | "-- starts a comment, --- draws a horizontal line, | 8103 | "-- starts a comment, --- draws a horizontal line, |
| 8104 | ---- starts a display comment" | 8104 | ---- starts a display comment." |
| 8105 | (interactive "p") | 8105 | (interactive "p") |
| 8106 | (if (and vhdl-stutter-mode (not (vhdl-in-literal))) | 8106 | (if (and vhdl-stutter-mode (not (vhdl-in-literal))) |
| 8107 | (cond | 8107 | (cond |
| @@ -10448,7 +10448,7 @@ with double-quotes is to be inserted. DEFAULT specifies a default string." | |||
| 10448 | (if vhdl-upper-case-keywords (upcase keyword) (downcase keyword))) | 10448 | (if vhdl-upper-case-keywords (upcase keyword) (downcase keyword))) |
| 10449 | 10449 | ||
| 10450 | (defun vhdl-case-word (num) | 10450 | (defun vhdl-case-word (num) |
| 10451 | "Adjust case or following NUM words." | 10451 | "Adjust case of following NUM words." |
| 10452 | (if vhdl-upper-case-keywords (upcase-word num) (downcase-word num))) | 10452 | (if vhdl-upper-case-keywords (upcase-word num) (downcase-word num))) |
| 10453 | 10453 | ||
| 10454 | (defun vhdl-minibuffer-tab (&optional prefix-arg) | 10454 | (defun vhdl-minibuffer-tab (&optional prefix-arg) |
| @@ -10586,7 +10586,7 @@ else insert tab (used for word completion in VHDL minibuffer)." | |||
| 10586 | 10586 | ||
| 10587 | (defun vhdl-hooked-abbrev (func) | 10587 | (defun vhdl-hooked-abbrev (func) |
| 10588 | "Do function, if syntax says abbrev is a keyword, invoked by hooked abbrev, | 10588 | "Do function, if syntax says abbrev is a keyword, invoked by hooked abbrev, |
| 10589 | but not if inside a comment or quote)." | 10589 | but not if inside a comment or quote." |
| 10590 | (if (or (vhdl-in-literal) | 10590 | (if (or (vhdl-in-literal) |
| 10591 | (save-excursion | 10591 | (save-excursion |
| 10592 | (forward-word -1) | 10592 | (forward-word -1) |
| @@ -12083,8 +12083,8 @@ expressions (e.g. for index ranges of types and signals)." | |||
| 12083 | ;; Case fixing | 12083 | ;; Case fixing |
| 12084 | 12084 | ||
| 12085 | (defun vhdl-fix-case-region-1 (beg end upper-case word-regexp &optional count) | 12085 | (defun vhdl-fix-case-region-1 (beg end upper-case word-regexp &optional count) |
| 12086 | "Convert all words matching word-regexp in region to lower or upper case, | 12086 | "Convert all words matching WORD-REGEXP in region to lower or upper case, |
| 12087 | depending on parameter upper-case." | 12087 | depending on parameter UPPER-CASE." |
| 12088 | (let ((case-replace nil) | 12088 | (let ((case-replace nil) |
| 12089 | (last-update 0)) | 12089 | (last-update 0)) |
| 12090 | (vhdl-prepare-search-2 | 12090 | (vhdl-prepare-search-2 |
| @@ -12463,7 +12463,7 @@ File statistics: \"%s\"\n\ | |||
| 12463 | "Regexp to match start of construct to hide.") | 12463 | "Regexp to match start of construct to hide.") |
| 12464 | 12464 | ||
| 12465 | (defun vhdl-hs-forward-sexp-func (count) | 12465 | (defun vhdl-hs-forward-sexp-func (count) |
| 12466 | "Find end of construct to hide (for hideshow). Only searches forward." | 12466 | "Find end of construct to hide (for hideshow). Only searches forward." |
| 12467 | (let ((pos (point))) | 12467 | (let ((pos (point))) |
| 12468 | (vhdl-prepare-search-2 | 12468 | (vhdl-prepare-search-2 |
| 12469 | (beginning-of-line) | 12469 | (beginning-of-line) |
| @@ -12586,7 +12586,7 @@ File statistics: \"%s\"\n\ | |||
| 12586 | (goto-char end)))))) | 12586 | (goto-char end)))))) |
| 12587 | 12587 | ||
| 12588 | (defun vhdl-font-lock-match-item (limit) | 12588 | (defun vhdl-font-lock-match-item (limit) |
| 12589 | "Match, and move over, any declaration item after point. Adapted from | 12589 | "Match, and move over, any declaration item after point. Adapted from |
| 12590 | `font-lock-match-c-style-declaration-item-and-skip-to-next'." | 12590 | `font-lock-match-c-style-declaration-item-and-skip-to-next'." |
| 12591 | (condition-case nil | 12591 | (condition-case nil |
| 12592 | (save-restriction | 12592 | (save-restriction |
| @@ -13130,7 +13130,7 @@ hierarchy otherwise.") | |||
| 13130 | 13130 | ||
| 13131 | (defun vhdl-scan-directory-contents (name &optional project update num-string | 13131 | (defun vhdl-scan-directory-contents (name &optional project update num-string |
| 13132 | non-final) | 13132 | non-final) |
| 13133 | "Scan contents of VHDL files in directory or file pattern DIR-NAME." | 13133 | "Scan contents of VHDL files in directory or file pattern NAME." |
| 13134 | (string-match "\\(.*[/\\]\\)\\(.*\\)" name) | 13134 | (string-match "\\(.*[/\\]\\)\\(.*\\)" name) |
| 13135 | ; (unless (file-directory-p (match-string 1 name)) | 13135 | ; (unless (file-directory-p (match-string 1 name)) |
| 13136 | ; (message "No such directory: \"%s\"" (match-string 1 name))) | 13136 | ; (message "No such directory: \"%s\"" (match-string 1 name))) |
| @@ -14172,7 +14172,7 @@ if required." | |||
| 14172 | ) | 14172 | ) |
| 14173 | 14173 | ||
| 14174 | (defun vhdl-speedbar-insert-project-hierarchy (project indent &optional rescan) | 14174 | (defun vhdl-speedbar-insert-project-hierarchy (project indent &optional rescan) |
| 14175 | "Insert hierarchy of project. Rescan directories if RESCAN is non-nil, | 14175 | "Insert hierarchy of PROJECT. Rescan directories if RESCAN is non-nil, |
| 14176 | otherwise use cached data." | 14176 | otherwise use cached data." |
| 14177 | (when (or rescan (and (not (assoc project vhdl-file-alist)) | 14177 | (when (or rescan (and (not (assoc project vhdl-file-alist)) |
| 14178 | (not (vhdl-load-cache project)))) | 14178 | (not (vhdl-load-cache project)))) |