From unknown Sun Jun 22 04:07:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8135: Problem about TAB in emacs23 Resent-From: dexter K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Feb 2011 05:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8135@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.129886944224355 (code B ref -1); Mon, 28 Feb 2011 05:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Feb 2011 05:04:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtvH7-0006Kk-CE for submit@debbugs.gnu.org; Mon, 28 Feb 2011 00:04:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtuMD-00054u-11 for submit@debbugs.gnu.org; Sun, 27 Feb 2011 23:05:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtuM2-0003BZ-WE for submit@debbugs.gnu.org; Sun, 27 Feb 2011 23:05:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtuM2-0003BV-Tq for submit@debbugs.gnu.org; Sun, 27 Feb 2011 23:05:02 -0500 Received: from [140.186.70.92] (port=48561 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtuLx-0007Br-Rs for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 23:05:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtuLs-0003AX-V5 for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 23:04:57 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:52936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtuLs-0003AT-Oo for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 23:04:52 -0500 Received: by fxm5 with SMTP id 5so3945825fxm.0 for ; Sun, 27 Feb 2011 20:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=VMAM8eakkdDsSFDBz2tAjMWRUrwqEziiFDQJgQdP7Ag=; b=nQQHjjfAt/okzqhT4ssLX5sk5n3FWExl8A+6KJ72dq3H9gCU9iJ4iDCL6WG/x067fI cDzPSwZfH3GXyC2ZTQFTtASTd3DpTuqex49H8MWtDwIZLEjy22fKC9+3XYZBLZlj33qZ y+MlR7u9de4wyVn/Qk/etJhKIqaRTg9MSbZbw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IK7Wp4NoW954pY0RTq2+2fCqPmWcNVoYh4n/9XzTdcJKDGJ77QmvpRggKP6TSuTPIY NA5fYyeeMo1LV06Y9u48PF6pypffaZqL5yf6jup9x/hDb2eXBNQDJX6LV4S5ETSyn+PE QB082cvNDBer+7vgGaC7iceYCweJLMVmI7hn0= MIME-Version: 1.0 Received: by 10.223.103.4 with SMTP id i4mr5488458fao.123.1298865891748; Sun, 27 Feb 2011 20:04:51 -0800 (PST) Received: by 10.223.36.139 with HTTP; Sun, 27 Feb 2011 20:04:51 -0800 (PST) Date: Mon, 28 Feb 2011 12:04:51 +0800 Message-ID: From: dexter K Content-Type: multipart/alternative; boundary=20cf30433f1616ac2c049d4fc8fb X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Mon, 28 Feb 2011 00:03:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --20cf30433f1616ac2c049d4fc8fb Content-Type: text/plain; charset=ISO-8859-1 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 --20cf30433f1616ac2c049d4fc8fb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi everyone
rms says here maybe can help me find out a way to fix my pro= blem.

I have problem in emacs with TAB

I want have a real ta= b , when I press TAB, it goes like 8 spaces distances..
I did it with th= is code:
-------

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

(global-set-key [delete] 'delete-char)
(global-set-key [back= space] 'delete-backward-char)

-------

it works both on windows & mac , the most important is I can delete a=20 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=A0 to fix=A0 this problem ?
Cause I=20 really dont want delete a tab by press 8 times=A0 backspace=A0 on the=20 keyboard.
If it is possible , I want change all=A0 modes of emacs to get a REAL TAB, = no more space instead of TAB.
Thanks
--20cf30433f1616ac2c049d4fc8fb-- From unknown Sun Jun 22 04:07:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8135: Problem about TAB in emacs23 Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Feb 2011 19:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8135 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: dexter K Cc: 8135@debbugs.gnu.org Received: via spool by 8135-submit@debbugs.gnu.org id=B8135.129892268714286 (code B ref 8135); Mon, 28 Feb 2011 19:52:01 +0000 Received: (at 8135) by debbugs.gnu.org; 28 Feb 2011 19:51:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu97v-0003iN-Es for submit@debbugs.gnu.org; Mon, 28 Feb 2011 14:51:27 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu97t-0003iB-Jp for 8135@debbugs.gnu.org; Mon, 28 Feb 2011 14:51:26 -0500 Received: from localhost ([127.0.0.1]:40095) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu97o-0000WK-8Z; Mon, 28 Feb 2011 14:51:20 -0500 From: Glenn Morris References: X-Spook: Ermes White Water Attorney General Mafia NWO Mossad X-Ran: hh>;DrCY>MOjj4\^,?sFofy>8ReB)cR+j)%wh*!z3~jIvXO(.y^)Q*XhRc+0;KL%blpg(s X-Hue: cyan X-Attribution: GM Date: Mon, 28 Feb 2011 14:51:19 -0500 In-Reply-To: (dexter K.'s message of "Mon, 28 Feb 2011 12:04:51 +0800") Message-ID: <0zwrkk9buw.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) dexter K wrote: > 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 This does not look like an Emacs bug, and probably would have been better suited to the help-gnu-emacs mailing list. Comments: 1) The default tab-width is 8. 2) There is no `c-basic-indent' variable. Maybe you meant c-basic-offset? 3) delete runs `delete-char' by default. 4) C-h k BACKSPACE tells me that I can customize the behaviour by setting `backward-delete-char-untabify-method'. So in Emacs 23.2 I get the behaviour that you want simply with: (global-set-key (kbd "TAB") 'self-insert-command) (setq backward-delete-char-untabify-method nil) From unknown Sun Jun 22 04:07:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: dexter K Subject: bug#8135: closed (Re: bug#8135: Problem about TAB in emacs23) Message-ID: References: <19821.12605.257878.983814@fencepost.gnu.org> X-Gnu-PR-Message: they-closed 8135 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 8135@debbugs.gnu.org Date: Tue, 01 Mar 2011 17:48:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1299001682-23968-1" This is a multi-part message in MIME format... ------------=_1299001682-23968-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8135: Problem about TAB in emacs23 which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8135@debbugs.gnu.org. --=20 8135: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8135 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1299001682-23968-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8135-done) by debbugs.gnu.org; 1 Mar 2011 17:47:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuTfn-0006EB-TM for submit@debbugs.gnu.org; Tue, 01 Mar 2011 12:47:48 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PuTfm-0006E0-OH for 8135-done@debbugs.gnu.org; Tue, 01 Mar 2011 12:47:47 -0500 Received: from localhost ([127.0.0.1]:41199) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuTfh-0002Qw-Io; Tue, 01 Mar 2011 12:47:41 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19821.12605.257878.983814@fencepost.gnu.org> Date: Tue, 1 Mar 2011 12:47:41 -0500 From: Glenn Morris To: 8135-done@debbugs.gnu.org Subject: Re: bug#8135: Problem about TAB in emacs23 In-Reply-To: References: <0zwrkk9buw.fsf@fencepost.gnu.org> X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: cyan X-Ran: aUIs(!mC~s;!]J$+|.35S5K`X1=9frwN^=^-hTx]iE""BQq1\C!Nq{8>I(B3|}cA]]6G/s X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 8135-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) dexter K. wrote (on Tue, 1 Mar 2011 at 17:59 +0800): > Oh man, It works! > I cant tell you how much I thank you! > Thanks very very much ------------=_1299001682-23968-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Feb 2011 05:04:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtvH7-0006Kk-CE for submit@debbugs.gnu.org; Mon, 28 Feb 2011 00:04:02 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtuMD-00054u-11 for submit@debbugs.gnu.org; Sun, 27 Feb 2011 23:05:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtuM2-0003BZ-WE for submit@debbugs.gnu.org; Sun, 27 Feb 2011 23:05:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:53759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtuM2-0003BV-Tq for submit@debbugs.gnu.org; Sun, 27 Feb 2011 23:05:02 -0500 Received: from [140.186.70.92] (port=48561 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtuLx-0007Br-Rs for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 23:05:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtuLs-0003AX-V5 for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 23:04:57 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:52936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtuLs-0003AT-Oo for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2011 23:04:52 -0500 Received: by fxm5 with SMTP id 5so3945825fxm.0 for ; Sun, 27 Feb 2011 20:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=VMAM8eakkdDsSFDBz2tAjMWRUrwqEziiFDQJgQdP7Ag=; b=nQQHjjfAt/okzqhT4ssLX5sk5n3FWExl8A+6KJ72dq3H9gCU9iJ4iDCL6WG/x067fI cDzPSwZfH3GXyC2ZTQFTtASTd3DpTuqex49H8MWtDwIZLEjy22fKC9+3XYZBLZlj33qZ y+MlR7u9de4wyVn/Qk/etJhKIqaRTg9MSbZbw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IK7Wp4NoW954pY0RTq2+2fCqPmWcNVoYh4n/9XzTdcJKDGJ77QmvpRggKP6TSuTPIY NA5fYyeeMo1LV06Y9u48PF6pypffaZqL5yf6jup9x/hDb2eXBNQDJX6LV4S5ETSyn+PE QB082cvNDBer+7vgGaC7iceYCweJLMVmI7hn0= MIME-Version: 1.0 Received: by 10.223.103.4 with SMTP id i4mr5488458fao.123.1298865891748; Sun, 27 Feb 2011 20:04:51 -0800 (PST) Received: by 10.223.36.139 with HTTP; Sun, 27 Feb 2011 20:04:51 -0800 (PST) Date: Mon, 28 Feb 2011 12:04:51 +0800 Message-ID: Subject: Problem about TAB in emacs23 From: dexter K To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=20cf30433f1616ac2c049d4fc8fb X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 28 Feb 2011 00:03:59 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --20cf30433f1616ac2c049d4fc8fb Content-Type: text/plain; charset=ISO-8859-1 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 --20cf30433f1616ac2c049d4fc8fb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi everyone
rms says here maybe can help me find out a way to fix my pro= blem.

I have problem in emacs with TAB

I want have a real ta= b , when I press TAB, it goes like 8 spaces distances..
I did it with th= is code:
-------

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

(global-set-key [delete] 'delete-char)
(global-set-key [back= space] 'delete-backward-char)

-------

it works both on windows & mac , the most important is I can delete a=20 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=A0 to fix=A0 this problem ?
Cause I=20 really dont want delete a tab by press 8 times=A0 backspace=A0 on the=20 keyboard.
If it is possible , I want change all=A0 modes of emacs to get a REAL TAB, = no more space instead of TAB.
Thanks
--20cf30433f1616ac2c049d4fc8fb-- ------------=_1299001682-23968-1--