From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to make c-indent-line-region respect indent-tabs-mode when it's already aligned? Date: Sun, 31 May 2015 05:40:35 +0300 Message-ID: <83r3pxtqos.fsf@gnu.org> References: <87k2vqii5e.fsf@home.hong.me> <83d21iuovh.fsf@gnu.org> <874mmty94l.fsf@topbug.net> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1433040066 19618 80.91.229.3 (31 May 2015 02:41:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 May 2015 02:41:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 31 04:40:57 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YytBI-0004qe-Cm for geh-help-gnu-emacs@m.gmane.org; Sun, 31 May 2015 04:40:56 +0200 Original-Received: from localhost ([::1]:40976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YytBH-00026U-Ja for geh-help-gnu-emacs@m.gmane.org; Sat, 30 May 2015 22:40:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YytB3-00026E-Qp for help-gnu-emacs@gnu.org; Sat, 30 May 2015 22:40:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YytAy-0006v1-PF for help-gnu-emacs@gnu.org; Sat, 30 May 2015 22:40:41 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:55159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YytAy-0006tZ-Cb for help-gnu-emacs@gnu.org; Sat, 30 May 2015 22:40:36 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NP700E000A7LA00@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Sun, 31 May 2015 05:42:31 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NP70085H0UVZL70@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Sun, 31 May 2015 05:42:31 +0300 (IDT) In-reply-to: <874mmty94l.fsf@topbug.net> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104695 Archived-At: > From: Hong Xu > Cc: help-gnu-emacs@gnu.org > Date: Sat, 30 May 2015 15:48:42 -0700 > > >> Is there a different line indentation function which respects > >> indent-tabs-mode even the line is already aligned? > > > > You are using the wrong command. You should use untabify to convert > > tabs to spaces, or tabify to do the opposite. > > Thanks. Is there a single command to do formatting though? I think > people want to format the line more than simply "indent" the line. indent-region, bound to C-M-\ by default, usually works for me.