[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: emacs 24 org-mode-map does not exist [7.8.11]
From: |
Nick Dokos |
Subject: |
Re: [O] Bug: emacs 24 org-mode-map does not exist [7.8.11] |
Date: |
Fri, 27 Jul 2012 11:40:06 -0400 |
Mike Fitzgerald <address@hidden> 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:
>
> ----------------------------------------------------