Function: undo-only

undo-only is an interactive and byte-compiled function defined in simple.el.gz.

Signature

(undo-only &optional ARG)

Documentation

Undo some previous changes.

Repeat this command to undo more changes. A numeric ARG serves as a repeat count. Contrary to undo, this will not redo a previous undo.

View in manual

Probably introduced at or before Emacs version 22.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun undo-only (&optional arg)
  "Undo some previous changes.
Repeat this command to undo more changes.
A numeric ARG serves as a repeat count.
Contrary to `undo', this will not redo a previous undo."
  (interactive "*p")
  (let ((undo-no-redo t)) (undo arg)))