Commit 361a81d9 authored by Chong Yidong's avatar Chong Yidong
Browse files

(indent-for-tab-command): Use use-region-p.

parent decaba00
......@@ -93,8 +93,7 @@ The function actually called to indent the line is determined by the value of
(interactive "P")
(cond
;; The region is active, indent it.
((and transient-mark-mode mark-active
(not (eq (region-beginning) (region-end))))
((use-region-p)
(indent-region (region-beginning) (region-end)))
((or ;; indent-to-left-margin is only meant for indenting,
;; so we force it to always insert a tab here.
......
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