Function: cmake-beginning-of-defun
cmake-beginning-of-defun is an interactive and natively compiled
function defined in cmake-mode.el.
Signature
(cmake-beginning-of-defun)
Documentation
Move backward to the beginning of a CMake function or macro.
Return t unless search stops due to beginning of buffer.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/xpmgnbrvz0j5ic5m3q6fvh28ca8a9avm-emacs-packages-deps/share/emacs/site-lisp/elpa/cmake-mode-20261002.1529/cmake-mode.el
(defun cmake-beginning-of-defun ()
"Move backward to the beginning of a CMake function or macro.
Return t unless search stops due to beginning of buffer."
(interactive)
(when (not (region-active-p))
(push-mark))
(let ((case-fold-search t))
(when (re-search-backward cmake--regex-defun-start nil 'move)
t)))