Function: sc-insert-reference

sc-insert-reference is an interactive and byte-compiled function defined in supercite.el.gz.

Signature

(sc-insert-reference ARG)

Documentation

Insert, at point, a reference header in the body of the reply.

Numeric ARG indicates which header style from sc-rewrite-header-list to use when rewriting the header. No supplied ARG indicates use of sc-preferred-header-style.

With just C-u (universal-argument), electric reference insert mode is entered, regardless of the value of sc-electric-references-p. See sc-electric-mode for more information.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mail/supercite.el.gz
(defun sc-insert-reference (arg)
  "Insert, at point, a reference header in the body of the reply.
Numeric ARG indicates which header style from `sc-rewrite-header-list'
to use when rewriting the header.  No supplied ARG indicates use of
`sc-preferred-header-style'.

With just `\\[universal-argument]', electric reference insert mode is
entered, regardless of the value of `sc-electric-references-p'.  See
`sc-electric-mode' for more information."
  (interactive "P")
  (if (consp arg)
      (sc-electric-mode)
    (let ((preference (or (sc-valid-index-p arg)
			  (sc-valid-index-p sc-preferred-header-style)
			  sc-preferred-header-style
			  0)))
      (if sc-electric-references-p
	  (sc-electric-mode preference)
	(sc-eref-insert-selected t)))))