Function: c-backward-conditional
c-backward-conditional is an interactive and byte-compiled function
defined in cc-cmds.el.gz.
Signature
(c-backward-conditional COUNT &optional TARGET-DEPTH WITH-ELSE)
Documentation
Move back across a preprocessor conditional, leaving mark behind.
A prefix argument acts as a repeat COUNT. With a negative argument, move forward across a preprocessor conditional.
The optional arguments TARGET-DEPTH and WITH-ELSE are historical,
and have the same meanings as in c-scan-conditionals. If you
are calling c-forward-conditional from a program, you might want
to call c-scan-conditionals directly instead.
Probably introduced at or before Emacs version 19.20.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
(defun c-backward-conditional (count &optional target-depth with-else)
"Move back across a preprocessor conditional, leaving mark behind.
A prefix argument acts as a repeat COUNT. With a negative argument,
move forward across a preprocessor conditional.
The optional arguments TARGET-DEPTH and WITH-ELSE are historical,
and have the same meanings as in `c-scan-conditionals'. If you
are calling `c-forward-conditional' from a program, you might want
to call `c-scan-conditionals' directly instead."
(interactive "p")
(let ((new-point (c-scan-conditionals (- count) target-depth with-else)))
(push-mark)
(goto-char new-point))
(c-keep-region-active))