Function: lua-forward-line-skip-blanks
lua-forward-line-skip-blanks is a byte-compiled function defined in
lua-mode.el.gz.
Signature
(lua-forward-line-skip-blanks &optional BACK)
Documentation
Move 1 line forward/backward and skip insignificant ws/comment lines.
Moves point 1 line forward (or backward) skipping lines that contain no Lua code besides comments. The point is put to the beginning of the line.
Returns final value of point as integer or nil if operation failed.
Non-nil argument BACK changes the direction to backwards.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defun lua-forward-line-skip-blanks (&optional back)
"Move 1 line forward/backward and skip insignificant ws/comment lines.
Moves point 1 line forward (or backward) skipping lines that contain no
Lua code besides comments. The point is put to the beginning of the
line.
Returns final value of point as integer or nil if operation failed.
Non-nil argument BACK changes the direction to backwards."
(let ((start-pos (point)))
(if back
(progn
(beginning-of-line)
(lua-skip-ws-and-comments-backward))
(forward-line)
(lua-skip-ws-and-comments-forward))
(beginning-of-line)
(when (> (count-lines start-pos (point)) 0)
(point))))