Function: sgml-slash
sgml-slash is an interactive and byte-compiled function defined in
sgml-mode.el.gz.
Signature
(sgml-slash ARG)
Documentation
Insert ARG slash characters.
Behaves electrically if sgml-quick-keys is non-nil.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/sgml-mode.el.gz
(defun sgml-slash (arg)
"Insert ARG slash characters.
Behaves electrically if `sgml-quick-keys' is non-nil."
(interactive "p")
(cond
((not (and (eq (char-before) ?<) (= arg 1)))
(sgml-slash-matching arg))
((eq sgml-quick-keys 'indent)
(insert-char ?/ 1)
(indent-according-to-mode))
((eq sgml-quick-keys 'close)
(delete-char -1)
(sgml-close-tag))
(t
(insert-char ?/ arg))))