On 11 Sep 2013, at 12:24, Georg Bauhaus <[email protected]> wrote:

> when I noticed Emacs complaining about an invalid ^C
> while loading ada-mode's syntax table, it turned out
> that this helped:
> 
> @@ -188 +188 @@
> -    (define-key map ["\C-c" tab] 'ada-indent-region)
> +    (define-key map [?\C-c tab] 'ada-indent-region)
> 
> C-c TAB is now working as expected.
> 
> (The chord was not defined before the change; the string
> "^C   " would become CAR of a list after (3 keymap ...)
> of ada-mode-map, before the (return ...) list).

Here, TAB is bound to indent-for-tab-command, which indents the current line 
*or region* and uses wisi-indent-line - so why do we need more?

I ask because Georg's patch doesn't work for me; C-h k C-c TAB says "C-c TAB 
(translated from C-c <tab>) is undefined"

I also tried

     (define-key map [return]   'ada-indent-newline-indent)
-    (define-key map ["\C-c" tab] 'ada-indent-region)
+    (define-key map (kbd "C-c <tab>") 'ada-indent-region)
     (define-key map "\C-c`"    'ada-show-secondary-error)

… same result (but still suppresses the "invalid ^C").
_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to