From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Newsgroups: gmane.emacs.help Subject: Re: whitespace-cleanup + untabify? Date: Sat, 14 Jun 2008 15:43:06 +0200 Message-ID: <200806141543.06152.juanma_bellon@yahoo.es> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213458998 5258 80.91.229.12 (14 Jun 2008 15:56:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2008 15:56:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 14 17:57:21 2008 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 1K7Y81-0001Z8-HN for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 17:57:21 +0200 Original-Received: from localhost ([127.0.0.1]:52751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7Y7D-00031Z-Ka for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 11:56:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7Y6i-0002s5-FL for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 11:56:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7Y6g-0002qM-FQ for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 11:56:00 -0400 Original-Received: from [199.232.76.173] (port=47607 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7Y6g-0002q1-5r for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 11:55:58 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:38680) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K7XEL-00088I-Rt for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 10:59:49 -0400 Original-Received: from n24.bullet.mail.mud.yahoo.com ([68.142.206.163]) by mx20.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1K7W28-0006q0-Fy for help-gnu-emacs@gnu.org; Sat, 14 Jun 2008 09:43:08 -0400 Original-Received: from [68.142.200.225] by n24.bullet.mail.mud.yahoo.com with NNFMP; 14 Jun 2008 13:43:01 -0000 Original-Received: from [68.142.201.66] by t6.bullet.mud.yahoo.com with NNFMP; 14 Jun 2008 13:38:49 -0000 Original-Received: from [127.0.0.1] by omp418.mail.mud.yahoo.com with NNFMP; 14 Jun 2008 13:43:07 -0000 X-Yahoo-Newman-Id: 477289.53973.bm@omp418.mail.mud.yahoo.com Original-Received: (qmail 59501 invoked from network); 14 Jun 2008 13:43:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:User-Agent:References:In-Reply-To:MIME-Version:Content-Disposition:Date:Content-Type:Content-Transfer-Encoding:Message-Id; b=b9OH1Xmqew0JDEIt6NL1Q1n/GkwyBsggaQFYQEjmHLoHakZ4BYMtYSqVoalLVZpIEQxu51DKuQ0lYg5IeyIiQ64/Ccrhmwrexgf49Yi0sto4ktOMLGn2XIajEWWQYQ9Y1J1PtehUuOcm6c2g6By0/AGfWx9OIm2kVQx/JmOEgTM= ; Original-Received: from unknown (HELO 212251170197.customer.cdi.no) (juanma_bellon@212.251.170.197 with plain) by smtp127.plus.mail.mud.yahoo.com with SMTP; 14 Jun 2008 13:43:06 -0000 X-YMail-OSG: lOw32LQVM1kO_DWD.6NDiwmQj9LBvcWrcNLWQk0TGV1mu5zdXaQu27BvuYrXssJ85LRXRqDRzovEebRjbTGQcmcY457jbvpz6dlQnjj6bw-- X-Yahoo-Newman-Property: ymail-3 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) In-Reply-To: Content-Disposition: inline X-detected-kernel: by mx20.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:54830 Archived-At: On Saturday 14 June 2008, dsevilla@gmail.com wrote: > Dear all: > > I'm a no tab person. I would like my whitespace-cleanup command to > also perform an untabify. How can this be done? I haven't found any > option that connects untabify and whitespace-cleanup. I'm using: It's easy to put things together in your own function: (defun my-whitespace-cleanup () (interactive) (whitespace-cleanup) (call-interactively 'untabify)) That's the quick&dirty-est way and you should mark a region to use it (as it would be for 'untabify' anyway). Bind it to a key. Done. But, does 'whitespace-cleanup' work for you? I mean, the documentation of `whitespace-buffer' says: +-----------------------------------------------------------------------------+ | 3. Indentation space (8 or more spaces, that should be replaced with TABS). | +-----------------------------------------------------------------------------+ Saludos, Juan