Closed martinez closed 7 years ago
Sorry for not getting to this earlier. Do you have a sample case to show the problem? Could you turn this posted patch into a pull request?
In my version of Emacs, c-block-stmt-1-2-kwds
is defined as follows:
(c-lang-defconst c-block-stmt-1-2-kwds
"Statement keywords optionally followed by a paren sexp.
Keywords here should also be in `c-block-stmt-1-kwds'."
t nil
java '("try"))
So it looks like it already has a default value of nil
.
I'll close this as there's been near to no response for close to 2 years, but add a comment if this can still be reproduced.
The latest emacs versions introduce a new type of keyword which d-mode does not provide. As a result, the looking-at function receives nil and fails, inside a call to c-after-conditional. In the patch provided I define the keyword variable, with seems to solve the problem.