emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#48790: closed ([PATCH] etc: indent-code.el: Remove any existing tabs


From: GNU bug Tracking System
Subject: bug#48790: closed ([PATCH] etc: indent-code.el: Remove any existing tabs.)
Date: Sat, 12 Jun 2021 08:28:02 +0000

Your message dated Sat, 12 Jun 2021 10:27:41 +0200
with message-id <87bl8bzdvm.fsf@nckx>
and subject line Re: bug#48790: [PATCH] etc: indent-code.el: Remove any 
existing tabs.
has caused the debbugs.gnu.org bug report #48790,
regarding [PATCH] etc: indent-code.el: Remove any existing tabs.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
48790: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48790
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#48790: [PATCH] etc: indent-code.el: Remove any existing tabs. Date: Sat, 12 Jun 2021 10:27:41 +0200
Ludovic Courtès 写道:
Good idea, go for it!

Thanks Ludo'!  Pushed as 0b17dc4aaea85bf0e35184909914f81761fedf56.

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]