From: Chong Yidong Date: Thu, 30 Oct 2008 23:52:39 +0000 (+0000) Subject: (indent-for-tab-command): Use use-region-p. X-Git-Tag: emacs-pretest-23.0.90~2067 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=361a81d9bc33b267b6062b922ee707befe73f3aa;p=emacs.git (indent-for-tab-command): Use use-region-p. --- 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.