diff options
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 42aabace4d2..cb2a3e2dfcc 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -6120,17 +6120,17 @@ stops due to beginning or end of buffer." | |||
| 6120 | (vhdl-keep-region-active) | 6120 | (vhdl-keep-region-active) |
| 6121 | foundp)) | 6121 | foundp)) |
| 6122 | 6122 | ||
| 6123 | (defun vhdl-beginning-of-statement (&optional count lim) | 6123 | (defun vhdl-beginning-of-statement (&optional count lim interactive) |
| 6124 | "Go to the beginning of the innermost VHDL statement. | 6124 | "Go to the beginning of the innermost VHDL statement. |
| 6125 | With prefix arg, go back N - 1 statements. If already at the | 6125 | With prefix arg, go back N - 1 statements. If already at the |
| 6126 | beginning of a statement then go to the beginning of the preceding | 6126 | beginning of a statement then go to the beginning of the preceding |
| 6127 | one. If within a string or comment, or next to a comment (only | 6127 | one. If within a string or comment, or next to a comment (only |
| 6128 | whitespace between), move by sentences instead of statements. | 6128 | whitespace between), move by sentences instead of statements. |
| 6129 | 6129 | ||
| 6130 | When called from a program, this function takes 2 optional args: the | 6130 | When called from a program, this function takes 3 optional args: the |
| 6131 | prefix arg, and a buffer position limit which is the farthest back to | 6131 | prefix arg, and a buffer position limit which is the farthest back to |
| 6132 | search." | 6132 | search, and something whose meaning I don't understand." |
| 6133 | (interactive "p") | 6133 | (interactive "p\np") |
| 6134 | (let ((count (or count 1)) | 6134 | (let ((count (or count 1)) |
| 6135 | (case-fold-search t) | 6135 | (case-fold-search t) |
| 6136 | (lim (or lim (point-min))) | 6136 | (lim (or lim (point-min))) |
| @@ -6139,7 +6139,7 @@ search." | |||
| 6139 | (save-excursion | 6139 | (save-excursion |
| 6140 | (goto-char lim) | 6140 | (goto-char lim) |
| 6141 | (setq state (parse-partial-sexp (point) here nil nil))) | 6141 | (setq state (parse-partial-sexp (point) here nil nil))) |
| 6142 | (if (and (interactive-p) | 6142 | (if (and interactive |
| 6143 | (or (nth 3 state) | 6143 | (or (nth 3 state) |
| 6144 | (nth 4 state) | 6144 | (nth 4 state) |
| 6145 | (looking-at (concat "[ \t]*" comment-start-skip)))) | 6145 | (looking-at (concat "[ \t]*" comment-start-skip)))) |
| @@ -7531,10 +7531,10 @@ buffer." | |||
| 7531 | 7531 | ||
| 7532 | (defun vhdl-fill-region (beg end &optional arg) | 7532 | (defun vhdl-fill-region (beg end &optional arg) |
| 7533 | "Fill lines for a region of code." | 7533 | "Fill lines for a region of code." |
| 7534 | (interactive "r") | 7534 | (interactive "r\np") |
| 7535 | (save-excursion | 7535 | (save-excursion |
| 7536 | (goto-char beg) | 7536 | (goto-char beg) |
| 7537 | (let ((margin (if (interactive-p) (current-indentation) (current-column)))) | 7537 | (let ((margin (if interactive (current-indentation) (current-column)))) |
| 7538 | (goto-char end) | 7538 | (goto-char end) |
| 7539 | (setq end (point-marker)) | 7539 | (setq end (point-marker)) |
| 7540 | ;; remove inline comments, newlines and whitespace | 7540 | ;; remove inline comments, newlines and whitespace |