Function: comint-magic-space

comint-magic-space is an interactive and byte-compiled function defined in comint.el.gz.

Signature

(comint-magic-space ARG)

Documentation

Expand input history references before point and insert ARG spaces.

A useful command to bind to SPC. See comint-replace-by-expanded-history.

View in manual

Probably introduced at or before Emacs version 19.20.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-magic-space (arg)
  "Expand input history references before point and insert ARG spaces.
A useful command to bind to SPC.  See `comint-replace-by-expanded-history'."
  (interactive "p" comint-mode)
  (comint-replace-by-expanded-history)
  (self-insert-command arg))