aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2006-11-12 17:13:54 +0000
committerJuanma Barranquero2006-11-12 17:13:54 +0000
commit1d424b5859841d55ba95a8e3687ee675c1e6eb60 (patch)
tree577b6956ffb21813a0960a62c082e9ef713a665c
parent0262d5e1f4a666d2eab5836b4c3572516079839c (diff)
downloademacs-1d424b5859841d55ba95a8e3687ee675c1e6eb60.tar.gz
emacs-1d424b5859841d55ba95a8e3687ee675c1e6eb60.zip
(ada-83-string-keywords, ada-95-string-keywords, ada-2005-string-keywords):
Restore `eval-when-compile'. It wasn't that unneeded after all.
-rw-r--r--lisp/ChangeLog46
-rw-r--r--lisp/progmodes/ada-mode.el35
2 files changed, 64 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f5e35060499..26dc12899b9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,49 @@
12006-11-12 Stephen Leake <stephen_leake@stephe-leake.org>
2
3 * progmodes/ada-xref.el (ada-prj-default-check-cmd): New variable,
4 replacing deleted variable `ada-check-switch'.
5 (ada-project-file-extension): Rename to `ada-prj-file-extension'.
6 (ada-xref-project-files): Improve doc string.
7 (ada-find-executable): New function.
8 (ada-initialize-runtime-library): Use `ada-find-executable'.
9 (ada-xref-set-default-prj-values): In compile commands, don't need
10 `ada-cd-command'; `compile' does that more portably.
11 Use ada-prj-default-check-cmd.
12 (ada-parse-prj-file): Don't set 'debug_post_cmd, 'debug_pre_cmd
13 properties if not specified in project file.
14 (ada-goto-declaration): Display useful message for new error
15 'error-file-not-found.
16 (ada-get-ada-file-name, ada-find-in-src-path): Signal new error
17 'error-file-not-found.
18 (ada-get-all-references): Match latest ali syntax. Signal new
19 error 'error-file-not-found.
20 (ada-find-in-ali): Match latest ali syntax.
21 (ada-make-filename-from-adaname): Handle different semantics of
22 gnatkr in GNAT 3.15p vs later.
23
24 * progmodes/ada-stmt.el (ada-func-or-proc-name): Match changes to
25 ada-procedure-start-regexp.
26 (ada-or-accept, ada-or-delay, ada-or-terminate): Improve doc string.
27
28 * progmodes/ada-mode.el: Replace conditional (require 'ispell)
29 with defvar.
30 (ada-language-version): Rename ada05 -> ada2005.
31 (ada-align-region-separate): Add `eval-when-compile'.
32 (ada-name-regexp): Remove unneeded escapes in regexp character
33 alternative.
34 (ada-compile-goto-error-file-linenr-re): New constant.
35 (ada-matching-start-re): Handle additional cases `declare',
36 `procedure', `function'.
37 (ada-compile-goto-error): Handle "... at line nn".
38 (ada-mode): Clearer syntax, comments for ff-special-constructs.
39 Delete support for old versions of `align'.
40 (ada-search-prev-end-stmt): Handle additional keyword `private'.
41 (ada-check-defun-name): Simplify handling of `declare'.
42 (ada-goto-matching-start): Handle nested `begin ... end'. Handle
43 `declare', `protected', `procedure', `function'.
44 (ada-create-menu): Presence of arm95 is not conditional on using
45 GNAT compiler.
46
12006-11-12 Juanma Barranquero <lekktu@gmail.com> 472006-11-12 Juanma Barranquero <lekktu@gmail.com>
2 48
3 * emacs-lisp/re-builder.el (reb-mode): Set `blink-matching-paren' to 49 * emacs-lisp/re-builder.el (reb-mode): Set `blink-matching-paren' to
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index b47d167661b..2ca978b5c09 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -471,27 +471,28 @@ The extensions should include a `.' if needed.")
471(defvar ada-mode-symbol-syntax-table nil 471(defvar ada-mode-symbol-syntax-table nil
472 "Syntax table for Ada, where `_' is a word constituent.") 472 "Syntax table for Ada, where `_' is a word constituent.")
473 473
474(defconst ada-83-string-keywords 474(eval-when-compile
475 '("abort" "abs" "accept" "access" "all" "and" "array" "at" "begin" 475 (defconst ada-83-string-keywords
476 "body" "case" "constant" "declare" "delay" "delta" "digits" "do" 476 '("abort" "abs" "accept" "access" "all" "and" "array" "at" "begin"
477 "else" "elsif" "end" "entry" "exception" "exit" "for" "function" 477 "body" "case" "constant" "declare" "delay" "delta" "digits" "do"
478 "generic" "goto" "if" "in" "is" "limited" "loop" "mod" "new" 478 "else" "elsif" "end" "entry" "exception" "exit" "for" "function"
479 "not" "null" "of" "or" "others" "out" "package" "pragma" "private" 479 "generic" "goto" "if" "in" "is" "limited" "loop" "mod" "new"
480 "procedure" "raise" "range" "record" "rem" "renames" "return" 480 "not" "null" "of" "or" "others" "out" "package" "pragma" "private"
481 "reverse" "select" "separate" "subtype" "task" "terminate" "then" 481 "procedure" "raise" "range" "record" "rem" "renames" "return"
482 "type" "use" "when" "while" "with" "xor") 482 "reverse" "select" "separate" "subtype" "task" "terminate" "then"
483 "List of Ada 83 keywords. 483 "type" "use" "when" "while" "with" "xor")
484 "List of Ada 83 keywords.
484Used to define `ada-*-keywords'.") 485Used to define `ada-*-keywords'.")
485 486
486(defconst ada-95-string-keywords 487 (defconst ada-95-string-keywords
487 '("abstract" "aliased" "protected" "requeue" "tagged" "until") 488 '("abstract" "aliased" "protected" "requeue" "tagged" "until")
488 "List of keywords new in Ada 95. 489 "List of keywords new in Ada 95.
489Used to define `ada-*-keywords'.") 490Used to define `ada-*-keywords'.")
490 491
491(defconst ada-2005-string-keywords 492 (defconst ada-2005-string-keywords
492 '("interface" "overriding" "synchronized") 493 '("interface" "overriding" "synchronized")
493 "List of keywords new in Ada 2005. 494 "List of keywords new in Ada 2005.
494Used to define `ada-*-keywords.'") 495Used to define `ada-*-keywords.'"))
495 496
496(defvar ada-ret-binding nil 497(defvar ada-ret-binding nil
497 "Variable to save key binding of RET when casing is activated.") 498 "Variable to save key binding of RET when casing is activated.")