emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Mike Fitzgerald <mikef656@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: emacs 24 org-mode-map does not exist [7.8.11]
Date: Fri, 27 Jul 2012 11:40:06 -0400	[thread overview]
Message-ID: <20525.1343403606@alphaville> (raw)
In-Reply-To: Message from Mike Fitzgerald <mikef656@gmail.com> of "Fri\, 27 Jul 2012 10\:10\:09 CDT." <CACy+NBKJOO2k_JYZYsw7+FGc1qd=fY79Tes1zsVmW0HS1LzL5A@mail.gmail.com>

Mike Fitzgerald <mikef656@gmail.com> wrote:

> Org Team,
> 
> I am experiencing the bug described at here:
> http://comments.gmane.org/gmane.emacs.orgmode/55873
> 
> Does not seem to be a working disposition to this issue and what is discussed
> did not get the map back does not work for me. 
> 
> I am fine on emacs 23.3 and 23.4, only 24.1 has the issue.
> 
> I attached my org setup with a comments around the center of the file
> as to what I have tried to get it working (close to what is discussed
> at the link above). The comment in the file is:
> ;This is what I have tried to get org-mode-map alive in emacs 24
> 
> I can load org and open org files, but not do anything like this.
> (define-key org-mode-map "\C-cl" 'org-store-link)  ;errors!
> 

This (as well as the agenda one) is supposed to be a global key binding,
not an org-mode one:

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)

Let's assume that you just used it as a quick-n-dirty example however:

as Achim suggests in the thread you point to, you should probably be
modifying org-mode-map in an org-mode hook. That way, org.el[c] will
have been loaded and org-mode-map will have been defined.

If you insist on modifying org-mode-map outside of a hook, then adding

(require 'org)

before trying to set the key should work. But are you sure you really
want to do that?

Nick


> Thanks
> Mike
> 
> --text follows this line--
> 
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?  See
> 
>      http://orgmode.org/manual/Feedback.html#Feedback
> 
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
> 
> Emacs  : GNU Emacs 24.1.1 (i386-mingw-nt6.0.6002)
>  of 2012-06-10 on MARVIN
> Package: Org-mode version 7.8.11
> 
> current state:
> ==============
> (setq
>  org-export-blocks '((src org-babel-exp-src-block nil)
>              (export-comment org-export-blocks-format-comment t)
>              (ditaa org-export-blocks-format-ditaa nil)
>              (dot org-export-blocks-format-dot nil))
>  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
>  org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
>  org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe
>               org-babel-hide-result-toggle-maybe)
>  org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9))
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>           org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
>  org-babel-pre-tangle-hook '(save-buffer)
>  org-occur-hook '(org-first-headline-recenter)
>  org-export-interblocks '((src org-babel-exp-non-block-elements))
>  org-log-done t
>  org-refile-allow-creating-parent-nodes 'confirm
>  org-metaup-hook '(org-babel-load-in-session-maybe)
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
>  org-refile-use-outline-path t
>  org-outline-path-complete-in-steps nil
>  org-tag-alist '((:startgroup) ("urgent" . 117) ("not_urgent" . 110) (:endgroup)
>          (:startgroup) ("important" . 105) ("not_important" . 111) (:endgroup)
>          ("opportunity" . 112))
>  org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
>  org-replace-disputed-keys t
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-mode-hook '(org-cua-dwim-turn-on-org-cua-mode-partial-support
>          (lambda nil
>           (org-add-hook (quote change-major-mode-hook)
>            (quote org-show-block-all) (quote append) (quote local))
>           )
>          (lambda nil
>           (org-add-hook (quote change-major-mode-hook)
>            (quote org-babel-show-result-all) (quote append) (quote local))
>           )
>          org-babel-result-hide-spec org-babel-hide-all-hashes turn-on-auto-fill)
>  org-from-is-user-regexp nil
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
>                    org-beamer-auto-fragile-frames
>                    org-beamer-place-default-actions-for-lists)
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-metadown-hook '(org-babel-pop-to-session-maybe)
>  org-todo-keywords '((sequence "TODO" "STARTED" "DONE"))
>  org-src-mode-hook '(org-src-babel-configure-edit-buffer
>              org-src-mode-configure-edit-buffer)
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-confirm-shell-link-function 'yes-or-no-p
>  )
> 
> 
> ----------------------------------------------------
> Alternatives:
> 
> ----------------------------------------------------

      parent reply	other threads:[~2012-07-27 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-27 15:10 Bug: emacs 24 org-mode-map does not exist [7.8.11] Mike Fitzgerald
2012-07-27 15:26 ` Giovanni Ridolfi
2012-07-27 15:40 ` Nick Dokos [this message]

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=20525.1343403606@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mikef656@gmail.com \
    /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).