GNU bug report logs - #48790
[PATCH] etc: indent-code.el: Remove any existing tabs.

Previous Next

Package: guix-patches;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Wed, 2 Jun 2021 12:27:02 UTC

Severity: normal

Tags: patch

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48790 in the body.
You can then email your comments to 48790 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#48790; Package guix-patches. (Wed, 02 Jun 2021 12:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 02 Jun 2021 12:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: guix-patches <at> gnu.org
Subject: [PATCH] etc: indent-code.el: Remove any existing tabs.
Date: Wed,  2 Jun 2021 14:26:40 +0200
* etc/indent-code.el (main): Call UNTABIFY on the sexp or entire buffer.
---
 etc/indent-code.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/etc/indent-code.el b/etc/indent-code.el
index 84b15b356f..bdea8ee8bf 100755
--- a/etc/indent-code.el
+++ b/etc/indent-code.el
@@ -99,6 +99,8 @@
                             nil t)
          (let ((indent-tabs-mode nil))
            (beginning-of-defun)
+           (mark-sexp)
+           (untabify (point) (mark))
            (indent-sexp)
            (save-buffer)
            (message "Done!"))
@@ -108,6 +110,7 @@
      ;; Indent all of FILE-NAME.
      (find-file file-name)
      (let ((indent-tabs-mode nil))
+       (untabify (point-min) (point-max))
        (indent-region (point-min) (point-max))
        (save-buffer)
        (message "Done!")))
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#48790; Package guix-patches. (Sat, 05 Jun 2021 21:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 48790 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 48790 <at> debbugs.gnu.org
Subject: Re: bug#48790: [PATCH] etc: indent-code.el: Remove any existing tabs.
Date: Sat, 05 Jun 2021 23:18:27 +0200
Hi,

Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:

> * etc/indent-code.el (main): Call UNTABIFY on the sexp or entire buffer.

Good idea, go for it!

Ludo’.




Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Sat, 12 Jun 2021 08:28:02 GMT) Full text and rfc822 format available.

Notification sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
bug acknowledged by developer. (Sat, 12 Jun 2021 08:28:02 GMT) Full text and rfc822 format available.

Message #13 received at 48790-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 48790-done <at> debbugs.gnu.org
Subject: Re: bug#48790: [PATCH] etc: indent-code.el: Remove any existing tabs.
Date: Sat, 12 Jun 2021 10:27:41 +0200
[Message part 1 (text/plain, inline)]
Ludovic Courtès 写道:
> Good idea, go for it!

Thanks Ludo'!  Pushed as 0b17dc4aaea85bf0e35184909914f81761fedf56.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Jul 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.