emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Bug with footnote mode + org-mode ?
@ 2010-05-31 17:42 Alexandre Billon
  2010-06-01  6:52 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Billon @ 2010-05-31 17:42 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 4079 bytes --]

The problem disappears when I comment out those two lines


(add-hook 'org-mode-hook 'footnote-mode)



(setq footnote-prefix [[(control c) (f)]])

When I do not comment them out, I get the following backtraces :


1. When I create a new org file testest.org
Debugger entered--Lisp error: (error "Key sequence contains invalid event")
  define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote-set-style)
(114 . Footnote-renumber-footnotes) (103 . Footnote-goto-footnote) (100 .
Footnote-delete-footnote) (99 . Footnote-cycle-style) (98 .
Footnote-back-to-message) (97 . Footnote-add-footnote)))
  byte-code("\303 \304     \n#\210 )\207" [map footnote-prefix
footnote-mode-map make-sparse-keymap define-key] 4)
  (defvar footnote-minor-mode-map (byte-code "\303 \304     \n#\210 )\207"
[map footnote-prefix footnote-mode-map make-sparse-keymap define-key] 4)
("/Applications/Aquamacs.app/Contents/Resources/lisp/mail/footnote.elc" .
19879))
  footnote-mode()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(t t)
  find-file-noselect-1(#<buffer testestest.org> "~/Documents/Textes/org/
testestest.org" nil nil "~/Documents/Textes/org/testestest.org" nil)
  find-file-noselect("~/Documents/Textes/org/testestest.org" nil nil t)
  (let ((value ...)) (if tabbar-mode (if ... ... ...) (if ... ... ...)))
  aquamacs-find-file-2("~/Documents/Textes/org/testestest.org" t)
  call-interactively(aquamacs-find-file-2)
  (if filename (aquamacs-find-file-2 filename) (call-interactively (quote
aquamacs-find-file-2)))
  (if (or (not one-buffer-one-frame) filename (< ... 2)) (if filename
(aquamacs-find-file-2 filename) (call-interactively ...)) (new-empty-buffer
nil (quote fundamental-mode)) (let (...) (unwind-protect ... ...)))
  aquamacs-find-file()
  call-interactively(aquamacs-find-file nil nil)
  recursive-edit()
  byte-code("\306     @\307=\203!


2. When I convert to html the fragment JJJ "
Debugger entered--Lisp error: (error "Key sequence contains invalid event")
  define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote-set-style)
(114 . Footnote-renumber-footnotes) (103 . Footnote-goto-footnote) (100 .
Footnote-delete-footnote) (99 . Footnote-cycle-style) (98 .
Footnote-back-to-message) (97 . Footnote-add-footnote)))
  byte-code("\303 \304     \n#\210 )\207" [map footnote-prefix
footnote-mode-map make-sparse-keymap define-key] 4)
  (defvar footnote-minor-mode-map (byte-code "\303 \304     \n#\210 )\207"
[map footnote-prefix footnote-mode-map make-sparse-keymap define-key] 4)
("/Applications/Aquamacs.app/
Contents/Resources/lisp/mail/footnote.elc" . 19879))
  footnote-mode()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  org-export-preprocess-string(#("\nJJJJ\n" 0 1 (fontified t) 1 6 (fontified
t)) :emph-multiline t :for-html t :skip-before-1st-heading nil :drawers nil
:todo-keywords t :tags not-in-toc :priority nil :footnotes t :timestamps t
:archived-trees headline :select-tags ("export") :exclude-tags ("noexport")
:add-text nil :LaTeX-fragments nil)
  org-export-as-html(nil nil nil "*Org HTML Export*")
  org-export-as-html-to-buffer(nil)
  call-interactively(org-export-as-html-to-buffer)
  org-export(nil)
  call-interactively(org-export nil nil)








2010/5/30 Alexandre Billon <abillon@gmail.com>

> Dear list members,
> I updated my org-mode files a month ago and since then, I get the following
> error message
>
> "byte-code: Key sequence contains invalid event "
>
>  when I
>
> 1. Try to export files to other formats (LaTex and html)
> 2. Try to use org-remember
> 3. create a new .org file
>
> This makes 1 and 2 unsuccessful. Can anyone help?
>
> I am currently using org-mode 6-36c on Mac-OS X either with Acquamacs 2 or
> with Emacs 23.2.
>
> Best regards,
>
> Alexandre
>
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 5241 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: Bug with footnote mode + org-mode ?
  2010-05-31 17:42 Bug with footnote mode + org-mode ? Alexandre Billon
@ 2010-06-01  6:52 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-06-01  6:52 UTC (permalink / raw)
  To: Alexandre Billon; +Cc: emacs-orgmode


On May 31, 2010, at 7:42 PM, Alexandre Billon wrote:

> The problem disappears when I comment out those two lines
>
>
> (add-hook 'org-mode-hook 'footnote-mode)

Org-mode has its own footnote support, are you sure you want to use  
footnote-mode?

>
>
>
> (setq footnote-prefix [[(control c) (f)]])

