From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lowell Gilbert Newsgroups: gmane.emacs.help Subject: Re: Customizing tab stops Date: Mon, 05 Jan 2009 16:14:01 -0500 Message-ID: <44prj1qwva.fsf@be-well.ilk.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231191947 22304 80.91.229.12 (5 Jan 2009 21:45:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2009 21:45:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 22:46:58 2009 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 1LJxHl-000812-1t for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 22:46:58 +0100 Original-Received: from localhost ([127.0.0.1]:50054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJxGV-0003SC-Fy for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2009 16:45:39 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 05 Jan 2009 15:14:01 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) Cancel-Lock: sha1:Gki/WoP3h28F3+Nda2HT4u/K5us= Original-Lines: 33 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 66.92.78.145 Original-X-Trace: sv3-2bAT+ViwsQ5qndrq2RjhiTq870DCO1ivSGh/ejeSEE7f4MJ+thIekEF0x95ktUYEpdcNeve1l4YIdsx!v5mmDorGOr3K5/v2N8EAqZAxO4Dg8T2I/C4bms/JkJ9iwo5C/JKE9GLXNyKwCYu33ZYNYbjI6BXT!l7p1s4yydQ== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:165763 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:61097 Archived-At: kj writes: > In a Fundamental-mode buffer, inserting a tab causes the cursor to > jump to the next tab stop. By default these tab stops are at > positions 8, 16, 24, etc. I would like to customize these spacings > for a particular buffer. > > I thought that the variable tab-stop-list would do the trick. So > I made it local to the buffer, and used the command edit-tab-stops > to edit its value. Originally its value was the default > > (8 16 24 32 40 48 56 64 72 80 88 96 104 112 120) > > and I changed it to > > (16 27 58 68) > > ...but the display of the buffer was not affected; i.e. the > tab-separated fields in the buffer remained at the default tab > stops. > > I realize that the customized local value of tab-stop-list does > affect the behavior of the tab-to-tab-stop command in this buffer, > but this is not what I'm interested in. I want to affect how Emacs > *displays* the text that follows a tab. > > Is there a way to customize such display? The tab key doesn't run tab-to-tab-stop in fundamental mode, unless you configure it to do so. It sounds to me like that's what you want to do. I think global-set-key might be the best way to do this for fundamental-mode, although I wonder if fundamental-mode is really what you want for whatever you're really trying to do...