changeset 73933:f047602e0a17

(ada-func-or-proc-name): Match changes to ada-procedure-start-regexp. (ada-or-accept, ada-or-delay, ada-or-terminate): Improve doc string.
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 12 Nov 2006 16:56:53 +0000
parents 242a56e8b2c0
children 0a6f264ee5b6
files lisp/progmodes/ada-stmt.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/ada-stmt.el	Sun Nov 12 16:55:38 2006 +0000
+++ b/lisp/progmodes/ada-stmt.el	Sun Nov 12 16:56:53 2006 +0000
@@ -67,7 +67,7 @@
   (save-excursion
     (let ((case-fold-search t))
       (if (re-search-backward ada-procedure-start-regexp nil t)
-	  (buffer-substring (match-beginning 3) (match-end 3))
+	  (match-string 5)
 	"NAME?"))))
 
 ;;; ---- statement skeletons ------------------------------------------
@@ -445,21 +445,21 @@
 
 
 (define-skeleton ada-or-accept
-  "Insert an or statement, prompting for the condition name."
+  "Insert an accept alternative, prompting for the condition name."
   ()
   < "or\n"
   (ada-accept))
 
 
 (define-skeleton ada-or-delay
-  "Insert a delay statement, prompting for the delay value."
+  "Insert a delay alternative, prompting for the delay value."
   "[delay value]: "
   < "or\n"
   > "delay " str ";")
 
 
 (define-skeleton ada-or-terminate
-  "Insert a terminate statement."
+  "Insert a terminate alternative."
   ()
   < "or\n"
   > "terminate;")