Function: octave-mark-block
octave-mark-block is an interactive and byte-compiled function defined
in octave.el.gz.
Signature
(octave-mark-block)
Documentation
Put point at the beginning of this Octave block, mark at the end.
The block marked is the one that contains point or follows point.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/octave.el.gz
(defun octave-mark-block ()
"Put point at the beginning of this Octave block, mark at the end.
The block marked is the one that contains point or follows point."
(interactive)
(if (and (looking-at "\\sw\\|\\s_")
(looking-back "\\sw\\|\\s_" (1- (point))))
(skip-syntax-forward "w_"))
(unless (or (looking-at "\\s(")
(save-excursion
(let* ((token (funcall smie-forward-token-function))
(level (assoc token smie-grammar)))
(and level (not (numberp (cadr level)))))))
(backward-up-list 1))
(mark-sexp))