diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2008-10-30 23:52:39 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2008-10-30 23:52:39 +0000 |
commit | 361a81d9bc33b267b6062b922ee707befe73f3aa (patch) | |
tree | aef68358445440468185da93210d6d55e890f250 /lisp | |
parent | decaba0042071cb8a1f9e9e5dd68f50e4c50d5c7 (diff) | |
download | emacs-361a81d9bc33b267b6062b922ee707befe73f3aa.tar.gz |
(indent-for-tab-command): Use use-region-p.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/indent.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/indent.el b/lisp/indent.el index f942847ec64..f962cf4686f 100644 --- a/lisp/indent.el +++ b/lisp/indent.el @@ -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. |