From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: trunk r112980: * lisp/emacs-lisp/package.el: Don't recompute dir. Use pkg-descs more. Date: Sun, 16 Jun 2013 21:07:34 +0400 Message-ID: <87obb6t25l.fsf@yandex.ru> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371402470 2497 80.91.229.3 (16 Jun 2013 17:07:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2013 17:07:50 +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 Jun 16 19:07:50 2013 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 1UoGQf-0002Pf-Ul for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2013 19:07:50 +0200 Original-Received: from localhost ([::1]:47343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoGQd-0006WB-2K for ged-emacs-devel@m.gmane.org; Sun, 16 Jun 2013 13:07:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoGQX-0006Vj-0U for emacs-devel@gnu.org; Sun, 16 Jun 2013 13:07:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoGQT-0004ob-Gl for emacs-devel@gnu.org; Sun, 16 Jun 2013 13:07:40 -0400 Original-Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:35778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoGQT-0004oX-8V for emacs-devel@gnu.org; Sun, 16 Jun 2013 13:07:37 -0400 Original-Received: by mail-la0-f52.google.com with SMTP id fo12so1734445lab.25 for ; Sun, 16 Jun 2013 10:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:x-antivirus:x-antivirus-status; bh=t/RFANBlikPqPpLmCgJxdZ4BT5LxgejgqbKxteOE3Mo=; b=p7hf8Bxs7s6IlRDqqxTfvPkVCaQBe5H+GSLG1KCkznKui5zYJFNZQ2x0HFrW1uECYG 8cpv2i2RN5anEmtCdt/X7KcFXJ3naUlm+UTpMOjSk4+ti8c57M1Xj5KlUZcLCaOWB6Ej olYSYchxDUOKP2grRtHu8CPegeAfSDF2JWTjzv9h4M2ZAf13bGYZb4zoq0gRqojewBqi /Yxn/qidYzwbKipc5ndc11JXqBuk8fmrJ0pGgwwNkI64P9tEWhUGiRxNYC8fp2Esp7A9 cflwPE3RcLpD3wodVtoKF7VQDfNbqfwXYAwoBIbipjClX/El4vUrAzp8DzCnof0ssdtx xrBA== X-Received: by 10.152.26.166 with SMTP id m6mr5079056lag.50.1371402456381; Sun, 16 Jun 2013 10:07:36 -0700 (PDT) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPSA id x5sm4060461lbx.8.2013.06.16.10.07.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 16 Jun 2013 10:07:35 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 14 Jun 2013 03:20:33 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Antivirus: avast! (VPS 130616-0, 16.06.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 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:160472 Archived-At: Stefan Monnier writes: > ------------------------------------------------------------ > revno: 112980 > revision-id: monnier@iro.umontreal.ca-20130614032018-uowzljhh6kbvcp4i > parent: monnier@iro.umontreal.ca-20130614023128-iedxmujzz2ss1bwe > committer: Stefan Monnier > branch nick: trunk > timestamp: Thu 2013-06-13 23:20:18 -0400 ... > +(defun package-load-descriptor (pkg-dir) > + "Load the description file in directory PKG-DIR." > + (let ((pkg-file (expand-file-name (package--description-file pkg-dir) > + pkg-dir))) > + (when (file-exists-p pkg-file) > + (with-temp-buffer > + (insert-file-contents pkg-file) > + (emacs-lisp-mode) Is using emacs-lisp-mode here necessary? It breaks my configuration, because I have `paredit-mode' in `emacs-lisp-mode-hook', and it's installed via ELPA, and so when this function is called for the first time (at least), Paredit is not yet in `load-path'.