From unknown Fri Jun 20 07:09:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#2470 <2470@debbugs.gnu.org> To: bug#2470 <2470@debbugs.gnu.org> Subject: Status: 23.0.90; auto-fill-mode, :minor-mode-function Reply-To: bug#2470 <2470@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:21 +0000 retitle 2470 23.0.90; auto-fill-mode, :minor-mode-function reassign 2470 emacs submitter 2470 "Drew Adams" severity 2470 minor tag 2470 fixed thanks From drew.adams@oracle.com Wed Feb 25 09:59:45 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 25 Feb 2009 17:59:46 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1PHxgFH023337 for ; Wed, 25 Feb 2009 09:59:44 -0800 Received: from mx10.gnu.org ([199.232.76.166]:39569) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LcO0c-0008Hz-9j for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 12:57:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LcO2n-00010z-CD for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 12:59:41 -0500 Received: from rcsinet13.oracle.com ([148.87.113.125]:27300 helo=rgminet13.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcO2n-00010t-1Y for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 12:59:41 -0500 Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1PI0gcu010654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 25 Feb 2009 18:00:44 GMT Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1PHxiU9018312 for ; Wed, 25 Feb 2009 17:59:46 GMT Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 25 Feb 2009 17:59:30 +0000 From: "Drew Adams" To: Subject: 23.0.90; auto-fill-mode, :minor-mode-function Date: Wed, 25 Feb 2009 09:59:33 -0800 Message-ID: <003701c99772$d0fbab30$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcmXctCJzHsFMr8USuWNNuSa9WxT6w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt701.oracle.com [141.146.40.71] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A0B0209.49A58708.00E9:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 1. Someone on EmacsWiki asked how to tell if a given minor mode is on. I said to check the mode variable. The reply was that auto-fill-mode has no mode variable. The code shows this: (put 'auto-fill-function :minor-mode-function 'auto-fill-mode) ;; FIXME: turn into a proper minor mode. ;; Add a global minor mode version of it. (defun auto-fill-mode (&optional arg) ... So it seems to be in need of a fix, but I see no bug filed against it. 2. What is :minor-mode-function? It is used in a couple of places in the Emacs Lisp sources, with no comment or other explanation. It is not in the Elisp manual. It seems to be a way to associate a different function with a minor mode - a function with a different name from the mode itself. For example, `auto-fill-function' is the :minor-mode-function for `auto-fill-mode'. Is this mechanism still needed if `define-minor-mode' is used? Is it just for compatibility with XEmacs code and legacy code? How about documenting it - at least with a comment in the code somewhere: what is for, how and when to use it. In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600) of 2009-02-01 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' From monnier@IRO.UMontreal.CA Wed Feb 25 11:56:58 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 25 Feb 2009 19:56:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1PJutIr028934 for ; Wed, 25 Feb 2009 11:56:56 -0800 Received: from mail.gnu.org ([199.232.76.166]:55894 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LcPq1-0001Er-Vp for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 14:54:38 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LcPsC-0001i2-Ko for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 14:56:53 -0500 Received: from chene.dit.umontreal.ca ([132.204.246.20]:55218) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LcPsC-0001hs-Ba for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 14:56:52 -0500 Received: from alfajor.home (vpn-132-204-232-164.acd.umontreal.ca [132.204.232.164]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n1PJuimB009087; Wed, 25 Feb 2009 14:56:44 -0500 Received: by alfajor.home (Postfix, from userid 20848) id 7F5DDA2C19; Wed, 25 Feb 2009 14:56:44 -0500 (EST) From: Stefan Monnier To: Drew Adams Cc: 2470@debbugs.gnu.org, Subject: Re: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function Message-ID: References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> Date: Wed, 25 Feb 2009 14:56:44 -0500 In-Reply-To: <003701c99772$d0fbab30$c2b22382@us.oracle.com> (Drew Adams's message of "Wed, 25 Feb 2009 09:59:33 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3219=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) > So it seems to be in need of a fix, but I see no bug filed against it. Then file one. > 2. What is :minor-mode-function? It is used in a couple of places in > the Emacs Lisp sources, with no comment or other explanation. It is > not in the Elisp manual. It seems to be a way to associate a > different function with a minor mode - a function with a different > name from the mode itself. For example, `auto-fill-function' is the > :minor-mode-function for `auto-fill-mode'. > Is this mechanism still needed if `define-minor-mode' is used? Is it > just for compatibility with XEmacs code and legacy code? It's got nothing to do with XEmacs, AFAIK, but it does have with legacy code such as auto-fill-function. > How about documenting it - at least with a comment in the code > somewhere: what is for, how and when to use it. When to use it, is easy: never in new code. Stefan From drew.adams@oracle.com Wed Feb 25 12:02:41 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 25 Feb 2009 20:02:42 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1PK2dql030548 for ; Wed, 25 Feb 2009 12:02:40 -0800 Received: from mail.gnu.org ([199.232.76.166]:56295 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LcPva-0001f0-85 for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 15:00:22 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LcPxk-0002bw-Gw for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 15:02:38 -0500 Received: from rcsinet11.oracle.com ([148.87.113.123]:26169 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcPxk-0002bk-6O for emacs-pretest-bug@gnu.org; Wed, 25 Feb 2009 15:02:36 -0500 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1PK4uAs003652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 25 Feb 2009 20:04:58 GMT Received: from acsmt703.oracle.com (acsmt703.oracle.com [141.146.40.81]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1PK2OYY028453; Wed, 25 Feb 2009 20:02:25 GMT Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 25 Feb 2009 20:02:21 +0000 From: "Drew Adams" To: "'Stefan Monnier'" Cc: <2470@debbugs.gnu.org>, References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> Subject: RE: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function Date: Wed, 25 Feb 2009 12:02:18 -0800 Message-ID: <006f01c99783$fad78cb0$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcmXg0TydyivFI/uTIio9cEjamPsdAAAJBkw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt703.oracle.com [141.146.40.81] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.49A5A3CF.020F:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) > From: Stefan Monnier Sent: Wednesday, February 25, 2009 11:57 AM > > So it seems to be in need of a fix, but I see no bug filed > > against it. > > Then file one. Is it a joke? That's what this bug report is. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 18:16:59 2011 Received: (at 2470) by debbugs.gnu.org; 9 Jul 2011 22:16:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qffpa-0008Eb-KW for submit@debbugs.gnu.org; Sat, 09 Jul 2011 18:16:58 -0400 Received: from mail-pw0-f44.google.com ([209.85.160.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QffpY-0008EO-F7 for 2470@debbugs.gnu.org; Sat, 09 Jul 2011 18:16:57 -0400 Received: by pwj5 with SMTP id 5so1976412pwj.3 for <2470@debbugs.gnu.org>; Sat, 09 Jul 2011 15:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=NlXbO7lk6DI3C5MgY5iKBwCAKJpZ+gK1W/ZaDpVvrVs=; b=YZTIzLo+hitnbiV3Jc0Fg/hmmsIx/Wjv+T2T3GRNHZOVVgZheSe4BdlZUo6ujb0W/6 FFg2ZIyO8itv5eIW04FRGjYrCkyPxBN6bAnfTeO6lo+c/jvt1kQNuBcIMm2G8LGOGSdU 4XoPncmfdywDb62gvlNnZYAAjNbDsqdLKPbKE= Received: by 10.143.90.14 with SMTP id s14mr1180973wfl.138.1310249810180; Sat, 09 Jul 2011 15:16:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.144.4 with HTTP; Sat, 9 Jul 2011 15:16:10 -0700 (PDT) In-Reply-To: <003701c99772$d0fbab30$c2b22382@us.oracle.com> References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> From: Juanma Barranquero Date: Sun, 10 Jul 2011 00:16:10 +0200 Message-ID: Subject: Re: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function To: Drew Adams Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 2470 Cc: 2470@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) On Wed, Feb 25, 2009 at 18:59, Drew Adams wrote: > I said to check the mode variable. =C2=A0The reply was that > auto-fill-mode has no mode variable. As you point out below, the "mode variable" for auto-fill-mode is auto-fill-function. Is what gets set in minor-mode-alist, and its a reliable way to know whether the mode is active or not. > ;; FIXME: turn into a proper minor mode. > ;; Add a global minor mode version of it. > (defun auto-fill-mode (&optional arg) > ... > > So it seems to be in need of a fix, but I see no bug filed against it. It now says: ;; FIXME: turn into a proper minor mode. ;; Add a global minor mode version of it. (define-minor-mode auto-fill-mode The comment (from 2002) is still there, but the mode was converted to define-minor-mode in 2010. > Is this mechanism still needed if `define-minor-mode' is used? Is it > just for compatibility with XEmacs code and legacy code? define-minor-mode has an equivalent :variable keyword, used, as in this case, when it is preferable to get/set the mode variable differently, or use another variable. It is not, AFAIK, because of XEmacs compatibility, but cases where the variable is not just a toggle; for example, overwrite-mode uses it too, and also the new emacs-lock-mode that I committed a few days ago. > How about documenting it - at least with a comment in the code > somewhere: what is for, how and when to use it. About :minor-mode-function, Stefan already answered you that should not be used in new code, so nothing to document. Is anything more to be done about this bug? =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 19:11:23 2011 Received: (at 2470) by debbugs.gnu.org; 9 Jul 2011 23:11:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfggE-0002qA-TD for submit@debbugs.gnu.org; Sat, 09 Jul 2011 19:11:23 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfggD-0002q0-IF for 2470@debbugs.gnu.org; Sat, 09 Jul 2011 19:11:22 -0400 Received: from rtcsinet21.oracle.com (rtcsinet21.oracle.com [66.248.204.29]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p69NBD8j024855 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 9 Jul 2011 23:11:15 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by rtcsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p69NBC88002052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Jul 2011 23:11:13 GMT Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p69NB6Gl008920; Sat, 9 Jul 2011 18:11:07 -0500 Received: from dradamslap1 (/10.159.38.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 09 Jul 2011 16:11:06 -0700 From: "Drew Adams" To: "'Juanma Barranquero'" References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> Subject: RE: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function Date: Sat, 9 Jul 2011 16:10:59 -0700 Message-ID: <145EC85C85264E49BF0FA8DD32E55905@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Thread-Index: Acw+heuHf3ngd9TORje+jJIZS1XfQgABxa0w X-Source-IP: rtcsinet21.oracle.com [66.248.204.29] X-CT-RefId: str=0001.0A090208.4E18E014.000B:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 2470 Cc: 2470@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) > Is anything more to be done about this bug? I guess not, if people have taken a look at it and done whatever they think needed doing (if anything). Would someone such as the person who posed the original question about how to tell if this minor mode is on know now how to do that for `auto-fill-mode'? That's really the question, I think. Are things sufficiently clear (e.g. from the doc) that a user would now know how to tell this? I'll let you decide. I don't know what, if anything, has changed since the bug report was filed. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 19:19:37 2011 Received: (at 2470) by debbugs.gnu.org; 9 Jul 2011 23:19:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfgoD-0003tT-Mm for submit@debbugs.gnu.org; Sat, 09 Jul 2011 19:19:37 -0400 Received: from mail-pw0-f44.google.com ([209.85.160.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfgoB-0003tH-Iw for 2470@debbugs.gnu.org; Sat, 09 Jul 2011 19:19:36 -0400 Received: by pwj5 with SMTP id 5so1992774pwj.3 for <2470@debbugs.gnu.org>; Sat, 09 Jul 2011 16:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=WXNg6p7s2L8dNVcagpEq+y5NsfCKT+jgfSUJX/A4zdc=; b=lGsniBJ1CTpRx4tXpdRPOiixZK05F6DLgXOWx0A8IAtbA1p03J2MCfwxSV4QGuUwAf v+XboeUnA9OY+e5XOoA+vtKGfNTOuYoFGfJFw0eyWumlrxTSFiFCGOE9Ft0shQctnlqJ sqPi7+rGCQhHUZTcxjXg7lvOalxb/UcGm50lA= Received: by 10.143.91.16 with SMTP id t16mr1095408wfl.366.1310253569423; Sat, 09 Jul 2011 16:19:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.144.4 with HTTP; Sat, 9 Jul 2011 16:18:49 -0700 (PDT) In-Reply-To: <145EC85C85264E49BF0FA8DD32E55905@us.oracle.com> References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> <145EC85C85264E49BF0FA8DD32E55905@us.oracle.com> From: Juanma Barranquero Date: Sun, 10 Jul 2011 01:18:49 +0200 Message-ID: Subject: Re: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function To: Drew Adams Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: 2470 Cc: 2470@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) On Sun, Jul 10, 2011 at 01:10, Drew Adams wrote: > I guess not, if people have taken a look at it and done whatever they thi= nk > needed doing (if anything). Codewise, I don't think there's anything to be done. > Would someone such as the person who posed the original question about ho= w to > tell if this minor mode is on know now how to do that for `auto-fill-mode= '? > > That's really the question, I think. =C2=A0Are things sufficiently clear = (e.g. from > the doc) that a user would now know how to tell this? Likely not, though strictly speaking, a user that needs to know the variable name will usually be able to take a look at minor-mode-alist and deduce it by himself. In any case, could you please suggest a suitable change for the docstring of auto-fill-mode? =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 10 05:55:22 2011 Received: (at 2470) by debbugs.gnu.org; 10 Jul 2011 09:55:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfqjR-00054Y-29 for submit@debbugs.gnu.org; Sun, 10 Jul 2011 05:55:21 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfqjO-00054M-TC for 2470@debbugs.gnu.org; Sun, 10 Jul 2011 05:55:19 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p6A9tBqX031550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 10 Jul 2011 09:55:13 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p6A9tAhD020988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Jul 2011 09:55:10 GMT Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p6A9t4T7021670; Sun, 10 Jul 2011 04:55:04 -0500 Received: from dradamslap1 (/10.159.32.168) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 10 Jul 2011 02:55:04 -0700 From: "Drew Adams" To: "'Juanma Barranquero'" References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> <145EC85C85264E49BF0FA8DD32E55905@us.oracle.com> Subject: RE: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function Date: Sun, 10 Jul 2011 02:54:55 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acw+jqwRY/+6/EPaSZata36d5lOqrQAV2b+A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A02020A.4E197701.0069:SCFSTAT5015188, ss=1, re=-4.000, fgs=0 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 2470 Cc: 2470@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) > > That's really the question, I think. =A0Are things=20 > > sufficiently clear (e.g. from > > the doc) that a user would now know how to tell this? >=20 > Likely not, though strictly speaking, a user that needs to know the > variable name will usually be able to take a look at minor-mode-alist > and deduce it by himself. >=20 > In any case, could you please suggest a suitable change for the > docstring of auto-fill-mode? I don't see a problem with that doc string in particular. What did you have in mind? This part is a little unclear: "The value of `normal-auto-fill-function' specifies the function to use for `auto-fill-function' when turning Auto Fill mode on." One wonders why it speaks of `auto-fill-function', as if it is something understood (begs the question of its relation to `auto-fill-mode'). If you then click the `auto-fill-function' link you get doc on that = function, but it's not clear at all what it has to do with `auto-fill-mode'. It does say also this: "auto-fill-function is also a variable." But the = name is neither quoted (`...') nor a link to help on that var. And there is = nothing saying anything about what you said: that the variable tells you = whether `auto-fill-mode' is on (which was the OP question). Perhaps we should at least add something like this to the = `auto-fill-mode' doc: "When `auto-fill-mode' is on, variable `auto-fill-function' is = non-`nil'." From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 14:43:31 2011 Received: (at 2470) by debbugs.gnu.org; 16 Jul 2011 18:43:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9pr-00024m-5v for submit@debbugs.gnu.org; Sat, 16 Jul 2011 14:43:31 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9pj-000248-UJ for 2470@debbugs.gnu.org; Sat, 16 Jul 2011 14:43:24 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qi9pX-0003QG-An; Sat, 16 Jul 2011 20:43:11 +0200 From: Lars Magne Ingebrigtsen To: "Drew Adams" Subject: Re: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function In-Reply-To: (Drew Adams's message of "Sun, 10 Jul 2011 02:54:55 -0700") Date: Sat, 16 Jul 2011 20:43:03 +0200 Message-ID: References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> <145EC85C85264E49BF0FA8DD32E55905@us.oracle.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Laurie Anderson's _Home Of The Brave_: "Sharkey's Night" X-Hashcash: 1:23:110716:drew.adams@oracle.com::chhyeX7pdBVrj3Bs:00000000000000000000000000000000000000001pKi X-Hashcash: 1:23:110716:lekktu@gmail.com::Q1dAjAUtmOXhncYW:0TCjP X-Hashcash: 1:23:110716:2470@debbugs.gnu.org::hHu/NMEg7q2yeNuI:00000000000000000000000000000000000000000Qh99 MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Qi9pX-0003QG-An X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311446592.01598@4upd1IpAAbMPr1BU45utag X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 2470 Cc: 'Juanma Barranquero' , 2470@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Drew Adams" writes: > Perhaps we should at least add something like this to the `auto-fill-mode' doc: > > "When `auto-fill-mode' is on, variable `auto-fill-function' is non-`nil'." I've now added this. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 14:43:20 2011 Received: (at control) by debbugs.gnu.org; 16 Jul 2011 18:43:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9pf-00024E-Oe for submit@debbugs.gnu.org; Sat, 16 Jul 2011 14:43:19 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qi9pe-00023z-Fx for control@debbugs.gnu.org; Sat, 16 Jul 2011 14:43:18 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qi9pS-0003Q0-H2 for control@debbugs.gnu.org; Sat, 16 Jul 2011 20:43:06 +0200 Date: Sat, 16 Jul 2011 20:43:05 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #2470 X-MailScanner-ID: 1Qi9pS-0003Q0-H2 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311446587.12843@YiMiaQbwDXWkAx722tx32w X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 2470 fixed close 2470 24.1 From unknown Fri Jun 20 07:09:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 14 Aug 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator