all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: org-install not defining org-mode-map?
Date: Tue, 15 May 2012 17:41:31 +0800	[thread overview]
Message-ID: <87wr4dpyr8.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87zk9a2cg3.fsf@Rainer.invalid

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

  reply	other threads:[~2012-05-15  9:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15  5:13 org-install not defining org-mode-map? Eric Abrahamsen
2012-05-15  6:19 ` Achim Gratz
2012-05-15  9:41   ` Eric Abrahamsen [this message]
2012-05-15  6:26 ` Christopher Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wr4dpyr8.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.