Function: ebrowse-read-class-name-and-go

ebrowse-read-class-name-and-go is an interactive and byte-compiled function defined in ebrowse.el.gz.

Signature

(ebrowse-read-class-name-and-go &optional CLASS)

Documentation

Position cursor on CLASS.

Read a class name from the minibuffer if CLASS is nil.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-read-class-name-and-go (&optional class)
  "Position cursor on CLASS.
Read a class name from the minibuffer if CLASS is nil."
  (interactive)
  (ebrowse-ignoring-completion-case
    ;; If no class specified, read the class name from mini-buffer
    (unless class
      (setf class
	    (completing-read "Goto class: "
			     (ebrowse-tree-table-as-alist) nil t)))
    (goto-char (point-min))
    (widen)
    (setq ebrowse--last-regexp (concat "\\b" class "\\b"))
    (if (re-search-forward ebrowse--last-regexp nil t)
	(progn
	  (goto-char (match-beginning 0))
	  (ebrowse-unhide-base-classes))
      (error "Not found"))))