Function: srecode-bind-insert

srecode-bind-insert is an interactive and byte-compiled function defined in mode.el.gz.

Signature

(srecode-bind-insert)

Documentation

Bound insert for Srecode macros.

This command will insert whichever srecode template has a binding to the current key.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/srecode/mode.el.gz
;;; Minor Mode commands
;;
(defun srecode-bind-insert ()
  "Bound insert for Srecode macros.
This command will insert whichever srecode template has a binding
to the current key."
  (interactive)
  (srecode-load-tables-for-mode major-mode)
  (let* ((k last-command-event)
	 (ctxt (srecode-calculate-context))
	 ;; Find the template with the binding K
	 (template (srecode-template-get-table-for-binding
		    (srecode-table) k ctxt)))
    ;; test it.
    (when (not template)
      (error "No template bound to %c" k))
    ;; insert
    (srecode-insert template)
    ))