From: Tobias Geerinckx-Rice via Guix-patches via <guix-patches@gnu.org>
To: 48790@debbugs.gnu.org
Subject: [bug#48790] [PATCH] etc: indent-code.el: Remove any existing tabs.
Date: Wed, 2 Jun 2021 14:26:40 +0200 [thread overview]
Message-ID: <20210602122640.22368-1-me@tobias.gr> (raw)
* 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
next reply other threads:[~2021-06-02 12:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-02 12:26 Tobias Geerinckx-Rice via Guix-patches via [this message]
2021-06-05 21:18 ` [bug#48790] [PATCH] etc: indent-code.el: Remove any existing tabs Ludovic Courtès
2021-06-12 8:27 ` bug#48790: " Tobias Geerinckx-Rice via Guix-patches via
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210602122640.22368-1-me@tobias.gr \
--to=guix-patches@gnu.org \
--cc=48790@debbugs.gnu.org \
--cc=me@tobias.gr \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).