Simon Wright <[email protected]> writes: > On 4 Aug 2015, at 10:29, Stephen Leake <[email protected]> wrote: > >> Simon Wright <[email protected]> writes: >> >>> On 4 Aug 2015, at 09:00, Stephen Leake <[email protected]> >>> wrote: >>> >>>> "external_as_list" is in gpr-grammar.wy as a keyword. But it's not in >>>> gpr-font-lock-keywords (I just fixed that). So now it has the right >>>> face. >>>> >>>> It stays lowercase for me. >>> >>> I type “external” and the font is keyword-coloured. >>> >>> I type the “_" and get External_ >>> >>> I type the “as_" and get External_As_ >>> >>> I type the “list “ and get External_As_list >> >> Hmm. I think that means auto-case is not being invoked for space. >> >> With point immediately after "list", what does M-: (ada-case-adjust) >> do? > > I have it bound to eval-expression - I don’t have ada-case-adjust?
Yes, M-: is bound to eval-expression. It should prompt for an expression; then type _with the parens_: Eval: (ada-case-adjust) That will run ada-case-adjust. > If I upcase the whole, put point after the LIST, and M-x > ada-case-adust-at-point M-x is bound to 'execute-extended-command'; it can only call defuns with (interactive) in them. M-: can call any defun; I use it a lot for debugging. > I get EXTERNAL_AS_list - something is confused about how far back the > keyword extends! Yes, it seems so. It's probably in ada-keyword-p; with point in the same place, what does M-: (ada-keyword-p) give? >> What does C-h k <space> report? > > SPC runs the command ada-case-adjust-interactive, which is an > interactive Lisp closure in `ada-mode.el'. Ok, so you are running it, but it's not working. Are you familiar with using edebug? With point in ada-mode.el ada-case-adjust, type C-u M-C-x; that compiles ada-case-adjust with debugging info. Then when you run M-: (ada-case-adjust), it will step thru it. That should tell us what is going on. See (info "(elisp) Edebug") for more. -- -- Stephe _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
