unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#48790] [PATCH] etc: indent-code.el: Remove any existing tabs.
@ 2021-06-02 12:26 Tobias Geerinckx-Rice via Guix-patches via
  2021-06-05 21:18 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-06-02 12:26 UTC (permalink / raw)
  To: 48790

* 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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-12  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-02 12:26 [bug#48790] [PATCH] etc: indent-code.el: Remove any existing tabs Tobias Geerinckx-Rice via Guix-patches via
2021-06-05 21:18 ` Ludovic Courtès
2021-06-12  8:27   ` bug#48790: " Tobias Geerinckx-Rice via Guix-patches via

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).