Function: c-up-conditional-with-else
c-up-conditional-with-else is an interactive and byte-compiled
function defined in cc-cmds.el.gz.
Signature
(c-up-conditional-with-else COUNT)
Documentation
Move back to the containing preprocessor conditional, including "#else".
Just like c-up-conditional, except it also stops at "#else"
directives.
Probably introduced at or before Emacs version 21.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
(defun c-up-conditional-with-else (count)
"Move back to the containing preprocessor conditional, including \"#else\".
Just like `c-up-conditional', except it also stops at \"#else\"
directives."
(interactive "p")
(let ((new-point (c-scan-conditionals (- count) -1 t)))
(push-mark)
(goto-char new-point))
(c-keep-region-active))