From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: why do some programming modes have customize hooks and others do not? Date: Sat, 18 Oct 2014 23:24:29 +0100 Message-ID: <871tq5dnj6.fsf@ferrier.me.uk> References: <87bnp9eir3.fsf@ferrier.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413671097 16834 80.91.229.3 (18 Oct 2014 22:24:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Oct 2014 22:24:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 19 00:24:49 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XfcQa-0006dO-Os for ged-emacs-devel@m.gmane.org; Sun, 19 Oct 2014 00:24:48 +0200 Original-Received: from localhost ([::1]:37922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfcQa-0005mu-83 for ged-emacs-devel@m.gmane.org; Sat, 18 Oct 2014 18:24:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfcQR-0005iM-5e for emacs-devel@gnu.org; Sat, 18 Oct 2014 18:24:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfcQL-0006F7-0z for emacs-devel@gnu.org; Sat, 18 Oct 2014 18:24:39 -0400 Original-Received: from static.17.66.46.78.clients.your-server.de ([78.46.66.17]:43218 helo=po1.ferrier.me.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfcQK-0006EK-R2 for emacs-devel@gnu.org; Sat, 18 Oct 2014 18:24:32 -0400 Original-Received: from nicferrier-dell-xps (140.35.155.90.in-addr.arpa [90.155.35.140]) by po1.ferrier.me.uk (Postfix) with ESMTPA id 9E238AC0334; Sun, 19 Oct 2014 00:41:25 +0200 (CEST) Original-Received: from nicferrier-XPS13-9333 (localhost [127.0.0.1]) by nicferrier-dell-xps (Postfix) with ESMTPS id C07FF6001A; Sat, 18 Oct 2014 23:24:29 +0100 (BST) In-Reply-To: (Stefan Monnier's message of "Sat, 18 Oct 2014 17:46:14 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 78.46.66.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175547 Archived-At: Stefan Monnier writes: >> Emacs-Lisp mode has a customizable hook variable but erlang-mode does >> not. > > define-derived-mode currently defines the hook with `defvar', so you'll > only get a customizable hook if the mode author explicitly added > a defcustom for it. erlang-mode actually has a separate defvar for it. Nic