From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: term-setup-hook v tty-setup-hook v emacs-startup-hook Date: Mon, 24 Feb 2014 14:06:32 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1393247237 17327 80.91.229.3 (24 Feb 2014 13:07:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2014 13:07:17 +0000 (UTC) Cc: Emacs developers To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 24 14:07:25 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 1WHvFj-0001NT-Vq for ged-emacs-devel@m.gmane.org; Mon, 24 Feb 2014 14:07:24 +0100 Original-Received: from localhost ([::1]:57567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHvFj-0001y5-HG for ged-emacs-devel@m.gmane.org; Mon, 24 Feb 2014 08:07:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHvFb-0001r8-Oc for emacs-devel@gnu.org; Mon, 24 Feb 2014 08:07:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHvFa-0004Vf-VM for emacs-devel@gnu.org; Mon, 24 Feb 2014 08:07:15 -0500 Original-Received: from mail-yk0-x22c.google.com ([2607:f8b0:4002:c07::22c]:33666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHvFY-0004VM-Vn; Mon, 24 Feb 2014 08:07:13 -0500 Original-Received: by mail-yk0-f172.google.com with SMTP id 200so14353600ykr.3 for ; Mon, 24 Feb 2014 05:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=7gIYQZMuq6/4cryWOTsX1U+UKqJQqlGire2rkaBeoPI=; b=sojttSRMlinHTptkFfyUw6qV42WZpO4Zyjbd7vTieVv3d3UAcEtLl2kYkDBVOGXNSP 3YP+2luygbbCBCMW4V16MWwxm3x9u7dz98gyBaKZXsHsuvorE0t+hpY9SYYFqtCuZvah snzIW4XmjbnGU9C2T3MrnveS5OYC7KB67tIpIWXjl0Cj/NXCIH1SiITpAHORS4L/BaDl wO8y23MioKo75UVH7s0I/RwGj6B8KZD1vWzPeFjwvTBnHgz+xsrQKXrxTigQOMhafAim 51jgCYgWD5Qqm0H7KGtHyFxoFFgvkh23pQoWeCk92NGcACgjedwB7N4PxlrqWHOqrRVY FUcA== X-Received: by 10.236.16.83 with SMTP id g59mr8564016yhg.14.1393247232538; Mon, 24 Feb 2014 05:07:12 -0800 (PST) Original-Received: by 10.170.197.1 with HTTP; Mon, 24 Feb 2014 05:06:32 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::22c 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:169834 Archived-At: On Mon, Feb 24, 2014 at 9:17 AM, Glenn Morris wrote: > On inspection, term-setup-hook seems to serve no purpose. > It is run by startup.el immediately after emacs-startup-hook. > So anything that you might want to use term-setup-hook for, > you could just as well use emacs-startup-hook instead. Yes. They are conceptually different, but for all purposes they're identical. > I think it would be less confusing if term-setup-hook were made > obsolete (and undocumented) in favour of emacs-startup-hook. Agreed. We run at least five hooks during initialization. If we can reduce that to four without losing functionality, that's a net gain. So we should simply do (define-obsolete-variable-alias 'term-setup-hook 'emacs-startup-hook "24.4") and of course fix the "The Init File" and "Terminal-Specific Initialization" nodes of the Elisp manual.