summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2016-09-01 18:06:22 +0000
committerAlan Mackenzie <acm@muc.de>2016-09-01 18:12:43 +0000
commitdda2d6a311fd2a7096176e240e4e81b423eaa8e2 (patch)
tree6c7f43e3058c8642f8c51a9ef1ad5d0f95207a75 /lisp/emacs-lisp/bytecomp.el
parent0c94b847082bf915137c4270b8009ad599681ccf (diff)
downloademacs-dda2d6a311fd2a7096176e240e4e81b423eaa8e2.tar.gz
emacs-dda2d6a311fd2a7096176e240e4e81b423eaa8e2.tar.bz2
emacs-dda2d6a311fd2a7096176e240e4e81b423eaa8e2.zip
Fix c-declaration-limits to return correct limits in all cases.
This function is the guts of c-indent-defun and c-mark-function. In particular, when c-defun-tactic is nil, return a correct value rather than always nil, and when it's 'go-outward, go through an intricate algorithm to determine the requisite narrowing before the "top-level" defuns go to work. * lisp/progmodes/cc-cmds.el (c-narrow-to-most-enclosing-decl-block): Enhance to take additional optional parameter LEVEL, saying how many enclosing levels of decl-block to narrow to. (c-declaration-limits): Introduce algorithm to determine narrowing. Use c-where-wrt-to-brace-block to determine whether to go back to BOD to determine lower bound.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
0 files changed, 0 insertions, 0 deletions