From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: add-hook and defvar Date: Sat, 21 Feb 2015 13:05:36 -0800 (PST) Message-ID: <2fba39e3-171e-49f8-b49a-61349cd93256@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424552766 338 80.91.229.3 (21 Feb 2015 21:06:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Feb 2015 21:06:06 +0000 (UTC) To: bruce.connor.am@gmail.com, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 21 22:05:50 2015 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 1YPHFG-0007Ct-Dj for ged-emacs-devel@m.gmane.org; Sat, 21 Feb 2015 22:05:50 +0100 Original-Received: from localhost ([::1]:37389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPHFF-0007s4-N3 for ged-emacs-devel@m.gmane.org; Sat, 21 Feb 2015 16:05:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPHFC-0007rw-4B for emacs-devel@gnu.org; Sat, 21 Feb 2015 16:05:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPHF7-00053V-2X for emacs-devel@gnu.org; Sat, 21 Feb 2015 16:05:46 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:35980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPHF6-00052e-R2 for emacs-devel@gnu.org; Sat, 21 Feb 2015 16:05:40 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t1LL5cFB031638 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 21 Feb 2015 21:05:39 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t1LL5b2D024828 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 21 Feb 2015 21:05:38 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t1LL5bTJ017853; Sat, 21 Feb 2015 21:05:37 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:183368 Archived-At: > The big disadvantage is that it's not backwards compatible. Any code > out there that relies on the variable being set by `add-hook' will > break. >From that alone it does not sound like a good idea to me. `add-hook' has been around forever. The amount of 3rd-party code that calls it and expects the longstanding behavior must be non-neglible. Just one opinion.