diff options
| author | Juanma Barranquero | 2006-11-14 16:13:39 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-11-14 16:13:39 +0000 |
| commit | d4ee31d348048e7327c6542a814706f817f5bcac (patch) | |
| tree | 6df26be6a43724dfaa3907a071cf4c2fc99c7da8 | |
| parent | 71884b8d18e51852e312c41eb02634b2647e483c (diff) | |
| download | emacs-d4ee31d348048e7327c6542a814706f817f5bcac.tar.gz emacs-d4ee31d348048e7327c6542a814706f817f5bcac.zip | |
(ada-mode-version): Bump version.
(ada-create-keymap): Add \C-c\C-m 'ada-set-main-compile-application.
(ada-create-menu): Add ada-set-main-compile-application, ada-show-current-main,
ada-show-current-project.
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index 2ca978b5c09..8b9394ab086 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -149,7 +149,7 @@ If IS-XEMACS is non-nil, check for XEmacs instead of Emacs." | |||
| 149 | (defun ada-mode-version () | 149 | (defun ada-mode-version () |
| 150 | "Return Ada mode version." | 150 | "Return Ada mode version." |
| 151 | (interactive) | 151 | (interactive) |
| 152 | (let ((version-string "3.6w")) | 152 | (let ((version-string "3.7")) |
| 153 | (if (interactive-p) | 153 | (if (interactive-p) |
| 154 | (message version-string) | 154 | (message version-string) |
| 155 | version-string))) | 155 | version-string))) |
| @@ -472,6 +472,7 @@ The extensions should include a `.' if needed.") | |||
| 472 | "Syntax table for Ada, where `_' is a word constituent.") | 472 | "Syntax table for Ada, where `_' is a word constituent.") |
| 473 | 473 | ||
| 474 | (eval-when-compile | 474 | (eval-when-compile |
| 475 | ;; These values are used in eval-when-compile expressions. | ||
| 475 | (defconst ada-83-string-keywords | 476 | (defconst ada-83-string-keywords |
| 476 | '("abort" "abs" "accept" "access" "all" "and" "array" "at" "begin" | 477 | '("abort" "abs" "accept" "access" "all" "and" "array" "at" "begin" |
| 477 | "body" "case" "constant" "declare" "delay" "delta" "digits" "do" | 478 | "body" "case" "constant" "declare" "delay" "delta" "digits" "do" |
| @@ -1344,12 +1345,6 @@ If you use ada-xref.el: | |||
| 1344 | (setq local-abbrev-table ada-mode-abbrev-table) | 1345 | (setq local-abbrev-table ada-mode-abbrev-table) |
| 1345 | 1346 | ||
| 1346 | ;; Support for which-function mode | 1347 | ;; Support for which-function mode |
| 1347 | ;; which-function-mode does not work with nested subprograms, since it is | ||
| 1348 | ;; based only on the regexps generated by imenu, and thus can only detect the | ||
| 1349 | ;; beginning of subprograms, not the end. | ||
| 1350 | ;; Fix is: redefine a new function ada-which-function, and call it when the | ||
| 1351 | ;; major-mode is ada-mode. | ||
| 1352 | |||
| 1353 | (make-local-variable 'which-func-functions) | 1348 | (make-local-variable 'which-func-functions) |
| 1354 | (setq which-func-functions '(ada-which-function)) | 1349 | (setq which-func-functions '(ada-which-function)) |
| 1355 | 1350 | ||
| @@ -4622,6 +4617,7 @@ Moves to 'begin' if in a declarative part." | |||
| 4622 | (define-key ada-mode-map "\C-cc" 'ada-change-prj) | 4617 | (define-key ada-mode-map "\C-cc" 'ada-change-prj) |
| 4623 | (define-key ada-mode-map "\C-cd" 'ada-set-default-project-file) | 4618 | (define-key ada-mode-map "\C-cd" 'ada-set-default-project-file) |
| 4624 | (define-key ada-mode-map "\C-cg" 'ada-gdb-application) | 4619 | (define-key ada-mode-map "\C-cg" 'ada-gdb-application) |
| 4620 | (define-key ada-mode-map "\C-c\C-m" 'ada-set-main-compile-application) | ||
| 4625 | (define-key ada-mode-map "\C-cr" 'ada-run-application) | 4621 | (define-key ada-mode-map "\C-cr" 'ada-run-application) |
| 4626 | (define-key ada-mode-map "\C-c\C-o" 'ada-goto-parent) | 4622 | (define-key ada-mode-map "\C-c\C-o" 'ada-goto-parent) |
| 4627 | (define-key ada-mode-map "\C-c\C-r" 'ada-find-references) | 4623 | (define-key ada-mode-map "\C-c\C-r" 'ada-find-references) |
| @@ -4706,11 +4702,14 @@ Moves to 'begin' if in a declarative part." | |||
| 4706 | :included (fboundp 'customize-group)] | 4702 | :included (fboundp 'customize-group)] |
| 4707 | ["Check file" ada-check-current t] | 4703 | ["Check file" ada-check-current t] |
| 4708 | ["Compile file" ada-compile-current t] | 4704 | ["Compile file" ada-compile-current t] |
| 4705 | ["Set main and Build" ada-set-main-compile-application t] | ||
| 4706 | ["Show main" ada-show-current-main t] | ||
| 4709 | ["Build" ada-compile-application t] | 4707 | ["Build" ada-compile-application t] |
| 4710 | ["Run" ada-run-application t] | 4708 | ["Run" ada-run-application t] |
| 4711 | ["Debug" ada-gdb-application (eq ada-which-compiler 'gnat)] | 4709 | ["Debug" ada-gdb-application (eq ada-which-compiler 'gnat)] |
| 4712 | ["------" nil nil] | 4710 | ["------" nil nil] |
| 4713 | ("Project" | 4711 | ("Project" |
| 4712 | ["Show project" ada-show-current-project t] | ||
| 4714 | ["Load..." ada-set-default-project-file t] | 4713 | ["Load..." ada-set-default-project-file t] |
| 4715 | ["New..." ada-prj-new t] | 4714 | ["New..." ada-prj-new t] |
| 4716 | ["Edit..." ada-prj-edit t]) | 4715 | ["Edit..." ada-prj-edit t]) |
| @@ -5533,6 +5532,8 @@ This function typically is to be hooked into `ff-file-created-hooks'." | |||
| 5533 | (autoload 'ada-set-default-project-file "ada-xref" nil nil) | 5532 | (autoload 'ada-set-default-project-file "ada-xref" nil nil) |
| 5534 | (autoload 'ada-set-default-project-file "ada-xref" nil t) | 5533 | (autoload 'ada-set-default-project-file "ada-xref" nil t) |
| 5535 | (autoload 'ada-xref-goto-previous-reference "ada-xref" nil t) | 5534 | (autoload 'ada-xref-goto-previous-reference "ada-xref" nil t) |
| 5535 | (autoload 'ada-set-main-compile-application "ada-xref" nil t) | ||
| 5536 | (autoload 'ada-show-current-main "ada-xref" nil t) | ||
| 5536 | 5537 | ||
| 5537 | (autoload 'ada-customize "ada-prj" nil t) | 5538 | (autoload 'ada-customize "ada-prj" nil t) |
| 5538 | (autoload 'ada-prj-edit "ada-prj" nil t) | 5539 | (autoload 'ada-prj-edit "ada-prj" nil t) |