From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ulrich@mips.complang.tuwien.ac.at (Ulrich Neumerkel) Newsgroups: gmane.emacs.help Subject: Re: How to avoid SPACE TAB in a file? Date: Thu, 26 Nov 2009 14:46:27 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Message-ID: <2009Nov26.154627@mips.complang.tuwien.ac.at> References: <2009Nov25.202543@mips.complang.tuwien.ac.at> <4b0d8da3$0$269$14726298@news.sunsite.dk> <2009Nov26.001148@mips.complang.tuwien.ac.at> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1259307135 16103 80.91.229.12 (27 Nov 2009 07:32:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Nov 2009 07:32:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 27 08:32:08 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 1NDvJG-0005DB-FQ for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Nov 2009 08:32:06 +0100 Original-Received: from localhost ([127.0.0.1]:46942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDvJG-0005xf-2y for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Nov 2009 02:32:06 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail X-Newsreader: xrn 9.03-beta-14 Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: a4.complang.tuwien.ac.at Original-X-Trace: 1259246939 tunews.univie.ac.at 11868 128.130.173.65 Original-X-Complaints-To: abuse@tuwien.ac.at Original-Xref: news.stanford.edu gnu.emacs.help:175079 X-Mailman-Approved-At: Fri, 27 Nov 2009 02:21:02 -0500 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:70172 Archived-At: Thanks again for your responses. Currently I put in my .emacs.el (defun no-space-tab () (interactive) (let ((point (point))) (save-match-data (goto-char (point-min)) (cond ((search-forward " \t" nil t) (backward-char 1) (error "SPACE found prior to TAB! Press Backspace")) (t (goto-char point)))))) (add-hook 'after-save-hook 'no-space-tab)