Function: negative-argument

negative-argument is an interactive and byte-compiled function defined in simple.el.gz.

Signature

(negative-argument ARG)

Documentation

Begin a negative numeric argument for the next command.

C-u (universal-argument) following digits or minus sign ends the argument.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun negative-argument (arg)
  "Begin a negative numeric argument for the next command.
\\[universal-argument] following digits or minus sign ends the argument."
  (interactive "P")
  (prefix-command-preserve-state)
  (setq prefix-arg (cond ((integerp arg) (- arg))
                         ((eq arg '-) nil)
                         (t '-)))
  (universal-argument--mode))