Commit 34a71c1e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(indent-for-tab-command): Get the prefix arg

and pass it along to indent-line-function if it isn't nil.
parent 719dcee9
......@@ -38,12 +38,14 @@ Function to indent current line.")
(interactive)
(funcall indent-line-function))
(defun indent-for-tab-command ()
(defun indent-for-tab-command (&optional prefix-arg)
"Indent line in proper way for current major mode."
(interactive)
(interactive "P")
(if (eq indent-line-function 'indent-to-left-margin)
(insert-tab)
(funcall indent-line-function)))
(if prefix-arg
(funcall indent-line-function prefix-arg)
(funcall indent-line-function))))
(defun insert-tab ()
(if abbrev-mode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment