From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: add argument to a derived-mode Date: Sun, 15 Jan 2017 17:33:10 -0500 Message-ID: References: <20170112163817.14999b2a@gauss> <20170115124948.5534e9cc@gauss> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1484519640 4523 195.159.176.226 (15 Jan 2017 22:34:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Jan 2017 22:34:00 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Joe Riel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 15 23:33:56 2017 Return-path: Envelope-to: geh-help-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 1cStMq-0007jl-1y for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jan 2017 23:33:40 +0100 Original-Received: from localhost ([::1]:53205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cStMu-0004VJ-P0 for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jan 2017 17:33:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cStMS-0004Tz-Oa for help-gnu-emacs@gnu.org; Sun, 15 Jan 2017 17:33:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cStMP-0001YH-MN for help-gnu-emacs@gnu.org; Sun, 15 Jan 2017 17:33:16 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cStMP-0001Vs-IW for help-gnu-emacs@gnu.org; Sun, 15 Jan 2017 17:33:13 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v0FMXACS015920; Sun, 15 Jan 2017 17:33:11 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 135B9661A5; Sun, 15 Jan 2017 17:33:10 -0500 (EST) In-Reply-To: <20170115124948.5534e9cc@gauss> (Joe Riel's message of "Sun, 15 Jan 2017 12:49:48 -0800") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV5920=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5920> : inlines <5627> : streams <1729240> : uri <2358731> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112117 Archived-At: > Is it a requirement that major modes not take an argument? Technically, not quite (it may be called with no arguments, so any argument it can accept should be optional). > However, if it's considered bad form to pass arguments to them, > I'll make the change, which would allow using define-derived-mode. Yes, it's considered bad form and likely to lead to problems sooner or later. Stefan