From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "dsevilla@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: whitespace-cleanup + untabify? Date: Sat, 14 Jun 2008 08:10:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <13ecdbf9-b231-4078-8272-ffba79dfba71@r66g2000hsg.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1213458104 3051 80.91.229.12 (14 Jun 2008 15:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2008 15:41:44 +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:42:27 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 1K7XtT-0005mc-JG for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 17:42:19 +0200 Original-Received: from localhost ([127.0.0.1]:42987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7Xse-0001wl-Gb for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 11:41:28 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r66g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 88.25.201.187 Original-X-Trace: posting.google.com 1213456229 7790 127.0.0.1 (14 Jun 2008 15:10:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 14 Jun 2008 15:10:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r66g2000hsg.googlegroups.com; posting-host=88.25.201.187; posting-account=KCw6UwoAAAAgnrFjyySofGyVPbRmZf3_ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008060309 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159471 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:54828 Archived-At: On Jun 14, 5:02=A0pm, Rupert Swarbrick wrote: > "dsevi...@gmail.com" writes: > > 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: > > > GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) > > > I would really appreciate the help. > > > Regards, > > diego. > > I hope I've understood the problem correctly: it seems you want a > command to run whitespace-cleanup and untabify on the current > buffer. As far as I know such a command doesn't exist... > > (defun both-cleanups () > =A0 (interactive) > =A0 (untabify (point-min) (point-max)) > =A0 (whitespace-cleanup)) > > ... well, it does now! > > I must admit I've never used whitespace-cleanup before, and can't get > it to do anything! But that applies to calling it manually too, so I > presume this will work ok for you. > > You probably want to give it a better name and/or a keybinding. > > Rupert Really thanks, Rupert, that was it. I thought you could configure whitespace cleanup command (that is, the Whitespace group of Emacs) so that you could decide either if several spaces were converted to a tab (depending on the default tab size or the one defined locally for the buffer) or just all the tabs and spaces were converted to just spaces. Thanks again, I'll try this. diego.