From ec321cadaabee877726cba760883b704d2a93ee1 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 17 Feb 1995 23:59:43 +0000 Subject: [PATCH] (quoted-insert): Use insert-and-inherit. Don't change buffer if arg is negative. --- lisp/simple.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index df5c655b3c9..fff374342cb 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -68,9 +68,12 @@ this function useful in editing binary files." (eq overwrite-mode 'overwrite-mode-binary)) (read-quoted-char) (read-char)))) - (if (eq overwrite-mode 'overwrite-mode-binary) - (delete-char arg)) - (insert-char char arg))) + (if (> arg 0) + (if (eq overwrite-mode 'overwrite-mode-binary) + (delete-char arg))) + (while (> arg 0) + (insert-and-inherit char) + (setq arg (1- arg))))) (defun delete-indentation (&optional arg) "Join this line to previous and fix up whitespace at join. -- 2.39.5