Function: c-down-conditional
c-down-conditional is an interactive and byte-compiled function
defined in cc-cmds.el.gz.
Signature
(c-down-conditional COUNT)
Documentation
Move forward into the next preprocessor conditional, leaving mark behind.
A prefix argument acts as a repeat count. With a negative argument, move backward into the previous preprocessor conditional.
"#elif" is treated like "#else" followed by "#if", so the
function stops at them when going forward, but not when going
backward.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
(defun c-down-conditional (count)
"Move forward into the next preprocessor conditional, leaving mark behind.
A prefix argument acts as a repeat count. With a negative argument,
move backward into the previous preprocessor conditional.
\"#elif\" is treated like \"#else\" followed by \"#if\", so the
function stops at them when going forward, but not when going
backward."
(interactive "p")
(let ((new-point (c-scan-conditionals count 1)))
(push-mark)
(goto-char new-point))
(c-keep-region-active))