summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/easy-mmode.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2016-08-20 14:12:06 +0000
committerAlan Mackenzie <acm@muc.de>2016-08-20 14:12:06 +0000
commit43201d7117e303fd6d3b78af1490021af130d7c1 (patch)
tree2f9a3888314eaef954fdf592521ee9315bc6a3f8 /lisp/emacs-lisp/easy-mmode.el
parenta4ba426d25bd6a5cbe11d81b82a789b8a2c948ed (diff)
downloademacs-43201d7117e303fd6d3b78af1490021af130d7c1.tar.gz
emacs-43201d7117e303fd6d3b78af1490021af130d7c1.tar.bz2
emacs-43201d7117e303fd6d3b78af1490021af130d7c1.zip
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.
Diffstat (limited to 'lisp/emacs-lisp/easy-mmode.el')
0 files changed, 0 insertions, 0 deletions