From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: org-install not defining org-mode-map? Date: Tue, 15 May 2012 17:41:31 +0800 Message-ID: <87wr4dpyr8.fsf@ericabrahamsen.net> References: <87sjf2rppp.fsf@ericabrahamsen.net> <87zk9a2cg3.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUEGV-00018z-NB for emacs-orgmode@gnu.org; Tue, 15 May 2012 05:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUEGQ-0000PF-VL for emacs-orgmode@gnu.org; Tue, 15 May 2012 05:41:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:34802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUEGQ-0000P0-O8 for emacs-orgmode@gnu.org; Tue, 15 May 2012 05:41:54 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SUEGM-0007zI-9r for emacs-orgmode@gnu.org; Tue, 15 May 2012 11:41:50 +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 11:41:50 +0200 Received: from eric by 114.252.246.232 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 May 2012 11:41: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 On Tue, May 15 2012, Achim Gratz wrote: > 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? I've been using emacs 24 for several months, and it's only in the past few weeks that this has stopped working. Christopher's solution seems to be the right one -- probably I should have been quoting that form the whole time, but I'm quite certain it's worked, unquoted, for a while now. I'm assuming it does have something to with changes in how emacs 24 handles variables… Using your defvar suggestion didn't do it, though. Thanks to you both, Eric -- GNU Emacs 24.1.50.5 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-05-12 on pellet 7.8.09