From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: W. Greenhouse Newsgroups: gmane.emacs.help Subject: Re: Emacs Package Loading & .emacs ?? Date: Tue, 01 Apr 2014 14:42:31 +0000 Message-ID: <8761mt9kmg.fsf@motoko.kusanagi> References: <86bnwnkm5d.fsf@gmail.com> <86r45ikk8l.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396363413 28365 80.91.229.3 (1 Apr 2014 14:43:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2014 14:43:33 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Apr 01 16:43:28 2014 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 1WUzuL-00052e-PD for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 16:43:21 +0200 Original-Received: from localhost ([::1]:60773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUzuL-0008SW-Dq for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 10:43:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUztu-0007v7-Ba for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 01 Apr 2014 10:43:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUztm-0004FK-RK for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 01 Apr 2014 10:42:54 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUztm-0004FG-Lg for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 01 Apr 2014 10:42:46 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WUztk-0000k2-Nl for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 01 Apr 2014 16:42:44 +0200 Original-Received: from wannabe.torservers.net ([96.47.226.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Apr 2014 16:42:44 +0200 Original-Received: from wgreenhouse by wannabe.torservers.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Apr 2014 16:42:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: wannabe.torservers.net X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:S2qkL9JXw7LAmvG8jDAFGfWMJAo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:96906 Archived-At: David Masterson writes: > As mentioned above, if I don't (require 'org) at the right time, then > the wrong version of org is loaded. Since org-version is already > defined, then that means that Org has already been loaded and, so, there > is no need to reload it. The only problem is that it is that wrong one. Indeed, `require' doesn't do anything if a library fitting that feature name (`provide' form) is already loaded. So there should be nothing magical about `require' here that would cause it to load the correct org. >> 2. The correct form would be (require 'org-install) anyway, if you were >> manually loading org. >> >> 3. If you decide for some reason that you really do need to use >> (require 'org-install), you should do this from `after-init-hook' >> (which is run at step 17 of (info "(elisp) Startup Summary"), well >> after package init), OR you can explicitly (package-initialize) early >> in init and (setq package-enable-at-startup nil) to skip step 15. >> above. (info "(emacs) Package Installation") details some of the >> pros and cons of each approach. > > Hmmm. I'll have to recheck that. This goes against the standard way of > loading Emacs libraries that I've been using for 20+ years! Never needed > to use after-init-hook before. It's so hard to teach an old dog new > tricks... The after-init-hook method works for me. What config did you use?