This syntax looks wrong to me.  The following should work:

     (setq footnote-prefix "\C-cf")

or alternatively

     (setq footnote-prefix [(control c) ?f])

Where did you find the syntax you were trying?

HTH

- Carsten

>
> When I do not comment them out, I get the following backtraces :
>
>
> 1. When I create a new org file testest.org
> Debugger entered--Lisp error: (error "Key sequence contains invalid  
> event")
>   define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote- 
> set-style) (114 . Footnote-renumber-footnotes) (103 . Footnote-goto- 
> footnote) (100 . Footnote-delete-footnote) (99 . Footnote-cycle- 
> style) (98 . Footnote-back-to-message) (97 . Footnote-add-footnote)))
>   byte-code("\303 \304     \n#\210 )\207" [map footnote-prefix  
> footnote-mode-map make-sparse-keymap define-key] 4)
>   (defvar footnote-minor-mode-map (byte-code "\303 \304     \n#\210 ) 
> \207" [map footnote-prefix footnote-mode-map make-sparse-keymap  
> define-key] 4) ("/Applications/Aquamacs.app/Contents/Resources/lisp/ 
> mail/footnote.elc" . 19879))
>   footnote-mode()
>   run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
>   apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
>   run-mode-hooks(org-mode-hook)
>   org-mode()
>   set-auto-mode-0(org-mode nil)
>   set-auto-mode()
>   normal-mode(t)
>   after-find-file(t t)
>   find-file-noselect-1(#<buffer testestest.org> "~/Documents/Textes/ 
> org/testestest.org" nil nil "~/Documents/Textes/org/testestest.org"  
> nil)
>   find-file-noselect("~/Documents/Textes/org/testestest.org" nil nil  
> t)
>   (let ((value ...)) (if tabbar-mode (if ... ... ...)  
> (if ... ... ...)))
>   aquamacs-find-file-2("~/Documents/Textes/org/testestest.org" t)
>   call-interactively(aquamacs-find-file-2)
>   (if filename (aquamacs-find-file-2 filename) (call-interactively  
> (quote aquamacs-find-file-2)))
>   (if (or (not one-buffer-one-frame) filename (< ... 2)) (if  
> filename (aquamacs-find-file-2 filename) (call-interactively ...))  
> (new-empty-buffer nil (quote fundamental-mode)) (let (...) (unwind- 
> protect ... ...)))
>   aquamacs-find-file()
>   call-interactively(aquamacs-find-file nil nil)
>   recursive-edit()
>   byte-code("\306     @\307=\203!
>
>
> 2. When I convert to html the fragment JJJ "
> Debugger entered--Lisp error: (error "Key sequence contains invalid  
> event")
>   define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote- 
> set-style) (114 . Footnote-renumber-footnotes) (103 . Footnote-goto- 
> footnote) (100 . Footnote-delete-footnote) (99 . Footnote-cycle- 
> style) (98 . Footnote-back-to-message) (97 . Footnote-add-footnote)))
>   byte-code("\303 \304     \n#\210 )\207" [map footnote-prefix  
> footnote-mode-map make-sparse-keymap define-key] 4)
>   (defvar footnote-minor-mode-map (byte-code "\303 \304     \n#\210 ) 
> \207" [map footnote-prefix footnote-mode-map make-sparse-keymap  
> define-key] 4) ("/Applications/Aquamacs.app/
> Contents/Resources/lisp/mail/footnote.elc" . 19879))
>   footnote-mode()
>   run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
>   apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
>   run-mode-hooks(org-mode-hook)
>   org-mode()
>   org-export-preprocess-string(#("\nJJJJ\n" 0 1 (fontified t) 1 6  
> (fontified t)) :emph-multiline t :for-html t :skip-before-1st- 
> heading nil :drawers nil :todo-keywords t :tags not-in-toc :priority  
> nil :footnotes t :timestamps t :archived-trees headline :select-tags  
> ("export") :exclude-tags ("noexport") :add-text nil :LaTeX-fragments  
> nil)
>   org-export-as-html(nil nil nil "*Org HTML Export*")
>   org-export-as-html-to-buffer(nil)
>   call-interactively(org-export-as-html-to-buffer)
>   org-export(nil)
>   call-interactively(org-export nil nil)
>
>
>
>
>
>
>
>
> 2010/5/30 Alexandre Billon <abillon@gmail.com>
> Dear list members,
> I updated my org-mode files a month ago and since then, I get the  
> following error message
>
> "byte-code: Key sequence contains invalid event "
>
>  when I
>
> 1. Try to export files to other formats (LaTex and html)
> 2. Try to use org-remember
> 3. create a new .org file
>
> This makes 1 and 2 unsuccessful. Can anyone help?
>
> I am currently using org-mode 6-36c on Mac-OS X either with  
> Acquamacs 2 or with Emacs 23.2.
>
> Best regards,
>
> Alexandre
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-01  8:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-31 17:42 Bug with footnote mode + org-mode ? Alexandre Billon
2010-06-01  6:52 ` Carsten Dominik

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).