Commit bc3214ed authored by Juri Linkov's avatar Juri Linkov
Browse files

(indent-for-tab-command): Change interactive spec from "P" to "p".

(indent-for-tab-command): Add check for interactive arg before
indenting the active region.
parent 69f5930a
...@@ -86,10 +86,10 @@ If `transient-mark-mode' is turned on the region is active, ...@@ -86,10 +86,10 @@ If `transient-mark-mode' is turned on the region is active,
indent the region. indent the region.
The function actually called to indent the line is determined by the value of The function actually called to indent the line is determined by the value of
`indent-line-function'." `indent-line-function'."
(interactive "P") (interactive "p")
(cond (cond
;; The region is active, indent it. ;; The region is active, indent it.
((and transient-mark-mode mark-active ((and arg transient-mark-mode mark-active
(not (eq (region-beginning) (region-end)))) (not (eq (region-beginning) (region-end))))
(indent-region (region-beginning) (region-end))) (indent-region (region-beginning) (region-end)))
((or ;; indent-to-left-margin is only meant for indenting, ((or ;; indent-to-left-margin is only meant for indenting,
......
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