Function: srecode-read-major-mode-name
srecode-read-major-mode-name is a byte-compiled function defined in
srt.el.gz.
Signature
(srecode-read-major-mode-name PROMPT &optional INITIAL HIST DEFAULT)
Documentation
Read in the name of a desired major-mode.
PROMPT is the prompt to use.
INITIAL is the initial string.
HIST is the history value, otherwise srecode-read-variable-name-history
is used.
DEFAULT is the default if RET is hit.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/srt.el.gz
(defun srecode-read-major-mode-name (prompt &optional initial hist _default)
"Read in the name of a desired `major-mode'.
PROMPT is the prompt to use.
INITIAL is the initial string.
HIST is the history value, otherwise `srecode-read-variable-name-history'
is used.
DEFAULT is the default if RET is hit."
(completing-read prompt obarray
(lambda (s) (string-match "-mode\\'" (symbol-name s)))
nil initial (or hist 'srecode-read-major-mode-history))
)