Function: asm-colon
asm-colon is an interactive and byte-compiled function defined in
asm-mode.el.gz.
Signature
(asm-colon)
Documentation
Insert a colon; if it follows a label, delete the label's indentation.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/asm-mode.el.gz
(defun asm-colon ()
"Insert a colon; if it follows a label, delete the label's indentation."
(interactive)
(let ((labelp nil))
(save-excursion
(skip-syntax-backward "w_")
(skip-syntax-backward " ")
(if (setq labelp (bolp)) (delete-horizontal-space)))
(call-interactively 'self-insert-command)
(when labelp
(delete-horizontal-space)
(tab-to-tab-stop))))