Markus Schöpflin <[email protected]> writes:

When pressing the return key after typing an identifier, the case of
the identifier is not modified according to the current auto-casing
rules.

The problem is that ada-case-activate-keys rebinds C-M, but not <return>

Will be fixed in 5.0.2.

Meanwhile, here's a patch (against my current devel source, so the line
numbers are probably wrong for 5.0.1):

--- ada-mode.el 508e5817b15d11b1d5e299509652a2b72bbb9407
+++ ada-mode.el 7f1409d7d55fdc5396b60ef708d587c7c931da21
@@ -1103,7 +1103,7 @@ ARG is the prefix the user entered with
       (ada-case-adjust lastk)
       (funcall ada-lfd-binding))

-     ((eq lastk ?\r)
+     ((memq lastk '(?\r return))
       (ada-case-adjust lastk)
       (funcall ada-ret-binding))

@@ -1135,6 +1135,8 @@ ARG is the prefix the user entered with
               'ada-case-adjust-interactive)))
          '( ?_ ?% ?& ?* ?( ?) ?- ?= ?+
                ?| ?\; ?: ?' ?\" ?< ?, ?. ?> ?/ ?\n 32 ?\r ))
+
+  (define-key ada-mode-map [return] 'ada-case-adjust-interactive)
   )

 ;;;; project files

--
-- Stephe


_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to