* [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
* [bug#48790] [PATCH] etc: indent-code.el: Remove any existing tabs.
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
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2021-06-05 21:18 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 48790
Hi,
Tobias Geerinckx-Rice <me@tobias.gr> skribis:
> * etc/indent-code.el (main): Call UNTABIFY on the sexp or entire buffer.
Good idea, go for it!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#48790: [PATCH] etc: indent-code.el: Remove any existing tabs.
2021-06-05 21:18 ` Ludovic Courtès
@ 2021-06-12 8:27 ` Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2021-06-12 8:27 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 48790-done
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
Ludovic Courtès 写道:
> Good idea, go for it!
Thanks Ludo'! Pushed as 0b17dc4aaea85bf0e35184909914f81761fedf56.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
^ permalink raw reply [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).