]> git.eshelyaron.com Git - emacs.git/commit
In c-\(go-\)?-\(up-\|down-\)?list-\(forward\|backward\) check limit isn't nil
authorAlan Mackenzie <acm@muc.de>
Sat, 20 Aug 2016 14:12:06 +0000 (14:12 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 20 Aug 2016 14:12:06 +0000 (14:12 +0000)
commit43201d7117e303fd6d3b78af1490021af130d7c1
tree2f9a3888314eaef954fdf592521ee9315bc6a3f8
parenta4ba426d25bd6a5cbe11d81b82a789b8a2c948ed
In c-\(go-\)?-\(up-\|down-\)?list-\(forward\|backward\) check limit isn't nil

Check the limit both at macro expansion time (for a hard coded nil) and at run
time in the generated code.  Tidy up these macros generally.

* lisp/progmodes/cc-defs.el (c-safe-scan-lists): Check `limit' is present and
not identically nil before generating a narrow-to-region call.  Generate code
to check `limit' is not nil at run time.
(c-go-list-forward, c-go-list-backward): Remove the generation of redundant
narrow-to-region, instead calling c-safe-scan-lists directly.
(c-go-up-list-forward, c-go-up-list-backward, c-go-down-list-forward)
(c-go-down-list-backward): Invoke the corresponding macros without the "go-"
to determine the destination position instead of generating a redundant
narrow-to-region.
lisp/progmodes/cc-defs.el