diff options
| author | Stephen Leake | 2010-01-21 13:25:54 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2010-01-21 13:25:54 +0100 |
| commit | afb5d709049eb40291fa0126d48efca2f7061a10 (patch) | |
| tree | 3d0266a962425f153ee42b20fca8b94913f695ba | |
| parent | 994ff697713e64393cb483a336d9e6c7428bb33b (diff) | |
| download | emacs-afb5d709049eb40291fa0126d48efca2f7061a10.tar.gz emacs-afb5d709049eb40291fa0126d48efca2f7061a10.zip | |
Fix bug#5435.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3d99f723a31..4a453c58759 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-21 Stephen Leake <stephen_leake@member.fsf.org> | ||
| 2 | |||
| 3 | * progmodes/ada-mode.el (ada-in-paramlist-p): Pragma syntax | ||
| 4 | is the same as subprogram call, not declaration. (Bug#5435). | ||
| 5 | |||
| 1 | 2010-01-20 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-01-20 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * term.el (term-send-raw-meta): Revert 2009-12-04 change (Bug#5330). | 8 | * term.el (term-send-raw-meta): Revert 2009-12-04 change (Bug#5330). |
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index 3694de23f88..6e7af70a683 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -4163,7 +4163,8 @@ Return nil if the private is part of the package name, as in | |||
| 4163 | 4163 | ||
| 4164 | 4164 | ||
| 4165 | (defun ada-in-paramlist-p () | 4165 | (defun ada-in-paramlist-p () |
| 4166 | "Return t if point is inside a parameter-list." | 4166 | "Return t if point is inside the parameter-list of a declaration, |
| 4167 | but not a subprogram call or aggregate." | ||
| 4167 | (save-excursion | 4168 | (save-excursion |
| 4168 | (and | 4169 | (and |
| 4169 | (ada-search-ignore-string-comment "(\\|)" t nil t) | 4170 | (ada-search-ignore-string-comment "(\\|)" t nil t) |
| @@ -4194,13 +4195,13 @@ Return nil if the private is part of the package name, as in | |||
| 4194 | 4195 | ||
| 4195 | ;; right keyword two words before parenthesis ? | 4196 | ;; right keyword two words before parenthesis ? |
| 4196 | ;; Type is in this list because of discriminants | 4197 | ;; Type is in this list because of discriminants |
| 4198 | ;; pragma is not, because the syntax is that of a subprogram call. | ||
| 4197 | (looking-at (eval-when-compile | 4199 | (looking-at (eval-when-compile |
| 4198 | (concat "\\<\\(" | 4200 | (concat "\\<\\(" |
| 4199 | "procedure\\|function\\|body\\|" | 4201 | "procedure\\|function\\|body\\|" |
| 4200 | "task\\|entry\\|accept\\|" | 4202 | "task\\|entry\\|accept\\|" |
| 4201 | "access[ \t]+procedure\\|" | 4203 | "access[ \t]+procedure\\|" |
| 4202 | "access[ \t]+function\\|" | 4204 | "access[ \t]+function\\|" |
| 4203 | "pragma\\|" | ||
| 4204 | "type\\)\\>")))))) | 4205 | "type\\)\\>")))))) |
| 4205 | 4206 | ||
| 4206 | (defun ada-search-ignore-complex-boolean (regexp backwardp) | 4207 | (defun ada-search-ignore-complex-boolean (regexp backwardp) |