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: Sun, 15 Jun 2008 13:05:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5c229837-f27c-4871-8a2b-50af196510d7@59g2000hsb.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 1213562449 28504 80.91.229.12 (15 Jun 2008 20:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Jun 2008 20:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 15 22:41:33 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 1K7z2Y-00007p-Hk for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jun 2008 22:41:30 +0200 Original-Received: from localhost ([127.0.0.1]:59062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7z1k-00042q-EK for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jun 2008 16:40:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!59g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 88.25.201.187 Original-X-Trace: posting.google.com 1213560358 20645 127.0.0.1 (15 Jun 2008 20:05:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 15 Jun 2008 20:05:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 59g2000hsb.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:159504 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:54859 Archived-At: On Jun 14, 3:43=A0pm, Juanma wrote: > On Saturday 14 June 2008, dsevi...@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 () > =A0 (interactive) > =A0 (whitespace-cleanup) > =A0 (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 TAB= S). | > +-------------------------------------------------------------------------= ----+ > > Saludos, > Juan Hello, Juan: Yes, it has worked always. It does what it should do, but certain tabs weren't converted to spaces (as I wanted) and/or it inserted tabs (I haven't tested this one, but still). What I wanted was to remove tabs and substitute them by spaces. The solutions of defining a new function worked nicely. Thanks, diego.