diff options
| author | Karl Heuer | 1999-06-12 04:33:08 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-06-12 04:33:08 +0000 |
| commit | 5d31462e65ca7645a7b94558e99a5f1d884b98cc (patch) | |
| tree | 2c0baa8294967c96e1989a23031bd78de179c526 | |
| parent | eb284ea1f373057ebcc78ceabcc35e80abccf548 (diff) | |
| download | emacs-5d31462e65ca7645a7b94558e99a5f1d884b98cc.tar.gz emacs-5d31462e65ca7645a7b94558e99a5f1d884b98cc.zip | |
(vhdl-port-copy): Fix parsing bug.
(vhdl-port-paste-generic-map): Fix indentation bug.
(vhdl-port-paste-port-map): Fix indentation bug.
(vhdl-scan-file-contents): Make scanning case insensitive.
| -rw-r--r-- | lisp/progmodes/vhdl-mode.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el index 70ec1345fea..309039f392b 100644 --- a/lisp/progmodes/vhdl-mode.el +++ b/lisp/progmodes/vhdl-mode.el | |||
| @@ -1024,8 +1024,6 @@ Otherwise, the speedbar is opened as normal file browser." | |||
| 1024 | (defcustom vhdl-speedbar-hierarchy-indent 1 | 1024 | (defcustom vhdl-speedbar-hierarchy-indent 1 |
| 1025 | "*Amount of indentation in hierarchy display of subcomponent." | 1025 | "*Amount of indentation in hierarchy display of subcomponent." |
| 1026 | :type 'integer | 1026 | :type 'integer |
| 1027 | :set (lambda (variable value) | ||
| 1028 | (vhdl-custom-set variable value 'speedbar-refresh)) | ||
| 1029 | :group 'vhdl-menu) | 1027 | :group 'vhdl-menu) |
| 1030 | 1028 | ||
| 1031 | (defcustom vhdl-index-menu nil | 1029 | (defcustom vhdl-index-menu nil |
| @@ -8358,7 +8356,7 @@ END is the point beyond which matching/searching should not go." | |||
| 8358 | (match-string 1)))) | 8356 | (match-string 1)))) |
| 8359 | (vhdl-forward-syntactic-ws) | 8357 | (vhdl-forward-syntactic-ws) |
| 8360 | (setq end-of-list (vhdl-parse-string ")" t)) | 8358 | (setq end-of-list (vhdl-parse-string ")" t)) |
| 8361 | (vhdl-parse-string ";\\s-*") | 8359 | (vhdl-parse-string "\\s-*;\\s-*") |
| 8362 | ;; parse inline comment | 8360 | ;; parse inline comment |
| 8363 | (unless comment | 8361 | (unless comment |
| 8364 | (setq comment (and (vhdl-parse-string "--\\s-*\\([^\n]*\\)" t) | 8362 | (setq comment (and (vhdl-parse-string "--\\s-*\\([^\n]*\\)" t) |
| @@ -8406,7 +8404,7 @@ END is the point beyond which matching/searching should not go." | |||
| 8406 | (setq type (substring type 0 (match-end 1))) | 8404 | (setq type (substring type 0 (match-end 1))) |
| 8407 | (vhdl-forward-syntactic-ws) | 8405 | (vhdl-forward-syntactic-ws) |
| 8408 | (setq end-of-list (vhdl-parse-string ")" t)) | 8406 | (setq end-of-list (vhdl-parse-string ")" t)) |
| 8409 | (vhdl-parse-string ";\\s-*") | 8407 | (vhdl-parse-string "\\s-*;\\s-*") |
| 8410 | ;; parse inline comment | 8408 | ;; parse inline comment |
| 8411 | (unless comment | 8409 | (unless comment |
| 8412 | (setq comment (and (vhdl-parse-string "--\\s-*\\([^\n]*\\)" t) | 8410 | (setq comment (and (vhdl-parse-string "--\\s-*\\([^\n]*\\)" t) |
| @@ -8565,7 +8563,7 @@ END is the point beyond which matching/searching should not go." | |||
| 8565 | (setq generics-list (cdr generics-list)) | 8563 | (setq generics-list (cdr generics-list)) |
| 8566 | (insert (if generics-list ", " ")"))) | 8564 | (insert (if generics-list ", " ")"))) |
| 8567 | (unless vhdl-argument-list-indent | 8565 | (unless vhdl-argument-list-indent |
| 8568 | (insert "\n") (indent-to (+ margin (* 2 vhdl-basic-offset)))) | 8566 | (insert "\n") (indent-to (+ margin vhdl-basic-offset))) |
| 8569 | (setq list-margin (current-column)) | 8567 | (setq list-margin (current-column)) |
| 8570 | (while generics-list | 8568 | (while generics-list |
| 8571 | (setq generic (car generics-list)) | 8569 | (setq generic (car generics-list)) |
| @@ -8600,7 +8598,7 @@ END is the point beyond which matching/searching should not go." | |||
| 8600 | (setq ports-list (cdr ports-list)) | 8598 | (setq ports-list (cdr ports-list)) |
| 8601 | (insert (if ports-list ", " ");"))) | 8599 | (insert (if ports-list ", " ");"))) |
| 8602 | (unless vhdl-argument-list-indent | 8600 | (unless vhdl-argument-list-indent |
| 8603 | (insert "\n") (indent-to (+ margin (* 2 vhdl-basic-offset)))) | 8601 | (insert "\n") (indent-to (+ margin vhdl-basic-offset))) |
| 8604 | (setq list-margin (current-column)) | 8602 | (setq list-margin (current-column)) |
| 8605 | (while ports-list | 8603 | (while ports-list |
| 8606 | (setq port (car ports-list)) | 8604 | (setq port (car ports-list)) |
| @@ -9700,6 +9698,7 @@ specified." | |||
| 9700 | (set-buffer (find-buffer-visiting file-name)) | 9698 | (set-buffer (find-buffer-visiting file-name)) |
| 9701 | (set-buffer (find-file-noselect file-name nil t)) | 9699 | (set-buffer (find-file-noselect file-name nil t)) |
| 9702 | (setq opened t)) | 9700 | (setq opened t)) |
| 9701 | (let ((case-fold-search t)) | ||
| 9703 | (modify-syntax-entry ?_ "w" (syntax-table)) | 9702 | (modify-syntax-entry ?_ "w" (syntax-table)) |
| 9704 | ;; scan for entities | 9703 | ;; scan for entities |
| 9705 | (goto-char (point-min)) | 9704 | (goto-char (point-min)) |
| @@ -9786,7 +9785,7 @@ specified." | |||
| 9786 | (setq file-list (cdr file-list)) | 9785 | (setq file-list (cdr file-list)) |
| 9787 | ;; add design units to variable `vhdl-file-alist' | 9786 | ;; add design units to variable `vhdl-file-alist' |
| 9788 | (aput 'vhdl-file-alist file-name | 9787 | (aput 'vhdl-file-alist file-name |
| 9789 | (list ent-list arch-list conf-list pack-list inst-list)) | 9788 | (list ent-list arch-list conf-list pack-list inst-list))) |
| 9790 | ;; close file | 9789 | ;; close file |
| 9791 | (if opened | 9790 | (if opened |
| 9792 | (kill-buffer (current-buffer)) | 9791 | (kill-buffer (current-buffer)) |
| @@ -10023,7 +10022,7 @@ entity ENT-NAME." | |||
| 10023 | (if (not (boundp 'speedbar-frame)) | 10022 | (if (not (boundp 'speedbar-frame)) |
| 10024 | (add-hook 'speedbar-load-hook 'vhdl-speedbar-initialize) | 10023 | (add-hook 'speedbar-load-hook 'vhdl-speedbar-initialize) |
| 10025 | (vhdl-speedbar-initialize) | 10024 | (vhdl-speedbar-initialize) |
| 10026 | (speedbar-refresh)) | 10025 | (when speedbar-frame (speedbar-refresh))) |
| 10027 | 10026 | ||
| 10028 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 10027 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 10029 | ;; Display functions | 10028 | ;; Display functions |