From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Chorley Newsgroups: gmane.emacs.help Subject: Re: Tab problem Date: Mon, 06 Sep 2004 12:29:08 +0100 Organization: Zen Internet Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <413c4a08$0$22753$db0fefd9@news.zen.co.uk> References: <4139c71c$0$22757$db0fefd9@news.zen.co.uk> 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 1094470211 30442 80.91.224.253 (6 Sep 2004 11:30:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2004 11:30:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 06 13:30:01 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 1C4HhA-0007pT-00 for ; Mon, 06 Sep 2004 13:30:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4HmK-0007MC-Je for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2004 07:35:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.esat.net!feeder.news.heanet.ie!feed4.jnfs.ja.net!jnfs.ja.net!hamilton.zen.co.uk!zen.net.uk!fuller.zen.co.uk!cockburn.zen.co.uk.POSTED!not-for-mail User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040803) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 47 Original-NNTP-Posting-Host: 212.23.14.172 Original-X-Trace: 1094470152 cockburn.zen.co.uk 22753 212.23.14.172:19262 Original-X-Complaints-To: abuse@zen.co.uk Original-Xref: shelby.stanford.edu gnu.emacs.help:125100 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:20453 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20453 Kai Grossjohann wrote: > Nick Chorley writes: > > >>I have a problem with Emacs which is that I can't seem to enter more >>than 1 tab when in C++/Java mode (it does do the automatic indentation >>like when you're using if statements though). When in the "normal" text >>editing mode, I can't enter any tabs. > > > Can you show why you need it? The responses you get might be > unexpected and might give you some insight in how to use Emacs better. > > For example, if you wish to enter more tabs for indentation, then you > act against Emacs' syntax-driven indenting code. Using syntax-driven > indentation is a most valuable tool in finding typos. (A forgotten > "}" will show up real quick because after that "}" the indentation is > all wrong.) > > As another example, if you wish to enter tabs to align code, then you > might be happy with marking the lines to align and then typing M-x > align RET. This will produce things like: > > int x = 3; > float longname = 3.14; > > Cool, isn't it? > > You can always type M-i to advance to the next tab stop. Advancing to > the next tab stop does not always equate to inserting a tab character, > but it's related. > > Kai > > > > It was mainly so I could put comments in without simply entering a load of spaces. Apart from that, well, I don't like the way it indents things like switch statements (ie. the case x: bits go right underneath the word switch, instead of being indented a bit, if you see what I mean). There were a few other things too, but I've got it sorted now. Thanks though :). Nick