ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ada-mode-users] [Stephen Leake] Re: Keywords not being identified i


From: Ludovic Brenta
Subject: Re: [Ada-mode-users] [Stephen Leake] Re: Keywords not being identified in ada-mode 5.3.1 (or 5.2.2)
Date: Wed, 14 Nov 2018 14:21:16 +0100
User-agent: Roundcube Webmail/0.5.3

On Wed, 14 Nov 2018 12:51:16 +0000, Jonty Needham wrote:
regexp-opt("\\<\\(a\\(?:b\\(?:ort\\|s\\(?:tract\\)?\\)\\|cce\\(?:pt\\|ss\\)\\|l\\(?:iased\\|l\\)\\|nd\\|rray\\|t\\)\\|b\\(?:egin\\|ody\\)\\|c\\(?:ase\\|onstant\\)\\|d\\(?:e\\(?:clare\\|l\\(?:ay\\|ta\\)\\)\\|igits\\|o\\)\\|e\\(?:ls\\(?:e\\|if\\)\\|n\\(?:d\\|try\\)\\|x\\(?:ception\\|it\\)\\)\\|f\\(?:or\\|unction\\)\\|g\\(?:eneric\\|oto\\)\\|i[fns]\\|l\\(?:imited\\|oop\\)\\|mod\\|n\\(?:ew\\|ot\\|ull\\)\\|o\\(?:thers\\|ut\\|[fr]\\)\\|p\\(?:ackage\\|r\\(?:agma\\|ivate\\|o\\(?:cedure\\|tected\\)\\)\\)\\|r\\(?:a\\(?:\\(?:is\\|ng\\)e\\)\\|e\\(?:cord\\|m\\|names\\|queue\\|turn\\|verse\\)\\)\\|s\\(?:e\\(?:lect\\|parate\\)\\|ubtype\\)\\|t\\(?:a\\(?:gged\\|sk\\)\\|erminate\\|hen\\|ype\\)\\|u\\(?:ntil\\|se\\)\\|w\\(?:h\\(?:en\\|ile\\)\\|ith\\)\\|xor\\)\\>" t)
  (concat "\\<" (regexp-opt ada-keywords t) "\\>")
[rest elided]

It looks like the value of ada-keywords is not a sequence but the
result of a previous evaluation of regexp-opt.  The valud of
ada-keywords on my emacs is (C-h v ada-keywords):

ada-keywords is a variable defined in ‘ada-mode.el’.
Its value is
("abort" "abs" "accept" "access" "all" "and" "array" "at" "begin" "body" "case" "constant" "declare" "delay" "delta" "digits" "do" "else" "elsif" "end" "entry" "exception" "exit" "for" "function" "generic" "goto" "if" "in" "is" "limited" "loop" "mod" "new" "not" "null" "of" "or" "others" "out" "package" "pragma" "private" "procedure" "raise" "range" "record" "rem" "renames" "return" "reverse" "select" "separate" "subtype" "task" "terminate" "then" "type" "use" "when" "while" "with" "xor" "abstract" "aliased" "protected" "requeue" "tagged" "until" "interface" "overriding" "synchronized" "some")

If I now do M-: (regexp-opt ada-keywords t) I get the regexp
your stack trace says is the argument to regexp-opt.

I suspect interference between ada-mode 4 and ada-mode 5; you
should disable ada-mode 4 completely before you load ada-mode 5.

Hope this helps

--
Ludovic Brenta.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]