From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: martin@rochooni.net Newsgroups: gmane.emacs.help Subject: Re: the tab key and autoindenting Date: Thu, 16 Sep 2004 10:35:11 +0200 Organization: Bosch Rexroth AG 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 X-Trace: sea.gmane.org 1095323986 4911 80.91.229.6 (16 Sep 2004 08:39:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Sep 2004 08:39:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 16 10:39:31 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 1C7rne-0007y3-00 for ; Thu, 16 Sep 2004 10:39:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C7rtJ-0006D5-90 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Sep 2004 04:45:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.stueberl.de!news-mue1.dfn.de!news-fra1.dfn.de!news0.de.colt.net!news1.boschrexroth.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 10.110.240.55 Original-X-Trace: loghost1.eu.boschrexroth.com 1095323755 9637 10.110.240.55 (16 Sep 2004 08:35:55 GMT) Original-X-Complaints-To: usenet@eu.boschrexroth.com Original-NNTP-Posting-Date: Thu, 16 Sep 2004 08:35:55 +0000 (UTC) User-Agent: Emacs Gnus Cancel-Lock: sha1:b/FSZPWQa++DpJxPipzlQ/+BkAM= Original-Xref: shelby.stanford.edu gnu.emacs.help:125350 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:20706 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20706 "u" == unimatrix01 writes: u> Date: Wed, 15 Sep 2004 16:54:59 -0800 u> u> martin@rochooni.net wrote: u> >> "u" == unimatrix01 writes: u> Date: Tue, 14 Sep 2004 23:47:56 -0800 u> u> I recently was using emacs to edit some webpages and some >> projects I u> was working on at my work. I came back later and I could not utilize u> the tab key in any mode and autoindentation did not work when I edited u> html or source files. Is there any key combination or variable that I u> possibly changed that could cause emacs to prevent the tab key from u> working and the autoindentation to stop all together? Thank you any u> help. u> u> what does C-h k TAB say and what do you want the TAB key to >> do ? >> u> u> C-h k TAB says the following: u> u> TAB runs the command lisp-indent-line u> which is an interactive compiled Lisp function in u> `emacs-lisp/lisp-mode'. u> (lisp-indent-line &optional WHOLE-EXP) u> u> Indent current line as Lisp code. u> With argument, indent any additional lines of the same expression u> rigidly along with this one. so you probably issued "C-h k TAB" in a buffer which is in lisp-mode. what if you do it in a buffer containing html-source ? the meaning of the TAB key changes in general according to the mode of the type of file you are editing. you may change the meaning depending on the edit mode by calling local-set-key from some hook provided by that mode. martin u> u> u> u> u> -- martin dot fischer at boschrexroth dot de