Function: idlwave-unit-name

idlwave-unit-name is a byte-compiled function defined in idlwave.el.gz.

Signature

(idlwave-unit-name)

Documentation

Return the unit name.

Assumes that point is at the beginning of the unit as found by idlwave-prev-index-position.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/idlwave.el.gz
(defun idlwave-unit-name ()
  "Return the unit name.
Assumes that point is at the beginning of the unit as found by
`idlwave-prev-index-position'."
  (forward-sexp 2)
  (forward-sexp -1)
  (let ((begin (point)))
    (re-search-forward
     "[a-zA-Z_][a-zA-Z0-9$_]+\\(::[a-zA-Z_][a-zA-Z0-9$_]+\\)?")
    (buffer-substring-no-properties begin (point))))