summaryrefslogtreecommitdiff
path: root/lisp/org/ob-emacs-lisp.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2017-10-04 17:34:27 +0000
committerAlan Mackenzie <acm@muc.de>2017-10-04 17:34:27 +0000
commit4e0b67ed27114fa2cbebca32567089fd8fa78425 (patch)
tree278d6df6528d9ced3b602a43bae83052bbbf5f81 /lisp/org/ob-emacs-lisp.el
parent0b558b4acb8326c6f26fcde47ca85777716ae831 (diff)
downloademacs-4e0b67ed27114fa2cbebca32567089fd8fa78425.tar.gz
emacs-4e0b67ed27114fa2cbebca32567089fd8fa78425.tar.bz2
emacs-4e0b67ed27114fa2cbebca32567089fd8fa78425.zip
Fontify untyped function declarations in C Mode correctly.
Also correct two bugs where deleting WS at a BOL could leave an untyped function declaration unfontified. * lisp/progmodes/cc-engine.el (c-find-decl-spots): Don't set the flag "top-level" when we're in a macro. (c-forward-decl-or-cast-1): Recognize top-level "foo(bar)" or "foo()" in C Mode as a implicitly typed function declaration. (c-just-after-func-arglist-p): Don't get confused by "defined (foo)" inside a macro. It's not a function plus arglist. * lisp/progmodes/cc-langs.el (c-cpp-expr-functions-key): New defconst and defvar. * lisp/progmodes/cc-mode.el (c-fl-decl-end): After c-forward-declarator, move over any following parenthesis expression (i.e. parameter list). (c-change-expand-fl-region): When c-new-END is at a BOL, include that line in the returned region, to cope with deletions at column 0.
Diffstat (limited to 'lisp/org/ob-emacs-lisp.el')
0 files changed, 0 insertions, 0 deletions