changeset 99266:8d57082234b9

(indent-for-tab-command): Use use-region-p.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 30 Oct 2008 23:52:39 +0000
parents a761500ef03c
children 157d43a41a15
files lisp/indent.el
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/indent.el	Thu Oct 30 23:52:30 2008 +0000
+++ b/lisp/indent.el	Thu Oct 30 23:52:39 2008 +0000
@@ -93,8 +93,7 @@
   (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.