]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#5435.
authorStephen Leake <stephen_leake@member.fsf.org>
Thu, 21 Jan 2010 12:25:54 +0000 (13:25 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 21 Jan 2010 12:25:54 +0000 (13:25 +0100)
lisp/ChangeLog
lisp/progmodes/ada-mode.el

index 3d99f723a310e7f052e215c769b02a80b57bd0cb..4a453c5875975c841794aba8584f01f9b5b30034 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-21  Stephen Leake  <stephen_leake@member.fsf.org>
+
+        * progmodes/ada-mode.el (ada-in-paramlist-p): Pragma syntax
+       is the same as subprogram call, not declaration.  (Bug#5435).
+
 2010-01-20  Chong Yidong  <cyd@stupidchicken.com>
 
        * term.el (term-send-raw-meta): Revert 2009-12-04 change (Bug#5330).
index 3694de23f88af5b8643c0f8a65c70b8c956fe2f7..6e7af70a683884fdf88396998a2b6f929a6c17c5 100644 (file)
@@ -4163,7 +4163,8 @@ Return nil if the private is part of the package name, as in
 
 
 (defun ada-in-paramlist-p ()
-  "Return t if point is inside a parameter-list."
+  "Return t if point is inside the parameter-list of a declaration,
+but not a subprogram call or aggregate."
   (save-excursion
     (and
      (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
 
      ;; right keyword two words before parenthesis ?
      ;; Type is in this list because of discriminants
+     ;; pragma is not, because the syntax is that of a subprogram call.
      (looking-at (eval-when-compile
                   (concat "\\<\\("
                           "procedure\\|function\\|body\\|"
                           "task\\|entry\\|accept\\|"
                           "access[ \t]+procedure\\|"
                           "access[ \t]+function\\|"
-                          "pragma\\|"
                           "type\\)\\>"))))))
 
 (defun ada-search-ignore-complex-boolean (regexp backwardp)