Romain Francoise wrote:
Adrian Bunk <[EMAIL PROTECTED]> writes:
emacs21 correctly preserves the tab, while emacs-snapshot converts it
to spaces.

There is no tab in the initial file, so a more accurate way to put it is
"emacs21 inserts a tab, and emacs-snapshot inserts spaces".  Whether or
not that is a bug, I don't know... (tab-width is 8 by default)

It is a misunderstanding that pressing TAB inserts a tab character in
Emacs; rather, that key runs the command indent-for-tab-command which
in turn calls the function pointed to by indent-line-function.  See
section 31.3.1 of the Emacs Manual (in emacs-snapshot).  If you want
to insert a tab character, you should press C-q TAB.

That being said, I agree that it would be better if
indent-for-tab-command would indent with a tab rather than with spaces
in fundamental mode; unfortunately, there is apparently no option to
enable this.

Cheers,

Sven






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to