From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rupert Swarbrick Newsgroups: gmane.emacs.help Subject: Re: whitespace-cleanup + untabify? Date: Sat, 14 Jun 2008 16:02:21 +0100 Organization: albasani.net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213458051 2920 80.91.229.12 (14 Jun 2008 15:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2008 15:40:51 +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:41:32 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 1K7Xsg-0005Ut-3c for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 17:41:30 +0200 Original-Received: from localhost ([127.0.0.1]:42584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7Xrr-0001bt-RY for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jun 2008 11:40:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!feeder.news-service.com!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-X-Trace: news.albasani.net OqgQEm79FQu2QrIcFK2vOG7lcgnnN5HIVHYOx16OjAP6tcsInCQ28xlFlIIWDTAKMIL+rDK6MC7JZOIol8NA/FfpIEtZwEnt3CapTnFDsq6UgUTzoWq7Yw2lXYL0Ws3O Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Sat, 14 Jun 2008 15:02:21 +0000 (UTC) X-User-ID: PglphNlfgBd4qat94ISRJJMblDPNe+h8R5aWTYps5IE= Cancel-Lock: sha1:W+6pdS+SncBpy1I0kmj8+M5zMSo= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-NNTP-Posting-Host: rNNFI84I+LGECsg0RD5Sc0doLxNJFwd0HJzBViV66M8= Original-Xref: news.stanford.edu gnu.emacs.help:159469 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:54827 Archived-At: "dsevilla@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 () (interactive) (untabify (point-min) (point-max)) (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