diff options
| author | Richard M. Stallman | 1995-02-17 23:59:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-17 23:59:43 +0000 |
| commit | ec321cadaabee877726cba760883b704d2a93ee1 (patch) | |
| tree | 84934227e1362849f43496c484e29775758d6901 | |
| parent | 7d0ca249c89ee12baba0f84b166a885aef357744 (diff) | |
| download | emacs-ec321cadaabee877726cba760883b704d2a93ee1.tar.gz emacs-ec321cadaabee877726cba760883b704d2a93ee1.zip | |
(quoted-insert): Use insert-and-inherit.
Don't change buffer if arg is negative.
| -rw-r--r-- | lisp/simple.el | 9 |
1 files 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." | |||
| 68 | (eq overwrite-mode 'overwrite-mode-binary)) | 68 | (eq overwrite-mode 'overwrite-mode-binary)) |
| 69 | (read-quoted-char) | 69 | (read-quoted-char) |
| 70 | (read-char)))) | 70 | (read-char)))) |
| 71 | (if (eq overwrite-mode 'overwrite-mode-binary) | 71 | (if (> arg 0) |
| 72 | (delete-char arg)) | 72 | (if (eq overwrite-mode 'overwrite-mode-binary) |
| 73 | (insert-char char arg))) | 73 | (delete-char arg))) |
| 74 | (while (> arg 0) | ||
| 75 | (insert-and-inherit char) | ||
| 76 | (setq arg (1- arg))))) | ||
| 74 | 77 | ||
| 75 | (defun delete-indentation (&optional arg) | 78 | (defun delete-indentation (&optional arg) |
| 76 | "Join this line to previous and fix up whitespace at join. | 79 | "Join this line to previous and fix up whitespace at join. |