From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: org-install not defining org-mode-map? Date: Tue, 15 May 2012 08:19:40 +0200 Message-ID: <87zk9a2cg3.fsf@Rainer.invalid> References: <87sjf2rppp.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUB6x-0003Me-PQ for emacs-orgmode@gnu.org; Tue, 15 May 2012 02:19:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUB6v-0002MK-Sh for emacs-orgmode@gnu.org; Tue, 15 May 2012 02:19:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:34117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUB6v-0002MD-Lz for emacs-orgmode@gnu.org; Tue, 15 May 2012 02:19:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SUB6s-0000ME-AU for emacs-orgmode@gnu.org; Tue, 15 May 2012 08:19:50 +0200 Received: from pd9eb2f14.dip.t-dialin.net ([217.235.47.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 May 2012 08:19:50 +0200 Received: from Stromeko by pd9eb2f14.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 May 2012 08:19:50 +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 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