Function: idlwave-help-find-routine-definition

idlwave-help-find-routine-definition is a byte-compiled function defined in idlw-help.el.gz.

Signature

(idlwave-help-find-routine-definition NAME TYPE CLASS KEYWORD)

Documentation

Find the definition of routine CLASS::NAME in current buffer.

Returns the point of match if successful, nil otherwise. KEYWORD is ignored.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/idlw-help.el.gz
(defun idlwave-help-find-routine-definition (name type class _keyword)
  "Find the definition of routine CLASS::NAME in current buffer.
Returns the point of match if successful, nil otherwise.
KEYWORD is ignored."
  (save-excursion
    (goto-char (point-max))
    (if (re-search-backward
	 (concat "^[ \t]*"
		 (if (eq type 'pro) "pro"
		   (if (eq type 'fun) "function"
		     "\\(pro\\|function\\)"))
		 "[ \t]+"
		 (regexp-quote (downcase (idlwave-make-full-name class name)))
		 "[, \t\r\n]")
	 nil t)
	(match-beginning 0)
      nil)))