From: Drew Adams <drew.adams@oracle.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: rms@gnu.org, 32643@debbugs.gnu.org
Subject: bug#32643: 26; minor-mode variables
Date: Fri, 7 Sep 2018 19:25:40 -0700 (PDT) [thread overview]
Message-ID: <54558a99-f16d-41d4-ada4-02b4e598f426@default> (raw)
In-Reply-To: <87zhwsg2s5.fsf@gmail.com>
> > And that "should" is not respected by some variables from basic
> > Emacs itself - in particular `auto-fill-mode'. Shouldn't it be?
> >
> > Nothing requires everything in the Emacs distribution to respect
> > each convention that Emacs sets forth. But is there a reason why
> > `auto-fill-mode' (and others?) should not respect this convention?
> > If nothing else, I'm curious why the exception(s).
>
> 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.
Thanks. It may be obvious to someone looking at the code, but
it's not obvious to someone (or some code) that looks only for
mode variable `auto-fill-mode'.
But yes, in this case it is apparently not a historical accident that
there is no `auto-fill-mode' variable. And the doc string does
helpfully say that you can look at that other variable instead.
(Code looking only for the expected mode variable won't see
that, but a person can.)
> > (The bug report also asks whether it's a bug for a mode not to have
> > a variable, and suggests that it is. And if it's not, the report asks that
> > the Elisp manual give some guidance about when a mode should
> > not or need not have a variable.)
>
> I don't think the Elisp manual needs to fill in for user's common sense
> by telling them they are free to break conventions if it makes sense to
> do so. The fact that it's a "convention" and not a "requirement" should
> be enough.
It's not about users being free to break the convention - that's of
course the case, for all Emacs conventions. It's about having some
idea (see above) of when it might "make sense to do so".
That users are free to not follow an Elisp coding convention is
something different from whether and how much the distributed
Emacs Lisp code should do so. The bug report is not about whether
some user code should follow the convention - you twisted that
around.
next prev parent reply other threads:[~2018-09-08 2:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-05 15:13 bug#32643: 26; minor-mode variables Drew Adams
2018-09-06 5:51 ` Richard Stallman
2018-09-06 14:18 ` Drew Adams
2018-09-06 14:33 ` Eli Zaretskii
2018-09-08 2:07 ` Noam Postavsky
2018-09-08 2:25 ` Drew Adams [this message]
2018-09-09 20:33 ` Noam Postavsky
2018-09-09 22:09 ` Drew Adams
2018-09-12 0:51 ` Noam Postavsky
2018-09-12 1:46 ` Drew Adams
2018-09-13 3:32 ` Richard Stallman
2018-09-13 13:28 ` Basil L. Contovounesios
2018-09-09 6:05 ` Richard Stallman
2018-09-09 14:12 ` Drew Adams
2018-09-10 7:27 ` Andreas Röhler
[not found] ` <<494224f1-815f-4fb4-a779-75e243b519f0@default>
[not found] ` <<83sh2mwv8w.fsf@gnu.org>
2018-09-06 14:51 ` Drew Adams
2018-09-06 18:35 ` Eli Zaretskii
[not found] ` <<<494224f1-815f-4fb4-a779-75e243b519f0@default>
[not found] ` <<<83sh2mwv8w.fsf@gnu.org>
[not found] ` <<488f04e4-8389-459b-b3c7-603e48bed452@default>
[not found] ` <<83lg8ewk2c.fsf@gnu.org>
2018-09-07 0:10 ` Drew Adams
2018-09-07 6:40 ` Eli Zaretskii
2018-09-08 5:13 ` Richard Stallman
2018-09-08 13:58 ` Drew Adams
2018-09-08 17:53 ` Andreas Röhler
[not found] ` <<<<494224f1-815f-4fb4-a779-75e243b519f0@default>
[not found] ` <<<<83sh2mwv8w.fsf@gnu.org>
[not found] ` <<<488f04e4-8389-459b-b3c7-603e48bed452@default>
[not found] ` <<<83lg8ewk2c.fsf@gnu.org>
[not found] ` <<fb9c0be1-c9da-4cf8-aab3-fd54a0a97e68@default>
[not found] ` <<83lg8dvmia.fsf@gnu.org>
2018-09-07 15:07 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54558a99-f16d-41d4-ada4-02b4e598f426@default \
--to=drew.adams@oracle.com \
--cc=32643@debbugs.gnu.org \
--cc=npostavs@gmail.com \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.