[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#32643: 26; minor-mode variables
From: |
Drew Adams |
Subject: |
bug#32643: 26; minor-mode variables |
Date: |
Sun, 9 Sep 2018 07:12:17 -0700 (PDT) |
> > Applying common sense, the obvious explanation is that auto-fill-mode
> > controls only a single variable (i.e., `auto-fill-function'), and adding
> > an extra `auto-fill-mode' which would then have to be kept in sync just
> > to conform to some convention is not worth the trouble.
>
> We could arrange for Auto-Fill mode to be controlled by a variable
> auto-fill-mode. Change the auto-fill code so that two variables
> control it: (and auto-fill-mode auto-fill-function (funcall
> auto-fill-function ...)). Then we could leave auto-fill-function set
> up all the time, and enable/disable the mode by setting auto-fill-mode
> as with most other minor modes.
I do hope that someone does something, perhaps along those lines,
to provide an `auto-fill-mode' variable.
As I said, I'm not familiar with the `:variable' stuff. I'd think that using
`:set' would be sufficient, to ensure that both variables are updated
correctly whenever `auto-fill-mode' is set. But perhaps that would
not suffice to ensure that whenever `auto-fill-function' is set.
(A guess is that using `:variable' provides a simpler or more elegant
way of doing what could be done using `:set'.)
- bug#32643: 26; minor-mode variables, (continued)
- bug#32643: 26; minor-mode variables, Andreas Röhler, 2018/09/08
- bug#32643: 26; minor-mode variables, Noam Postavsky, 2018/09/07
- bug#32643: 26; minor-mode variables, Drew Adams, 2018/09/07
- bug#32643: 26; minor-mode variables, Noam Postavsky, 2018/09/09
- bug#32643: 26; minor-mode variables, Drew Adams, 2018/09/09
- bug#32643: 26; minor-mode variables, Noam Postavsky, 2018/09/11
- bug#32643: 26; minor-mode variables, Drew Adams, 2018/09/11
- bug#32643: 26; minor-mode variables, Richard Stallman, 2018/09/12
- bug#32643: 26; minor-mode variables, Basil L. Contovounesios, 2018/09/13
- bug#32643: 26; minor-mode variables, Richard Stallman, 2018/09/09
- bug#32643: 26; minor-mode variables,
Drew Adams <=
- bug#32643: 26; minor-mode variables, Andreas Röhler, 2018/09/10