unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* the tab key and autoindenting
@ 2004-09-15  7:47 unimatrix01
  2004-09-15 13:28 ` martin
  0 siblings, 1 reply; 4+ messages in thread
From: unimatrix01 @ 2004-09-15  7:47 UTC (permalink / raw)


I recently was using emacs to edit some webpages and some projects I was 
working on at my work.  I came back later and I could not utilize the 
tab key in any mode and autoindentation did not work when I edited html 
or source files.  Is there any key combination or variable that I 
possibly changed that could cause emacs to prevent the tab key from 
working and the autoindentation to stop all together?  Thank you any help.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: the tab key and autoindenting
  2004-09-15  7:47 the tab key and autoindenting unimatrix01
@ 2004-09-15 13:28 ` martin
  2004-09-16  0:54   ` unimatrix01
  0 siblings, 1 reply; 4+ messages in thread
From: martin @ 2004-09-15 13:28 UTC (permalink / raw)



"u" == unimatrix01  <news@nepticutl.org> 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 ?

-- 
martin dot fischer at boschrexroth dot de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: the tab key and autoindenting
  2004-09-15 13:28 ` martin
@ 2004-09-16  0:54   ` unimatrix01
  2004-09-16  8:35     ` martin
  0 siblings, 1 reply; 4+ messages in thread
From: unimatrix01 @ 2004-09-16  0:54 UTC (permalink / raw)


martin@rochooni.net wrote:

> "u" == unimatrix01  <news@nepticutl.org> 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 ?
> 

C-h k TAB says the following:

TAB runs the command lisp-indent-line
    which is an interactive compiled Lisp function in 
`emacs-lisp/lisp-mode'.
(lisp-indent-line &optional WHOLE-EXP)

Indent current line as Lisp code.
With argument, indent any additional lines of the same expression
rigidly along with this one.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: the tab key and autoindenting
  2004-09-16  0:54   ` unimatrix01
@ 2004-09-16  8:35     ` martin
  0 siblings, 0 replies; 4+ messages in thread
From: martin @ 2004-09-16  8:35 UTC (permalink / raw)



"u" == unimatrix01  <news@nepticutl.org> writes:
 u> Date: Wed, 15 Sep 2004 16:54:59 -0800
 u> 
 u> martin@rochooni.net wrote:
 u> 
 >> "u" == unimatrix01  <news@nepticutl.org> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-16  8:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15  7:47 the tab key and autoindenting unimatrix01
2004-09-15 13:28 ` martin
2004-09-16  0:54   ` unimatrix01
2004-09-16  8:35     ` martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).