From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: Tab problem Date: Mon, 06 Sep 2004 11:58:53 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <864qmbu3aa.fsf@ketchup.de.uu.net> 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 X-Trace: sea.gmane.org 1094464805 14923 80.91.224.253 (6 Sep 2004 10:00:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2004 10:00:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 06 11:59:59 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 1C4GI3-0002n0-00 for ; Mon, 06 Sep 2004 11:59:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4GND-0000tc-C2 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Sep 2004 06:05:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4GMd-0000qi-8Q for help-gnu-emacs@gnu.org; Mon, 06 Sep 2004 06:04:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4GMa-0000pS-A5 for help-gnu-emacs@gnu.org; Mon, 06 Sep 2004 06:04:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4GMZ-0000pJ-Vg for help-gnu-emacs@gnu.org; Mon, 06 Sep 2004 06:04:40 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4GHK-0007X0-TG for help-gnu-emacs@gnu.org; Mon, 06 Sep 2004 05:59:15 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C4GHJ-0002QT-00 for ; Mon, 06 Sep 2004 11:59:13 +0200 Original-Received: from 139.4.37.213 ([139.4.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Sep 2004 11:59:13 +0200 Original-Received: from kai by 139.4.37.213 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Sep 2004 11:59:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 139.4.37.213 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:Sn3JhuZOWdB14307EvRHoncLOII= 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:20450 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20450 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