From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: text-mode tab questions Date: Tue, 10 Sep 2002 10:18:47 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3D7E1B67.3010703@ihs.com> References: <3D7CDFA0.20902@ihs.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1031675165 29658 127.0.0.1 (10 Sep 2002 16:26:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 16:26:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17onpz-0007iC-00 for ; Tue, 10 Sep 2002 18:26:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17onq5-0005dn-00; Tue, 10 Sep 2002 12:26:09 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: fu-berlin.de 1031674724 61639255 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: nntp.stanford.edu gnu.emacs.help:104681 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1238 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1238 mike hardy wrote: > Nostradamus foretold that on Mon Sep 09 2002, Kevin Rodgers would write: >>(defadvice indent-relative (around last-command-tab-to-tab-stop activate) >> "If the last command was `indent-relative', run `tab-to-tab-stop' instead." >> (if (eq last-command 'indent-relative) ; this-command >> (call-interactively 'tab-to-tab-stop) >> ad-do-it)) > > Outstanding (don't know ear-to-ear grin emoticon). Thx alot... You're welcome. You might want to add a few checks to avoid affecting indent-relative in other contexts: (if (and (interactive-p) (equal last-command-char ?\t) (eq last-command 'indent-relative)) ...) -- Kevin Rodgers