From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: making TAB in text major mode just work Date: Mon, 26 Nov 2007 23:23:33 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <200711262123.lAQLNXTp001672@beta.mvs.co.il> References: <16776938-be7b-4c7b-a8ad-b61ba6ac20a2@i29g2000prf.googlegroups.com> <200711261553.lAQFrXXt013289@beta.mvs.co.il> <87zlx027jc.fsf@bzg.ath.cx> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196112288 4735 80.91.229.12 (26 Nov 2007 21:24:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Nov 2007 21:24:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: bzg@altern.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 26 22:24:54 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IwlRc-0004ho-Iw for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Nov 2007 22:24:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwlRN-0000LG-BK for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Nov 2007 16:24:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IwlQa-000896-Tm for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 16:23:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IwlQY-000885-OY for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 16:23:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IwlQY-000881-Ko for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 16:23:38 -0500 Original-Received: from bzq-193-16-147-12.bgp.bezeqint.net ([193.16.147.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IwlQX-0006Hi-PH for help-gnu-emacs@gnu.org; Mon, 26 Nov 2007 16:23:38 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.7/8.13.7) with ESMTP id lAQLNXsa019172; Mon, 26 Nov 2007 23:23:33 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.14.1/8.14.1) with ESMTP id lAQLNXCR001683; Mon, 26 Nov 2007 23:23:33 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.14.1/8.14.1/Submit) id lAQLNXTp001672; Mon, 26 Nov 2007 23:23:33 +0200 In-reply-to: <87zlx027jc.fsf@bzg.ath.cx> (message from Bastien on Mon, 26 Nov 2007 18:20:07 +0000) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.109) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49561 Archived-At: On Mon, 26 Nov 2007 18:20:07 Bastien wrote: > > "Ehud Karni" writes: > > > On Thu, 22 Nov 2007 12:35:12 jwithers wrote: > >> > >> In text mode, or in fundamental mode for that matter, ... > >> ... doing a control-q tab isn't really good in my mind. > > > > Add this to your .emacs and it will solve your problems for text mode. > > (define-key text-mode-map "\011" 'forward-to-tab-stop) > > Do you mean: > > (define-key text-mode-map "\011" 'tab-to-tab-stop) > > or is `forward-to-tab-stop' a real function? > > Here: > > (fboundp 'forward-to-tab-stop) > => nil My mistake, `forward-to-tab-stop' is a very real LOCAL function I use. I suppose for the above request 'tab-to-tab-stop' or `move-to-tab-stop' will do. Also change the "\011" to "\t" so: (define-key text-mode-map "\t" 'tab-to-tab-stop) Ehud. -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry