Function: lua-beginning-of-proc
lua-beginning-of-proc is an interactive and byte-compiled function
defined in lua-mode.el.gz.
Signature
(lua-beginning-of-proc &optional ARG)
Documentation
Move backward to the beginning of a Lua proc (or similar).
With argument ARG, do it that many times. Negative ARG -N means move forward to Nth following beginning of proc.
Returns t unless search stops due to beginning or end of buffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defun lua-beginning-of-proc (&optional arg)
"Move backward to the beginning of a Lua proc (or similar).
With argument ARG, do it that many times. Negative ARG -N means move
forward to Nth following beginning of proc.
Returns t unless search stops due to beginning or end of buffer."
(interactive "P")
(or arg (setq arg 1))
(while (and (> arg 0)
(re-search-backward lua--beginning-of-defun-re nil t))
(setq arg (1- arg)))
(while (and (< arg 0)
(re-search-forward lua--beginning-of-defun-re nil t))
(beginning-of-line)
(setq arg (1+ arg)))
(zerop arg))