GNU bug report logs - #8135
Problem about TAB in emacs23

Previous Next

Package: emacs;

Reported by: dexter K <dexterkidd <at> gmail.com>

Date: Mon, 28 Feb 2011 05:04:02 UTC

Severity: wishlist

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: dexter K <dexterkidd <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Problem about TAB in emacs23
Date: Mon, 28 Feb 2011 12:04:51 +0800
[Message part 1 (text/plain, inline)]
Hi everyone
rms says here maybe can help me find out a way to fix my problem.

I have problem in emacs with TAB

I want have a real tab , when I press TAB, it goes like 8 spaces distances..
I did it with this code:
-------

(global-set-key (kbd "TAB") 'self-insert-command)
(setq default-tab-width 8)
(setq tab-width 8)
(setq c-basic-indent 8)

(global-set-key [delete] 'delete-char)
(global-set-key [backspace] 'delete-backward-char)

-------

it works both on windows & mac , the most important is I can delete a whole
tab distances like 8 spaces when I press [BackSpace] key
But it failed again in my Centos ,when I done complie emacs 23.2

Is there any way  to fix  this problem ?
Cause I really dont want delete a tab by press 8 times  backspace  on the
keyboard.
If it is possible , I want change all  modes of emacs to get a REAL TAB, no
more space instead of TAB.
Thanks
[Message part 2 (text/html, inline)]

This bug report was last modified 14 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.