From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: req-package Date: Thu, 13 Aug 2015 17:50:17 +0200 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 1439481035 17623 80.91.229.3 (13 Aug 2015 15:50:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2015 15:50:35 +0000 (UTC) Cc: help-gnu-emacs To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 13 17:50:35 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ZPum2-0003QP-Cf for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 17:50:34 +0200 Original-Received: from localhost ([::1]:43145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPum1-00010Y-OY for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Aug 2015 11:50:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPulo-00010S-JQ for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 11:50:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPulm-0000a9-Lk for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 11:50:20 -0400 Original-Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:33407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPulm-0000Zy-Dh for help-gnu-emacs@gnu.org; Thu, 13 Aug 2015 11:50:18 -0400 Original-Received: by lbbsx3 with SMTP id sx3so29546003lbb.0 for ; Thu, 13 Aug 2015 08:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=4b6yIqvfe9ghKVUW9z3ObIqa/YHQv9MQLorAR4BQRXI=; b=dK2FH8iHhb5AsTuM+YlXnl1wkf0n4aJVdj7Y6lKHds8jgqTyI5LNnllLro3pQQuXiD QsNvnMg39RJ5Khgz9x+RTVq0RSAlPmTSm8ln67TMVaf7jhh5I1un/+Ycl0t9EhTQ35pU auacC1d0s5ZC1qNXuFW//3Z6qtP9C0+B6aIy+YW1m/8fUaY42UoWsJ2wX8b53VyKWAFT GpSgC+iAVlOC46+6VUHgFSYXfviKb0++cJKGCyS8RJioM19SaAtMyNPK48lc5T3BOV8u zC0Ao+utVEs8FjVwdrC+tAA+4uoYq7RvmKYmGW0qZmL+dAkYP+fQzPMvkkIzprvopYzW RYRQ== X-Received: by 10.152.87.20 with SMTP id t20mr22263548laz.80.1439481017208; Thu, 13 Aug 2015 08:50:17 -0700 (PDT) Original-Received: by 10.112.34.17 with HTTP; Thu, 13 Aug 2015 08:50:17 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106538 Archived-At: >> (with-eval-after-load 'closure-mode >> (add-hook 'clojure-mode-hook #'cider-mode)) > >> (with-eval-after-load 'eldoc >> (add-hook 'cider-mode-hook #'eldoc-mode)) > > Why would you need to wrap those in with-eval-after-load? It's true that you don't have to. This is just a bad example, Stefan. Nevertheless, the rationale might still be available. Why should I define the `clojure-mode-hook' variable to populate it with `cinder-mode', while the corresponding `clojure-mode' is never used and is not even installed. With `eldoc' it's clear. Why should `cider-mode' call `eldoc-mode' when `eldoc.el' is not even installed on one's machine?