[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [IDEA] Add function clean-buffer
From: |
Eli Zaretskii |
Subject: |
Re: [IDEA] Add function clean-buffer |
Date: |
Sat, 09 Sep 2023 10:00:42 +0300 |
> Date: Fri, 08 Sep 2023 17:59:53 -0700
> From: Joseph Turner <joseph@breatheoutbreathe.in>
> CC: emacs-devel@gnu.org, mail+gh@daniel-mendler.de
>
> >Why make this command kill local variables?
> >Most buffer-local variables come from the major mode.
> >Is it really desirable to reliminate the major mode?
> >
> >Eliminating the major mode is what `fundamental-mode' does.
> >Text properties are usually related to the major mode,
> >often due to Font Lock mode.
> >
> >Should `fundamental-mode' eliminate text properties? Or perhaps only
> >some text properties?
> >
> >Should `clean-buffer' eliminate only the text properties and overlays
> >that do NOT come from the major mode?
>
> I'm also concerned that clean-buffer is too vague a function name, and so the
> scope of its behavior is not clear. I can see that some programs may want to
> "clean a buffer" by eliminating text properties and overlays but not killing
> local variables, whereas others may want to do all three and potentially
> something else.
>
> At this point, I'm open to letting this patch go ignored.
Stefan, what is your view on this?
- [IDEA] Add function clean-buffer, Joseph Turner, 2023/09/03
- Re: [IDEA] Add function clean-buffer, Philip Kaludercic, 2023/09/04
- Re: [IDEA] Add function clean-buffer, Richard Stallman, 2023/09/08
- Re: [IDEA] Add function clean-buffer, Joseph Turner, 2023/09/09
- Re: [IDEA] Add function clean-buffer,
Eli Zaretskii <=
- Re: [IDEA] Add function clean-buffer, Stefan Kangas, 2023/09/10
- Re: [IDEA] Add function clean-buffer, Richard Stallman, 2023/09/11