From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: whitespace-cleanup + untabify? Date: Mon, 16 Jun 2008 08:28:47 +0200 Message-ID: <87tzftx59c.fsf@thievol.homelinux.org> References: <1da58e0f-ef3b-4b56-bb83-c2aec1da0932@59g2000hsb.googlegroups.com> <4855814A.9070101@gmail.com> <48558A7B.4030904@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213597436 1621 80.91.229.12 (16 Jun 2008 06:23:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 06:23:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, "dsevilla@gmail.com" To: "Lennart Borgman \(gmail\)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 08:24:40 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 1K888s-0002G7-Eh for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 08:24:38 +0200 Original-Received: from localhost ([127.0.0.1]:54731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8883-0002Eg-KA for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 02:23:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K887g-0002CK-TX for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 02:23:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K887f-0002BR-Uh for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 02:23:24 -0400 Original-Received: from [199.232.76.173] (port=44072 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K887f-0002B9-JT for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 02:23:23 -0400 Original-Received: from hu-out-0506.google.com ([72.14.214.235]:7510) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K887f-0002Em-5t for help-gnu-emacs@gnu.org; Mon, 16 Jun 2008 02:23:23 -0400 Original-Received: by hu-out-0506.google.com with SMTP id 34so6688112hud.1 for ; Sun, 15 Jun 2008 23:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=fm3l4nU3zCK6OpH/jeCGR16q7xCfT3TdOoGyK6SIoBY=; b=rKvKxCtrBmmX2u6VwLii1Ve5ru3dBamgTdI+cm8SF4OYaZjkd8YmJYAyYweM9KYTeB Yt28SjeSPrEtDBdpwUdNzREqYZWPmnFNz0w3HKhepPqOxDoJwXQjJaA4CIKoX0zRMlaW c88p7FzYAyR+ao3I/b/quO8SdM+08TKM7tsjk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=vG81cB9iQPer0ElvPK/aQ/uKG5UmqadBDjUV75f8Hr2b0VtwnK/4tvNkZIoUwzmKen UF44RqkOM3vqGICvE0w3kxmnQQmxs/Dm4JJ6PsuUGc2qt4m0tsOdqIxJ2cQ/hlg368LI F+JlnVToJ26TyHEX4+oeF9C9eVHnsdbDj4C8s= Original-Received: by 10.210.40.10 with SMTP id n10mr5725208ebn.131.1213597401449; Sun, 15 Jun 2008 23:23:21 -0700 (PDT) Original-Received: from thievol.homelinux.org ( [77.197.77.55]) by mx.google.com with ESMTPS id p10sm9892041gvf.7.2008.06.15.23.23.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 15 Jun 2008 23:23:20 -0700 (PDT) In-Reply-To: <48558A7B.4030904@gmail.com> (Lennart Borgman's message of "Sun, 15 Jun 2008 23:32:43 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:54868 Archived-At: "Lennart Borgman (gmail)" writes: > Nikolaj Schumacher wrote: >> "Lennart Borgman (gmail)" wrote: >> >>>>> I have never used whitespace-cleanup (I use delete-trailing-whitespace), >>>>> but from the doc of this function it looks like it also untabifies if >>>>> `indent-tabs-mode' is nil. Does not that work? >>>> Yes, that's what I thought, but was not the case, as if I applied >>>> whitespace-cleanup and then untabify, the file was modified (that is, >>>> it still converted *some* tabs to spaces), so I assumed it didn't work >>>> this way. I had indent-tabs-mode set to nil also. >>> In that case it looks like a bug to me. Could you please send a bug report >> >>>>From the documentation it appears to me that it will transform 8 >> spaces to tabs, but not vice-versa. So I don't think it's necessarily a >> bug. But I do think it would be a good feature to add. > > You might be right about the doc, I don't understand it ;-) > > It looks like a simple alternative that is equivalent to untabify + > delete-trailing-whitespace indeed is a good feature to add. > > Hello all, did somebody try something like: ,---- | (add-hook 'picture-mode-hook 'untabify) `---- Not tested but it should work. -- A + Thierry Pub key: http://pgp.mit.edu