Hi,

with the latest ada-mode 5.1.9 I get a runtime error when indenting
package aspects.

Test and patch attached. Note that I do not know if my decision about
how to indent the package aspect is in line with the style promoted by
the ada-mode.

-- 
Piotr Trojanek
#
# old_revision [634122ee17275b302ff7dad2cd6061b9f1a3306c]
#
# patch "ada-wisi.el"
#  from [194d02ac19d86ae94f2a53fcc89e53115ddda8fa]
#    to [72e478ccae881b0ad9cde8270b3c3cfd59f76165]
#
============================================================
--- ada-wisi.el 194d02ac19d86ae94f2a53fcc89e53115ddda8fa
+++ ada-wisi.el 72e478ccae881b0ad9cde8270b3c3cfd59f76165
@@ -730,6 +730,14 @@ point must be on CACHE. PREV-TOKEN is th
                        (ada-wisi-indent-cache ada-indent-broken cache))
                       ))
 
+                    (package_specification
+                    ;; package P
+                    ;;   with SPARK_Mode => On
+                    ;; indenting 'with'
+                    (save-excursion
+                       (wisi-backward-token)
+                       (+ (current-column) ada-indent-broken)))
+
                    ((abstract_subprogram_declaration
                      expression_function_declaration
                      subprogram_body
package P
                      with SPARK_Mode => On --  indent
is
   Dummy : Integer;
end P;
_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to