From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Emacs Package Loading & .emacs ?? Date: Mon, 31 Mar 2014 18:38:56 -0700 (PDT) Message-ID: <6ee57633-e8e4-4dff-b782-59bd230b383b@googlegroups.com> References: <86bnwnkm5d.fsf@gmail.com> <86r45ikk8l.fsf@gmail.com> <86ppl2j5ao.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1396316426 1945 80.91.229.3 (1 Apr 2014 01:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2014 01:40:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 01 03:40:19 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 1WUngZ-0002ru-EZ for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Apr 2014 03:40:19 +0200 Original-Received: from localhost ([::1]:52221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUngZ-0003WB-3O for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2014 21:40:19 -0400 X-Received: by 10.182.216.200 with SMTP id os8mr12056689obc.0.1396316338840; Mon, 31 Mar 2014 18:38:58 -0700 (PDT) X-Received: by 10.182.29.9 with SMTP id f9mr403213obh.40.1396316338738; Mon, 31 Mar 2014 18:38:58 -0700 (PDT) Original-Path: usenet.stanford.edu!ur14no211637igb.0!news-out.google.com!gi6ni64igc.0!nntp.google.com!ur14no211626igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <86ppl2j5ao.fsf@gmail.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.12.167; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.12.167 User-Agent: G2/1.0 Injection-Date: Tue, 01 Apr 2014 01:38:58 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:204627 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:96896 Archived-At: On Tuesday, April 1, 2014 5:21:11 AM UTC+5:30, David Masterson wrote: > David Masterson writes: > > W. Greenhouse writes: > >> 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... > Nope -- still not getting it... > I tried adding (require 'org-install) to the after-init-hook. No errors > showed up, but org-version is still 7.9.3f. Ive not yet migrated to the new package system (so what I say may have no relation with your needs) However Ive had problems with recent org not properly shadowing the builtin one properly. Ive 'cured' (you may call it bludgeoned) that problem out by doing (load-file (expand-file-name "~/path/to/org-loaddefs.el")) followed by this (which should be superseded by some package stuff) (add-to-list 'load-path "~/path/to//org-mode/contrib/lisp") After that (require 'org) is not required!