emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: org-install not defining org-mode-map?
Date: Tue, 15 May 2012 08:19:40 +0200	[thread overview]
Message-ID: <87zk9a2cg3.fsf@Rainer.invalid> (raw)
In-Reply-To: 87sjf2rppp.fsf@ericabrahamsen.net

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	other threads:[~2012-05-15  6:19 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 [this message]
2012-05-15  9:41   ` Eric Abrahamsen
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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87zk9a2cg3.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).