Function: semantic-read-variable

semantic-read-variable is a byte-compiled function defined in util.el.gz.

Signature

(semantic-read-variable PROMPT &optional DEFAULT STREAM)

Documentation

Read a variable name from the user for the current buffer.

PROMPT is the prompt to use. Optional arguments: DEFAULT is the default choice. If no default is given, one is read from under point. STREAM is the list of tokens to complete from.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/util.el.gz
(defun semantic-read-variable (prompt &optional default stream)
  "Read a variable name from the user for the current buffer.
PROMPT is the prompt to use.
Optional arguments:
DEFAULT is the default choice.  If no default is given, one is read
from under point.
STREAM is the list of tokens to complete from."
  (semantic-read-symbol
   prompt default
   (or (semantic-find-tags-by-class
	'variable (or stream (current-buffer)))
       (error "No local variables"))))