diff options
| author | Richard M. Stallman | 1995-09-14 14:45:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-09-14 14:45:02 +0000 |
| commit | 34a71c1e6dbe80a6a3339396668a0b4ca3b6da7d (patch) | |
| tree | 40fa3be1336c24a3ce674a74657dbde8e6e1fef8 | |
| parent | 719dcee97be039c172f09635de2392cdf8834200 (diff) | |
| download | emacs-34a71c1e6dbe80a6a3339396668a0b4ca3b6da7d.tar.gz emacs-34a71c1e6dbe80a6a3339396668a0b4ca3b6da7d.zip | |
(indent-for-tab-command): Get the prefix arg
and pass it along to indent-line-function if it isn't nil.
| -rw-r--r-- | lisp/indent.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/indent.el b/lisp/indent.el index dd2f95771bf..47ef23d4aa3 100644 --- a/lisp/indent.el +++ b/lisp/indent.el | |||
| @@ -38,12 +38,14 @@ Function to indent current line.") | |||
| 38 | (interactive) | 38 | (interactive) |
| 39 | (funcall indent-line-function)) | 39 | (funcall indent-line-function)) |
| 40 | 40 | ||
| 41 | (defun indent-for-tab-command () | 41 | (defun indent-for-tab-command (&optional prefix-arg) |
| 42 | "Indent line in proper way for current major mode." | 42 | "Indent line in proper way for current major mode." |
| 43 | (interactive) | 43 | (interactive "P") |
| 44 | (if (eq indent-line-function 'indent-to-left-margin) | 44 | (if (eq indent-line-function 'indent-to-left-margin) |
| 45 | (insert-tab) | 45 | (insert-tab) |
| 46 | (funcall indent-line-function))) | 46 | (if prefix-arg |
| 47 | (funcall indent-line-function prefix-arg) | ||
| 48 | (funcall indent-line-function)))) | ||
| 47 | 49 | ||
| 48 | (defun insert-tab () | 50 | (defun insert-tab () |
| 49 | (if abbrev-mode | 51 | (if abbrev-mode |