From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: elpa package loading problem? Date: Sat, 2 Jun 2012 09:44:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338655926 18847 80.91.229.3 (2 Jun 2012 16:52:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Jun 2012 16:52:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 02 18:52:03 2012 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 1SarWm-0000lM-M8 for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Jun 2012 18:50:12 +0200 Original-Received: from localhost ([::1]:51602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SarWm-00038U-95 for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Jun 2012 12:50:12 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!pr7g2000pbb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 40 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1338655575 8105 127.0.0.1 (2 Jun 2012 16:46:15 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 2 Jun 2012 16:46:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: pr7g2000pbb.googlegroups.com; posting-host=76.126.112.84; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:192678 comp.emacs:102499 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:85083 Archived-At: does anyone have problems with emacs package system? recently, installed several packages with it: {=E2=80=9Crainbow-mode=E2=80= =9D, =E2=80=9Cbookmark+=E2=80=9D, =E2=80=9Csmex=E2=80=9D, =E2=80=9Cexpand-region= =E2=80=9D}. But they all have a similar problem related to autoload. For example, let's say rainbow-mode. When in css, it's not loaded. You have to manually call it. So, if you want it to load automatically when in css, you have to add stuff to your init file. Then, this means the package system does not really automatically manage things. You still have know some elisp, and manually add things to your init file. (we talking about basic activation, not advanced customization) The issue is more pronounced with modes such as bookmark+, smex, expand-region. For example, in bookmark+, when i start my emacs, call bookmark =E3=80=90Ctrl+x r l=E3=80=91, it gives a error about some current-= bookmark- file var not defined. Apparently, the problem is that bookmark+ must be properly initialized before i start my bookmark. (when calling bookmark-bmenu-list, it does automatically load bookmark+, but isn't properly initialized) Here, i've spent some 20 min but haven't succeeded in making it work. (i suppose i'll need to take time to understand how elpa loading mechanism works.) Similar things happen with smex, expand-region. For example, smex requires you to define a key for M-x. So i added (global-set-key (kbd "") 'smex) in my init. But after starting emacs, i press the apps key, i get: =E2=80=9CSymbol's function definition is void: smex=E2=80= =9D. If i put (require 'smex), restart, i get =E2=80=9CDebugger entered--Lisp error: (file-error "Cannot open load file" "smex")=E2=80=9D. Next step is to add t= he load path, which i haven't tried yet. But that seems to defeat half of goodness of package system. Any insight on this? for emacs 24, is this the way things are?