From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?iso-8859-1?Q?Jo=E3o_T=E1vora?=) Newsgroups: gmane.emacs.devel Subject: Re: use-package.el -> Emacs core Date: Tue, 10 Nov 2015 19:32:47 +0000 Message-ID: References: <564136F7.2020404@yandex.ru> <877flqe1a4.fsf@gmail.com> <87twoucaxz.fsf@gmail.com> <877flqc9jh.fsf@gmail.com> <87twout0iu.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447184000 10498 80.91.229.3 (10 Nov 2015 19:33:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2015 19:33:20 +0000 (UTC) Cc: Juanma Barranquero , Emacs developers , Oleh Krehel , Dmitry Gutov To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 10 20:33:12 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 1ZwEfH-0000Rg-L5 for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2015 20:33:11 +0100 Original-Received: from localhost ([::1]:35102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwEfH-0000qq-CQ for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2015 14:33:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwEf3-0000qT-AU for emacs-devel@gnu.org; Tue, 10 Nov 2015 14:32:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwEey-0001hk-Aq for emacs-devel@gnu.org; Tue, 10 Nov 2015 14:32:57 -0500 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:33651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwEey-0001hV-5A; Tue, 10 Nov 2015 14:32:52 -0500 Original-Received: by wmec201 with SMTP id c201so150173686wme.0; Tue, 10 Nov 2015 11:32:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=S9EQ3ZHeo3NWbe3zWWCc4L0/qcuWz0TGrlBOG9BMPAE=; b=dzyyUyHX0M/jh4iWtzLo9gJlXFzKQFywkcWv5W/B0QQu21C2cAdDF77aWtLhxZC3sW bp/+N9VkpJKLn8iFQR1BM2apA7Nfid7G1TeGCMRAW0cU4tSo5nieI5jMB7JowMfA7rK6 7MgAYdYDa4oc4ywKlGONgjQzEKfYLIvcGmTedAXBCL4MRvHVxMRp9k01g9bsb4cy3yhv uMOAzHruItaSeg4YqNepcTZanfv72FR5k28hzjWkiWkvEbVPPxTOaJLkZ7hG2LrZb3I7 MpGZDz5FekNtosSATtn6hgrKkvOXD1/dZxnNyEacd20bqa6nDCwSn0GhvaMrXDnGgqEk E7jA== X-Received: by 10.194.82.202 with SMTP id k10mr6762867wjy.85.1447183971601; Tue, 10 Nov 2015 11:32:51 -0800 (PST) Original-Received: from GONDOMAR.yourcompany.com (mail3.siscog.pt. [195.23.29.18]) by smtp.gmail.com with ESMTPSA id lv4sm5093565wjb.43.2015.11.10.11.32.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 11:32:50 -0800 (PST) In-Reply-To: (John Wiegley's message of "Tue, 10 Nov 2015 10:15:05 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c09::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:193941 Archived-At: John Wiegley writes: >>> (use-package python-mode :load-path "site-lisp/python-mode" :mode "\\.p= y$") > >> But, if using package.el (or el-get), I don't need to write this, right? >> It's already setup by python.el and by whatever method I used to install= it. > > Correct. In fact, I'd _prefer_ it if the user didn't have to touch use-pa= ckage > at all, and could get by with package.el and customize. use-package is the > "next step", after those two. Righto. So after having agreed that `python.el' is not an ideal demonstration of the potential of use-package, in fact it's useless in that one, can you give some better examples? > The only alternatives we need to consider right now is with and without > use-package.el -- for details not taken care of by package.el. el-get is > neither in core nor ELPA, so that knowledge doesn't help this > discussion. But aren't we discussing the potential installation in Emacs of *a* new tool to ease the installation and the configuration of package? If el-get is such a tool, why shouldn't it be included in this discussion? Here's a very simple example: here's a way to configure markdown-mode (package-install 'markdown-mode) (with-eval-after-load 'markdown-mode (modify-syntax-entry ?` "\"" markdown-mode-syntax-table)) Here's a completely different way using el-get (actually, untested and I suspect there's a simpler way, but I think it does what I want) (add-to-list 'el-get-sources '(:name 'markdown-mode :after (modify-syntax-entry ?` "\"" markdown-mode-syntax-= table))) (el-get 'sync 'markdown-mode) And, for completeness, here's the package.el-less way for people who downloaded it separately? (add-to-list 'load-path "path/to/markdown-mode") (require 'markdown-mode-autoloads) (with-eval-after-load 'markdown-mode (modify-syntax-entry ?` "\"" markdown-mode-syntax-table)) How would use-package handle this simple example?=20 >> Then by all means use it :). But should I have to learn it too? > Not necessarily. There are plenty of areas of Emacs that you don't have to > learn, but that doesn't prohibit them from being in Emacs. If you see a b= ug > dealing with use-package and don't want to handle it, don't. I don't think you understood. I don't mean bugs in `use-package', I mean bug reports in my extensions that are reported in terms of `use-package'. Should I not handle those bugs? > It's not a "new way" of configuring packages. It's a WAY period. The I don't understand. It's a "new way", at least for me. Jo=E3o