From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: john smith Newsgroups: gmane.emacs.help Subject: Is c-indent-line-or-region already doing the same thing as smart-tabs? Date: Sun, 15 May 2016 23:19:49 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1463347220 19865 80.91.229.3 (15 May 2016 21:20:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 May 2016 21:20:20 +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 15 23:20:19 2016 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 1b23SE-00028t-1V for geh-help-gnu-emacs@m.gmane.org; Sun, 15 May 2016 23:20:02 +0200 Original-Received: from localhost ([::1]:41471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b23SD-0002Yy-6f for geh-help-gnu-emacs@m.gmane.org; Sun, 15 May 2016 17:20:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b23S3-0002WA-7W for help-gnu-emacs@gnu.org; Sun, 15 May 2016 17:19:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b23S2-0002fG-4H for help-gnu-emacs@gnu.org; Sun, 15 May 2016 17:19:51 -0400 Original-Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:33535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b23S1-0002fB-VR for help-gnu-emacs@gnu.org; Sun, 15 May 2016 17:19:50 -0400 Original-Received: by mail-qg0-x22b.google.com with SMTP id f92so81834497qgf.0 for ; Sun, 15 May 2016 14:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=TWO2SP2VoshTmcgAhOlOxd44dZXvF/gtDV0GGa19Vpg=; b=CCvKu+N7aphqdZaoMfwKudrDbq5T7kb7GAM/UB3DKt64XcwbAxLArrUikvUbhufPvg 64EUi/0NxNbAFQU+7JOMSONDZmF+LBrFr+jVtz/ax4xgXmPlf3pwq7kszfn/4agR5i+3 JlfJ/Pdrj3v2WQ/qCGoMN9EUDX/7VrX/65gNjNFAUWPezmSdJK1JTgugAl18P956gBH/ uORaBcaPv3KAzdjGAmgofT4lRaQq1WEtwOat5nI9pfqpYSoRnEKwCTQTFruvnNljLf3j bMTxnjtOjcbj/Cx6jCXI+4IjTcpJOApJhxpmTUiGZjxESwwc0zWKcZzmIvbA6CGMcJdO Qj+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=TWO2SP2VoshTmcgAhOlOxd44dZXvF/gtDV0GGa19Vpg=; b=F5YUW45kRS4eaYXuFMPx+Gq/xCyTcoDNPhgj1ANmjnBwZNOLhAebAqCU2DySrA+mHf 0G3j2w41Nf1yFsV7Eza02kBx5hyQXEbe+/ww69LvgXRlJxGUcz0Ctlf9vYNxlYJC0nvs wZLc9E5CHl0he7DENVGocmJTAz/X8qlmxRy+OqFxd0Vy39Nyr9m+CSm1895UZ49mW8xO gbXKJRznU35SuuHTBTDLNeU628WeK2L4MlFevRxJJOjeZ3zoLxRQIw7r2h5TI17IYySC C4Jq/VLN7u84D/cHvpFoqIFPHsjGYIqNuNLnHt1SNDlF8Nn65WmESvw9z/Oa5ocudlJa hysg== X-Gm-Message-State: AOPr4FVhghHsLC1vCs9Nde29EtbLScex1Gn5OUkOUtIJCDFUJ5j6ANk4hU5HCVmw8jEiQradR+0TgL4nt2M1lg== X-Received: by 10.140.254.85 with SMTP id z82mr27612740qhc.0.1463347189302; Sun, 15 May 2016 14:19:49 -0700 (PDT) Original-Received: by 10.237.56.230 with HTTP; Sun, 15 May 2016 14:19:49 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:109963 Archived-At: In Emacs 24.5.1 is c-indent-line-or-region already doing the same thing as smart-tabs or do I miss something? As I tried this snippet from https://www.emacswiki.org/emacs/SmartTabs: int f(int x, int y) { return g(x, y); } I got exactly same result when marking the whole function and pressing Tab key regardless of smart-tabs-mode state. It seems that c-indent-line-or-region can add both spaces and tabs on its own. Is my thinking correct? Are smart-tabs needed for other other modes apart from C? --