From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco Groccia Newsgroups: gmane.emacs.help Subject: Re: custom-theme-load-path and package system Date: Wed, 4 Sep 2013 10:14:51 +0200 Message-ID: <5226ebfe.056c0e0a.0f88.ffffb3f8@mx.google.com> References: <20130830111619.1480f7a6@mayfly> <87k3j0b9lo.fsf@gmail.com> <5224b69d.81680e0a.273f.fffff09b@mx.google.com> <87hae27y3a.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378282522 23139 80.91.229.3 (4 Sep 2013 08:15:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Sep 2013 08:15:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 04 10:15:25 2013 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 1VH8FJ-0003xB-8p for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Sep 2013 10:15:25 +0200 Original-Received: from localhost ([::1]:50992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH8FI-0002oP-QC for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Sep 2013 04:15:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH8Ez-0002k2-E0 for help-gnu-emacs@gnu.org; Wed, 04 Sep 2013 04:15:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VH8Eq-0000BN-ME for help-gnu-emacs@gnu.org; Wed, 04 Sep 2013 04:15:05 -0400 Original-Received: from mail-ee0-x22b.google.com ([2a00:1450:4013:c00::22b]:36697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VH8Eq-0000Aa-EH for help-gnu-emacs@gnu.org; Wed, 04 Sep 2013 04:14:56 -0400 Original-Received: by mail-ee0-f43.google.com with SMTP id e52so3467864eek.2 for ; Wed, 04 Sep 2013 01:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:to:subject:in-reply-to:references:face :mime-version:content-type:content-transfer-encoding; bh=nsf5LjH62o4miQL/bMMANgWIebhVxMrHyBdGrDc46sc=; b=BlmjVLlQUI3YThjPy52r+gWB2Ym+CznRWam9b0U2OC4dLSzHCgAbUqn8g0Q/rlfQID +r2+xxO1/0t/V77YuNL4wutpMFCbqGp6VAHd9SAj7gcR2THtc1F5lyyFe6LbrSbOCLQM jvKto2OKNYqEmJdfSSgeVpoBOUDN/JZEtHJdCeT869GmaQOqfpZUbx1Yyd3Z0qW6OQef WmvCA7j+uPgTQ+c0rE7vR9b0qHE+AboTBnYgUDepIN0OzXW2j9p/E37tzBL+80NAUuE1 fsrGTjNGQxQfKCkA4AMCoeeVA+vOPpzBiK/xVs1ZEkli8pJCSKVBKxJxV3l6eB32tmBH JM3A== X-Received: by 10.14.216.132 with SMTP id g4mr1356966eep.62.1378282495285; Wed, 04 Sep 2013 01:14:55 -0700 (PDT) Original-Received: from mayfly (host85-81-dynamic.37-79-r.retail.telecomitalia.it. [79.37.81.85]) by mx.google.com with ESMTPSA id p5sm37971783eeg.5.1969.12.31.16.00.00 (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Sep 2013 01:14:54 -0700 (PDT) In-Reply-To: <87hae27y3a.fsf@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.20; x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEUWHSZzSDe+oE6+urdmeU4xNC0PDgrINyTlAAACXUlEQVQ4jaWUTW7bMBCFJ0DIdaiSXVcj+gJRujfpUddSovGaBWre/wh9pO0kKNpVCUg29PG9+eFINP9j0f+Dl/30d3DYPoGD6n4Hqu9gVDWqbzcnMtsNRBFta555mueFjOa71aEp9EsH34iutg28dMU+Mc/zd4JkugdXJZDMM/NIkJw+ATLrLoxF5Q8AJALRESDDi3ieptABGQ+zBb/gM2EXP/XniOMnJL+Sl4kpS/sL55Yy4kR2mXEnaaBS7YBoz4tzPvkrONdSa8uYrMmSjJckDcSvlYqtlgzVsktCDJEe/AcUZGuhlarJMWAvAMd8rMUiq9qu8ooqExS7SAoAthhjC8jFyxCdkM85q60rjIwhW2xxTl+SJ3W6+XO9VOS1rqstdV82hVUImtxSq20Emlov0oomDelaCQhCkLW1lQHgFy8MCWpsBF6P4jyCe3nlcTvXvlrC9tIV8HkdXY71nTSvBrwsOqCmO2l5NZA2jA8Aj3dSbAdu8Bwb4K83UtZfXbGPaGP03h+tu6ZgjOSI4Mkhtgx8qP5KyjrwQD6FIW3q3BAfcnJXsweMh5ctRrSenXsYktzM1JMse9r5FDksmxtdr98iYVpU0vbEB4eWBrXUmqn2JzcFaswhBYVxqecevWZCw0YRt6U28e38msTQ3tINktSFLaxodeZj7/IJ6fp98cF593TxaDfHfmRv1F oMK88OswYBo1BIHvvstqEbw46nbcowZh0wg2kMDjOtiql6xmTWRwwcRxyGhoCDw3a8M9PzoifKsZ2F6oZ30MeJP74lExRjQBM5Sv74dPwG+rr0hWi9RKIAAAAASUVORK5CYII= X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22b 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:93235 Archived-At: Alex Kost [2013-09-03 18:56:41+0400]: > Francesco Groccia (2013-09-02 20:02 +0400) wrote: > > >> What is the value of your custom-theme-load-path? > > > > The value of my custom-theme-load-path is the following: > > '(custom-theme-load-path (quote > > ("/home/fgr/.emacs.d/elpa/zenburn-theme-20130831.739/" > > "~/.emacs.d/themes/" custom-theme-directory t))) > > I suppose it's not the value, but a part of the customization > section of your .emacs. Yes. > Check the value with "C-h v custom-theme-load-path RET". The value is the same as I've already posted. That is: " custom-theme-load-path is a variable defined in `custom.el'. Its value is ("/home/fgr/.emacs.d/elpa/zenburn-theme-20130831.739/" "~/.emacs.d/themes/" custom-theme-directory t) Original value was (custom-theme-directory t) [...] " > What the value will be if you will not customize this variable at > all? > > >> How do you modify it? > > > > I modify it by ``M-x customize-themes''. > > Do you mean "M-x customize-variable"? ...Hm, wait a minute, i think > i guessed what happens to you. You customize zenburn theme (with > "customize-themes") as well, and in your customization section you > have something like this: > > (custom-set-variables > ... > '(custom-enabled-themes (quote (zenburn))) > ... > '(custom-theme-load-path (quote > ("/home/fgr/.emacs.d/elpa/zenburn-theme-20130831.739/" > "~/.emacs.d/themes/" custom-theme-directory t))) > ... > ) That's right! > The problem is that emacs package system is loaded after the init > file, so emacs tries to load zenburn theme before the zenburn > package will add the proper path to `custom-theme-load-path'; > that's why you have to specify this path by hand. To solve it add > these 2 lines in your .emacs before customization section (before > "(custom-set-variables ...)"): > > (setq package-enable-at-startup nil) > (package-initialize) > > P.S. If you just want Emacs to look at "~/.emacs.d/themes/" for > additional themes, it would be better to modify > `custom-theme-directory' instead of `custom-theme-load-path' (by > customizing it or adding (setq custom-theme-directory > "~/.emacs.d/themes/") into your .emacs). Thank you for making yourself available.