aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Leake2010-01-23 13:42:22 +0100
committerJuanma Barranquero2010-01-23 13:42:22 +0100
commit5336c3ec747bcfca4edf97e962f06ec6f37b6936 (patch)
tree07a88738d3d9faa9d49885222081df03be040268
parent7709e61e9aa622663dfd13643580929307416c94 (diff)
parentb06a3bb5cf7893bb2f6c910334926d7cd551a18e (diff)
downloademacs-5336c3ec747bcfca4edf97e962f06ec6f37b6936.tar.gz
emacs-5336c3ec747bcfca4edf97e962f06ec6f37b6936.zip
Fix bug#5435: ada-mode; pragma parameter list indented incorrectly.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/ada-mode.el6
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 @@
12010-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
12010-01-23 Michael Albinus <michael.albinus@gmx.de> 62010-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
258For instance: 258For 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)