From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2470: 23.0.90; auto-fill-mode, :minor-mode-function Date: Wed, 25 Feb 2009 14:56:44 -0500 Message-ID: References: <003701c99772$d0fbab30$c2b22382@us.oracle.com> Reply-To: Stefan Monnier , 2470@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235593455 12700 80.91.229.12 (25 Feb 2009 20:24:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2009 20:24:15 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 2470@emacsbugs.donarmstrong.com To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 25 21:25:31 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LcQJa-0008E2-Bo for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Feb 2009 21:25:11 +0100 Original-Received: from localhost ([127.0.0.1]:49920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcQIF-0003CO-Hq for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Feb 2009 15:23:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LcQIA-0003Bh-Ej for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 15:23:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LcQI9-0003B1-DR for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 15:23:41 -0500 Original-Received: from [199.232.76.173] (port=38184 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LcQI9-0003Aj-8W for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 15:23:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51342) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LcQI8-0000WB-Fl for bug-gnu-emacs@gnu.org; Wed, 25 Feb 2009 15:23:40 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1PKNb5t005113; Wed, 25 Feb 2009 12:23:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1PK56WS031692; Wed, 25 Feb 2009 12:05:06 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 25 Feb 2009 20:05:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2470 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123559181828944 (code B ref -1); Wed, 25 Feb 2009 20:05:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 25 Feb 2009 19:56:58 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: by alfajor.home (Postfix, from userid 20848) id 7F5DDA2C19; Wed, 25 Feb 2009 14:56:44 -0500 (EST) 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) 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) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 25 Feb 2009 15:23:41 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25707 gmane.emacs.pretest.bugs:23989 Archived-At: > 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