diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a1871e59677..83903e1e9e5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-23 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-23 Michael Albinus <michael.albinus@gmx.de> | 6 | 2010-01-23 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * net/tramp-smb.el (tramp-smb-conf): New defcustom. | 8 | * net/tramp-smb.el (tramp-smb-conf): New defcustom. |
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index 3694de23f88..a08e31e2016 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -257,7 +257,7 @@ Note that indentation is calculated only if `ada-indent-comment-as-code' is t. | |||
| 257 | 257 | ||
| 258 | For instance: | 258 | For instance: |
| 259 | A := 1; -- A multi-line comment | 259 | A := 1; -- A multi-line comment |
| 260 | -- aligned if ada-indent-align-comments is t" | 260 | -- aligned if `ada-indent-align-comments' is t" |
| 261 | :type 'boolean :group 'ada) | 261 | :type 'boolean :group 'ada) |
| 262 | 262 | ||
| 263 | (defcustom ada-indent-comment-as-code t | 263 | (defcustom ada-indent-comment-as-code t |
| @@ -4163,7 +4163,7 @@ 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, but not a subprogram call or aggregate." |
| 4167 | (save-excursion | 4167 | (save-excursion |
| 4168 | (and | 4168 | (and |
| 4169 | (ada-search-ignore-string-comment "(\\|)" t nil t) | 4169 | (ada-search-ignore-string-comment "(\\|)" t nil t) |
| @@ -4194,13 +4194,13 @@ Return nil if the private is part of the package name, as in | |||
| 4194 | 4194 | ||
| 4195 | ;; right keyword two words before parenthesis ? | 4195 | ;; right keyword two words before parenthesis ? |
| 4196 | ;; Type is in this list because of discriminants | 4196 | ;; Type is in this list because of discriminants |
| 4197 | ;; pragma is not, because the syntax is that of a subprogram call. | ||
| 4197 | (looking-at (eval-when-compile | 4198 | (looking-at (eval-when-compile |
| 4198 | (concat "\\<\\(" | 4199 | (concat "\\<\\(" |
| 4199 | "procedure\\|function\\|body\\|" | 4200 | "procedure\\|function\\|body\\|" |
| 4200 | "task\\|entry\\|accept\\|" | 4201 | "task\\|entry\\|accept\\|" |
| 4201 | "access[ \t]+procedure\\|" | 4202 | "access[ \t]+procedure\\|" |
| 4202 | "access[ \t]+function\\|" | 4203 | "access[ \t]+function\\|" |
| 4203 | "pragma\\|" | ||
| 4204 | "type\\)\\>")))))) | 4204 | "type\\)\\>")))))) |
| 4205 | 4205 | ||
| 4206 | (defun ada-search-ignore-complex-boolean (regexp backwardp) | 4206 | (defun ada-search-ignore-complex-boolean (regexp backwardp) |