Function: c-mode-symbol
c-mode-symbol is a byte-compiled function defined in cc-defs.el.gz.
Signature
(c-mode-symbol SUFFIX)
Documentation
Prefix the current mode prefix (e.g. "c-") to SUFFIX and return the corresponding symbol.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-defs.el.gz
(defsubst c-mode-symbol (suffix)
"Prefix the current mode prefix (e.g. \"c-\") to SUFFIX and return
the corresponding symbol."
(or c-buffer-is-cc-mode
(error "Not inside a CC Mode based mode"))
(let ((mode-prefix (get c-buffer-is-cc-mode 'c-mode-prefix)))
(or mode-prefix
(error "%S has no mode prefix known to `c-mode-symbol'"
c-buffer-is-cc-mode))
(intern (concat mode-prefix suffix))))