diff options
| author | Alan Mackenzie | 2016-09-01 18:06:22 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2016-09-01 18:12:43 +0000 |
| commit | dda2d6a311fd2a7096176e240e4e81b423eaa8e2 (patch) | |
| tree | 6c7f43e3058c8642f8c51a9ef1ad5d0f95207a75 /src | |
| parent | 0c94b847082bf915137c4270b8009ad599681ccf (diff) | |
| download | emacs-dda2d6a311fd2a7096176e240e4e81b423eaa8e2.tar.gz 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 'src')
0 files changed, 0 insertions, 0 deletions