unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: "Lennart Borgman \(gmail\)" <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org, "dsevilla@gmail.com" <dsevilla@gmail.com>
Subject: Re: whitespace-cleanup + untabify?
Date: Mon, 16 Jun 2008 08:28:47 +0200	[thread overview]
Message-ID: <87tzftx59c.fsf@thievol.homelinux.org> (raw)
In-Reply-To: <48558A7B.4030904@gmail.com> (Lennart Borgman's message of "Sun,  15 Jun 2008 23:32:43 +0200")

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> Nikolaj Schumacher wrote:
>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> 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




      reply	other threads:[~2008-06-16  6:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-14 10:56 whitespace-cleanup + untabify? dsevilla
2008-06-14 12:02 ` Juanma Barranquero
2008-06-14 12:03 ` Nikolaj Schumacher
2008-06-14 12:37 ` Kevin Rodgers
2008-06-14 16:49   ` Nikolaj Schumacher
2008-06-14 13:43 ` Juanma
2008-06-14 15:02 ` Rupert Swarbrick
2008-06-14 15:10   ` dsevilla
2008-06-14 16:24 ` Lennart Borgman (gmail)
     [not found] ` <mailman.13261.1213458961.18990.help-gnu-emacs@gnu.org>
2008-06-15 20:05   ` dsevilla
     [not found] ` <mailman.13267.1213460678.18990.help-gnu-emacs@gnu.org>
2008-06-15 20:07   ` dsevilla
2008-06-15 20:53     ` Lennart Borgman (gmail)
2008-06-15 21:23       ` Nikolaj Schumacher
2008-06-15 21:32         ` Lennart Borgman (gmail)
2008-06-16  6:28           ` Thierry Volpiatto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tzftx59c.fsf@thievol.homelinux.org \
    --to=thierry.volpiatto@gmail.com \
    --cc=dsevilla@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).