Function: just-one-space

just-one-space is an interactive and byte-compiled function defined in simple.el.gz.

Signature

(just-one-space &optional N)

Documentation

Delete all spaces and tabs around point, leaving one space (or N spaces).

If N is negative, delete newlines as well, leaving -N spaces. See also cycle-spacing.

Probably introduced at or before Emacs version 22.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun just-one-space (&optional n)
  "Delete all spaces and tabs around point, leaving one space (or N spaces).
If N is negative, delete newlines as well, leaving -N spaces.
See also `cycle-spacing'."
  (interactive "*p")
  (cycle-spacing n nil 'single-shot))