From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Niessen Newsgroups: gmane.emacs.bugs Subject: bug#18332: 24.3.93; Convenience is a malformed function when installing ELPA package Date: Tue, 02 Sep 2014 12:12:11 +0200 Organization: My Googlest Message-ID: <86r3zunxfo.fsf@somewhere.org> References: <86ppfnoed8.fsf@somewhere.org> <5a61hfdyfp.fsf@fencepost.gnu.org> <8661hbm2nl.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409652861 31158 80.91.229.3 (2 Sep 2014 10:14:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2014 10:14:21 +0000 (UTC) Cc: 18332-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Sep 02 12:14:15 2014 Return-path: Envelope-to: geb-bug-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 1XOl6N-0003Ns-E3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2014 12:14:15 +0200 Original-Received: from localhost ([::1]:37058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOl6M-0005ms-Vc for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2014 06:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOl6F-0005lb-S8 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 02 Sep 2014 06:14:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOl6B-0002Z7-IW for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 02 Sep 2014 06:14:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOl6B-0002Z3-Eb for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 02 Sep 2014 06:14:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XOl6A-0001Zb-QD for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 02 Sep 2014 06:14:02 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: Fabrice Niessen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org Resent-Date: Tue, 02 Sep 2014 10:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 18332 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 18332-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B18332.14096528005982 (code B ref 18332); Tue, 02 Sep 2014 10:14:02 +0000 Original-Received: (at 18332) by debbugs.gnu.org; 2 Sep 2014 10:13:20 +0000 Original-Received: from localhost ([127.0.0.1]:56391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XOl5T-0001YO-E7 for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Tue, 02 Sep 2014 06:13:20 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:24114 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XOl5Q-0001Y9-9r for 18332-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Tue, 02 Sep 2014 06:13:17 -0400 Original-Received: from mundaneum.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPSA id F2BB45001FA; Tue, 2 Sep 2014 12:13:09 +0200 (CEST) X-Url: http://www.MyGooglest.com/fni X-Archive: encrypt In-Reply-To: (Glenn Morris's message of "Fri, 29 Aug 2014 17:56:22 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (cygwin) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:92955 Archived-At: Glenn Morris wrote: > Fabrice Niessen wrote: > >> Anyway, I got the exact same problem in many other "ELPA" packages >> (Dired+, Helm, YASnippet, etc.) though not all (not in Dired-single, >> Fuzzy, Idle-require to name a few). >> >> Half wrong, half right. I had to delete the package-pkg.el(c) files, in >> order to be able to launch Cygwin Emacs-w32. Dunno why the exact same >> config works with native Emacs, and not with Cygwin, why both programs >> go and fetch their packages at the same place on my file system... > > IIUC: > If the problematic pkg.el file is on the server that you get the > packages from, then that's a problem with that server and you should > report it to whoever admins it. > > If it is not on the server but instead generated on your machine when > you install the package, then please provide a minimum example starting > from emacs -Q that shows the problem. I understood that the problem depends on which Emacs version I'm using to install the packages: - with Emacs 24.3.1, it's OK: "keywords" list is correctly QUOTED in the generated `xxx-pkg.el' file. - with Emacs 24.3.93.1 (of 2014-08-15), it's NOT, as you can see on http://screencast.com/t/ilxgafLbh. Best regards, Fabrice PS- Here is my MWE file for launching Emacs: --8<---------------cut here---------------start------------->8--- (require 'package) ;; archives from which to fetch (setq package-archives (append '(("org" . "http://orgmode.org/elpa/") ("melpa" . "http://melpa.milkbox.net/packages/")) package-archives)) ;; load the latest version of all installed packages, and activate them (package-initialize) (defvar my/elpa-packages '(yasnippet) "A list of packages to ensure are installed at Emacs startup.") (defun my/missing-elpa-packages () "List packages to install which are neither built-in nor already installed." (let (missing-elpa-packages) (dolist (pkg my/elpa-packages) (unless (or (package-installed-p pkg) (locate-library (symbol-name pkg))) (push pkg missing-elpa-packages))) missing-elpa-packages)) ;; propose to install all the packages specified in `my/elpa-packages' ;; which are missing (let ((missing-elpa-packages (my/missing-elpa-packages))) (when missing-elpa-packages ;; download once the ELPA archive description (package-refresh-contents) ; Ensure that the list of packages is ; up-to-date. Otherwise, new packages ; (not present in the cache of the ELPA ; contents) won't install. (dolist (pkg missing-elpa-packages) (if (yes-or-no-p (format "Install ELPA package `%s'? " pkg)) (ignore-errors (package-install pkg)); must be run after initializing ; `package-initialize' (message (concat "Customize `my/elpa-packages' to ignore " "the `%s' package at next startup...") pkg) (sit-for 1.5))))) ;; don't truncate package names in Emacs package list (add-hook 'package-menu-mode-hook (lambda () (setq tabulated-list-format [("Package" 28 package-menu--name-predicate) ("Version" 14 nil) ("Status" 10 package-menu--status-predicate) ("Description" 0 nil)]) (tabulated-list-init-header))) --8<---------------cut here---------------end--------------->8---