From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: org-install not defining org-mode-map? Date: Tue, 15 May 2012 13:13:54 +0800 Message-ID: <87sjf2rppp.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUA5L-0001EW-4D for emacs-orgmode@gnu.org; Tue, 15 May 2012 01:14:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUA5J-0007zP-AS for emacs-orgmode@gnu.org; Tue, 15 May 2012 01:14:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:44187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUA5J-0007z7-4d for emacs-orgmode@gnu.org; Tue, 15 May 2012 01:14:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SUA5G-00022B-VN for emacs-orgmode@gnu.org; Tue, 15 May 2012 07:14:06 +0200 Received: from 114.252.246.232 ([114.252.246.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 May 2012 07:14:06 +0200 Received: from eric by 114.252.246.232 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 May 2012 07:14:06 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I must have done something odd here, but=E2=80=A6 On emacs startup, org-mode-map is not getting defined for some reason, so a bunch of `eval-after-load' forms are throwing errors. I'm using org from git, and the following is the first offending section: --8<---------------cut here---------------start------------->8--- (require 'org-install) (eval-after-load 'org ; don't let org steal this key (define-key org-mode-map (kbd "C-'") nil)) --8<---------------cut here---------------end--------------->8--- There are more such forms later on, they all throw the same error. Specifically: --8<---------------cut here---------------start------------->8--- Debugger entered--Lisp error: (void-variable org-mode-map) (define-key org-mode-map (kbd "C-'") nil) (eval-after-load (quote org) (define-key org-mode-map (kbd "C-'") nil)) eval-buffer(# nil "/home/eric/.emacs" nil t) ; Reading a= t buffer position 13869 load-with-code-conversion("/home/eric/.emacs" "/home/eric/.emacs" t t) load("~/.emacs" t t) #[0 "\205\262 \306=3D\203=00\307\310Q\202; \311=3D\204=00\307\312Q\202= ;\313\307\314\315#\203*\316\202;\313\307\314\317#\203:\320\nB\321\202;\316\= 322\323\322\211#\210=0B\322=3D\203a\324\325\326\307\327Q!\"\323\322\211#\2= 10=0B\322=3D\203`=01\210=0B\203\243\330=0B!\331\232\203\243\332=0B!\211\333= P\334!\203}\211\202\210\334!\203\207=01\202\210\314\262=01\203\241\335=0B\"= \203\237\336\337=0B#\210\340\341!\210=13\266\f?\205\260\314\323\342\322\211= #)\262\207" [init-file-user system-type delayed-warnings-list user-init-fil= e inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-= nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_e= macs\\(\\.elc?\\)?$" (initialization "`_emacs' init file is deprecated, ple= ase use `.emacs'") "~/_emacs" t load expand-file-name "init" file-name-as-d= irectory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".e= l" file-exists-p file-newer-than-file-p message "Warning: %s is newer than = %s" sit-for 1 "default"] 7 "\n\n(fn)"]() command-line() normal-top-level() --8<---------------cut here---------------end--------------->8--- I thought org-install was meant to handle this sort of thing? Or at least the eval-after-load? Still, org-mode-map is undefined until I've opened my first org file and org is properly loaded. No one else is complaining, so probably I'm doing something wrong, but this used to work fine! I'm also running emacs from git -- perhaps something has changed in the way eval-after-load works? Thanks for any hints, Eric --=20 GNU Emacs 24.1.50.5 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-05-12 on pellet 7.8.09