emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-install not defining org-mode-map?


From: Achim Gratz
Subject: Re: [O] org-install not defining org-mode-map?
Date: Tue, 15 May 2012 08:19:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Eric Abrahamsen writes:
> (require 'org-install)
> (eval-after-load 'org
> ; don't let org steal this key
>   (define-key org-mode-map (kbd "C-'") nil))
>
> There are more such forms later on, they all throw the same error.

I'm out of my depth here, but I'd think that this sort of thing really
belongs into a mode hook.

> I thought org-install was meant to handle this sort of thing?

No.  It sets up all autoload forms so that the public interfaces of org
become visible without actually loading all of org.

> 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.

How long have you been using Emacs24, specifically has it ever worked
there?  The scoping rules for global dynamic variables have changed for
Emacs24 and the exact details seem not to be fully documented yet.  Does
it start working again if you add a

(defvar org-mode-map)

after the require form?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




reply via email to

[Prev in Thread] Current Thread [Next in Thread]