From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#32643: 26; minor-mode variables Date: Sun, 9 Sep 2018 07:12:17 -0700 (PDT) Message-ID: <6405ba72-f429-4bf8-a054-31f72b2902ea@default> References: <3ce888af-aa04-4dd2-99b5-0882e37024f3@default> <494224f1-815f-4fb4-a779-75e243b519f0@default> <87zhwsg2s5.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536502268 18207 195.159.176.226 (9 Sep 2018 14:11:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2018 14:11:08 +0000 (UTC) Cc: 32643@debbugs.gnu.org To: rms@gnu.org, Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 16:11:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fz0QY-0004di-L8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2018 16:11:02 +0200 Original-Received: from localhost ([::1]:47563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fz0Se-0007Cp-Rq for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Sep 2018 10:13:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fz0SY-0007Cj-Je for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 10:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fz0SU-0002V3-Ff for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 10:13:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fz0SU-0002PS-A2 for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 10:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fz0ST-0003y9-TC for bug-gnu-emacs@gnu.org; Sun, 09 Sep 2018 10:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Sep 2018 14:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32643 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32643-submit@debbugs.gnu.org id=B32643.153650235015189 (code B ref 32643); Sun, 09 Sep 2018 14:13:01 +0000 Original-Received: (at 32643) by debbugs.gnu.org; 9 Sep 2018 14:12:30 +0000 Original-Received: from localhost ([127.0.0.1]:51411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fz0Rw-0003ws-CW for submit@debbugs.gnu.org; Sun, 09 Sep 2018 10:12:28 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:55330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fz0Rt-0003wX-Oc for 32643@debbugs.gnu.org; Sun, 09 Sep 2018 10:12:26 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w89E94q5118779; Sun, 9 Sep 2018 14:12:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=7nrkAI7kOoqSsNOeu4znwI1REQZTDBC2jJeIiGzjwDs=; b=LX1St3TRqLekE5uQbt75G02yxxomKd/h3/AN2kQNfNsvg6HX86C3+OYu48dYF+Mel6Nh WV1sseQbbIkGiYUd+6tAMlh7HRZiUUW+tI9haNbRLOXHIxDRp27prHmKn3aSeIkfbjo+ yLAJNoBM2uSPNKmXg30sDrNiEpT3lQZl8hrG8a9QALCFdxhgTp3ciGRO45cjW1u07ZKx 1gOmm1ozmVmkBgt+TzPyY3CPQPL43cUAPlXT5Wca8dlW0YPmlKRNOKpNPHyxED5CXzTQ z1CKdNkmPSRZG7/TQSAjqoY6y91a8yTcJ1GorGyhlt6N2zUl8yItCaUOaTnFzfRJf3tB eA== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2mc72qaeat-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 09 Sep 2018 14:12:20 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w89ECIu2021770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Sep 2018 14:12:19 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w89ECIr2030689; Sun, 9 Sep 2018 14:12:18 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9010 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=903 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809090156 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150160 Archived-At: > > Applying common sense, the obvious explanation is that auto-fill-mode > > controls only a single variable (i.e., `auto-fill-function'), and add= ing > > an extra `auto-fill-mode' which would then have to be kept in sync ju= st > > to conform to some convention is not worth the trouble. >=20 > 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 usin= g `: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'.)