From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Billy N. Patton" Newsgroups: gmane.emacs.help Subject: Re: indenting Date: Tue, 26 Oct 2004 13:04:46 -0500 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098814358 25298 80.91.229.6 (26 Oct 2004 18:12:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 18:12:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 20:12:26 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMVo1-0006A8-00 for ; Tue, 26 Oct 2004 20:12:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMVvi-0002Rw-1L for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 14:20:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!nntp.giganews.com.MISMATCH!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!attdl1!attdl2!ip.att.net!news.ti.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 66 Original-NNTP-Posting-Host: holster07.dal.design.ti.com Original-X-Trace: home.itg.ti.com 1098813886 16984 128.247.122.70 (26 Oct 2004 18:04:46 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 26 Oct 2004 18:04:46 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040623 X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:126080 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.help:21458 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21458 Stefan Monnier wrote: >>I do not want tab characters. > > > Your (setq-default indent-tabs-mode nil) does that. > > >>I want to be able to hit the tab key after I type int and i1. but the int >>indents and follows the tab. What I end up with is >> int i1 = 0; >>THis is no more readable than having everything shifted to the left. >>How can I stop this behavior? > > > Your (setq c-tab-always-indent nil) should have done that. Can you describe > very pedantically precisely every little itsy bitsy detail of what you do, > what you expect, and what happens instead, as if you were talking to > a complete and total idiot ? I want to type: inti1= 0; char*a_pointer = null; to end with int i = 0; char* a_pointer = null; but what I get now is: int i = 0; char* a_pointer = null; > > >>(add-hook 'c++-mode-hook '(lambda () (setq indent-tabs-mode nil))) > > ^^^ > This quote is at best unnecessary. Better remove it. > > >>(setq-default indent-tabs-mode nil) > > > Actually with this default setting your `add-hook' above should not be > necessary at all. > > >>;(setq c-tab-always-indent t) > > > A single ; is indented to comment-column (trying hitting TAB, just for fun). > Use ;; instead. > > > Stefan -- ___ _ ____ ___ __ __ / _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___ / _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \ /____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/ /___/ Texas Instruments ASIC Circuit Design Methodology Group Dallas, Texas, 214-480-4455, b-patton@ti.com