all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: john smith <wempwer@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Is c-indent-line-or-region already doing the same thing as smart-tabs?
Date: Sun, 15 May 2016 23:19:49 +0200	[thread overview]
Message-ID: <CAKmQUfboR8LcSCUmUuY2Syr8kgGxmqGFGP37UJmC1Lm4Mu9DyA@mail.gmail.com> (raw)

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?

-- 
<wempwer@gmail.com>



             reply	other threads:[~2016-05-15 21:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-15 21:19 john smith [this message]
2016-05-18 18:13 ` Is c-indent-line-or-region already doing the same thing as smart-tabs? john smith
     [not found] <mailman.2860.1463347193.7477.help-gnu-emacs@gnu.org>
2016-05-17 16:09 ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKmQUfboR8LcSCUmUuY2Syr8kgGxmqGFGP37UJmC1Lm4Mu9DyA@mail.gmail.com \
    --to=wempwer@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.