GNU bug report logs - #76355
[PATCH] Add new minor mode for clear whitespaces on save.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Mon, 17 Feb 2025 00:02:01 UTC

Severity: wishlist

Tags: patch

Done: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#76355: closed ([PATCH] Add new minor mode for clear
 whitespaces on save.)
Date: Mon, 05 May 2025 20:00:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 5 May 2025 13:58:58 -0600
with message-id <CACnP4NJFjo+BoZLWRU3Afpa_DEbugToNERtbNBaHeaTMvmrK=A <at> mail.gmail.com>
and subject line Re: [PATCH] Add new minor mode for clear whitespaces on save.
has caused the debbugs.gnu.org bug report #76355,
regarding [PATCH] Add new minor mode for clear whitespaces on save.
to be marked as done.

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


-- 
76355: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76355
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add new minor mode for clear whitespaces on save.
Date: Sun, 16 Feb 2025 18:00:56 -0600
[Message part 3 (text/plain, inline)]
Tags: patch

This feature adds a minor mode (and global) for clean whitespaces in
current file/buffer on save.

I know that already exists the option 'auto-cleanup' in
whitespace-action that does the same, however, it just depends on the
whitespace-mode, so if i turn-off whitespace-mode auto-cleanup won't
work.

Also I know there's already a package on MELPA that does something like
this, however i think this kind of functionality must be included in
Emacs so I did my own implementation.

This patch is just a working prototype, and I want to know if there is
interest in this so I can polish it.


In GNU Emacs 31.0.50 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
 3.24.43, cairo version 1.18.2) of 2025-02-03 built on
 49a55a317a644839ad7d857f65aa5be0
System Description: Fedora Linux 41 (Workstation Edition)

Configured using:
 'configure --build=x86_64-redhat-linux --host=x86_64-redhat-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-cairo --with-dbus --with-gif --with-gpm=no --with-harfbuzz --with-jpeg --with-modules --with-native-compilation=aot --with-pgtk --with-png --with-rsvg --with-sqlite3 --with-tiff --with-tree-sitter --with-webp --with-xpm build_alias=x86_64-redhat-linux host_alias=x86_64-redhat-linux CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'

[0001-Add-new-minor-mode-for-clear-whitespaces-on-save.patch (text/patch, attachment)]
[Message part 5 (text/plain, inline)]
-- 
                                                   - E.G via GNU Emacs.
[Message part 6 (message/rfc822, inline)]
From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: 76355-done <at> debbugs.gnu.org
Subject: Re: [PATCH] Add new minor mode for clear whitespaces on save.
Date: Mon, 5 May 2025 13:58:58 -0600
[Message part 7 (text/plain, inline)]
Closing in favor bug#78264 that have a better implementation.
[Message part 8 (text/html, inline)]

This bug report was last modified 16 days ago.

Previous Next


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