From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: emacs 24 org-mode-map does not exist [7.8.11] Date: Fri, 27 Jul 2012 11:40:06 -0400 Message-ID: <20525.1343403606@alphaville> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SumeM-0005UF-A9 for emacs-orgmode@gnu.org; Fri, 27 Jul 2012 11:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SumeF-00051u-Oc for emacs-orgmode@gnu.org; Fri, 27 Jul 2012 11:40:22 -0400 Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:37986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SumeF-0004yl-Hw for emacs-orgmode@gnu.org; Fri, 27 Jul 2012 11:40:15 -0400 In-Reply-To: Message from Mike Fitzgerald of "Fri\, 27 Jul 2012 10\:10\:09 CDT." 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: Mike Fitzgerald Cc: emacs-orgmode@gnu.org Mike Fitzgerald wrote: > Org Team, >=20 > I am experiencing the bug described at here: > http://comments.gmane.org/gmane.emacs.orgmode/55873 >=20 > Does not seem to be a working disposition to this issue and what is discu= ssed > did not get the map back does not work for me.=C2=A0 >=20 > I am fine on emacs 23.3 and 23.4, only 24.1 has the issue. >=20 > 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 >=20 > I can load org and open org files, but not do anything like this. > (define-key org-mode-map "\C-cl" 'org-store-link)=C2=A0 ;errors! >=20 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 >=20 > --text follows this line-- >=20 > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen.=C2=A0 You don't know how to make a good report?= =C2=A0 See >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 http://orgmode.org/manual/Feedback.html#Feedback >=20 > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ >=20 > Emacs=C2=A0 : GNU Emacs 24.1.1 (i386-mingw-nt6.0.6002) > =C2=A0of 2012-06-10 on MARVIN > Package: Org-mode version 7.8.11 >=20 > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > =C2=A0org-export-blocks '((src org-babel-exp-src-block nil) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 (export-co= mment org-export-blocks-format-comment t) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 (ditaa org= -export-blocks-format-ditaa nil) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 (dot org-e= xport-blocks-format-dot nil)) > =C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-= safely-maybe) > =C2=A0org-export-preprocess-before-selecting-backend-code-hook '(org-beam= er-select-beamer-code) > =C2=A0org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab= -command-maybe > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-= babel-hide-result-toggle-maybe) > =C2=A0org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxleve= l . 9)) > =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-dr= awers > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-cycle-show-empty-lines o= rg-optimize-window-after-visibility-change) > =C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text) > =C2=A0org-speed-command-hook '(org-speed-command-default-hook org-babel-s= peed-command-hook) > =C2=A0org-babel-pre-tangle-hook '(save-buffer) > =C2=A0org-occur-hook '(org-first-headline-recenter) > =C2=A0org-export-interblocks '((src org-babel-exp-non-block-elements)) > =C2=A0org-log-done t > =C2=A0org-refile-allow-creating-parent-nodes 'confirm > =C2=A0org-metaup-hook '(org-babel-load-in-session-maybe) > =C2=A0org-confirm-elisp-link-function 'yes-or-no-p > =C2=A0org-export-latex-format-toc-function 'org-export-latex-format-toc-d= efault > =C2=A0org-export-preprocess-before-normalizing-links-hook '(org-remove-fi= le-link-modifiers) > =C2=A0org-refile-use-outline-path t > =C2=A0org-outline-path-complete-in-steps nil > =C2=A0org-tag-alist '((:startgroup) ("urgent" . 117) ("not_urgent" . 110)= (:endgroup) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(:startgroup) ("important" . = 105) ("not_important" . 111) (:endgroup) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0("opportunity" . 112)) > =C2=A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > =C2=A0org-replace-disputed-keys t > =C2=A0org-export-first-hook '(org-beamer-initialize-open-trackers) > =C2=A0org-mode-hook '(org-cua-dwim-turn-on-org-cua-mode-partial-support > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(lambda nil > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 (org-add-hook (quote change-= major-mode-hook) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 (quote org-show-block-= all) (quote append) (quote local)) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 ) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(lambda nil > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 (org-add-hook (quote change-= major-mode-hook) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 (quote org-babel-show-= result-all) (quote append) (quote local)) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 ) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org-babel-result-hide-spec or= g-babel-hide-all-hashes turn-on-auto-fill) > =C2=A0org-from-is-user-regexp nil > =C2=A0org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fi= x-toc > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 org-beamer-auto-fragile-frames > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 org-beamer-place-default-actions-for-lists) > =C2=A0org-export-latex-after-initial-vars-hook '(org-beamer-after-initial= -vars) > =C2=A0org-metadown-hook '(org-babel-pop-to-session-maybe) > =C2=A0org-todo-keywords '((sequence "TODO" "STARTED" "DONE")) > =C2=A0org-src-mode-hook '(org-src-babel-configure-edit-buffer > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 org-src-mo= de-configure-edit-buffer) > =C2=A0org-after-todo-state-change-hook '(org-clock-out-if-current) > =C2=A0org-confirm-shell-link-function 'yes-or-no-p > =C2=A0) >=20 >=20 > ---------------------------------------------------- > Alternatives: >=20 > ----------------------------------------------------