emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Invalid function: ignore-errors [6.36]
@ 2010-05-11 13:40 Robert Andersson
  2010-05-11 14:09 ` Robert Andersson
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Andersson @ 2010-05-11 13:40 UTC (permalink / raw)
  To: emacs-orgmode


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

After upgrading from orgmode 6.34c to 6.36 I get an error "Invalid
function: ignore-errors" when toggling checkboxes, and also running

  (org-update-statistics-cookies all)

will not work at all. Downgrading back to 6.34c helps.

yours,
/robert

Emacs  : GNU Emacs 23.1.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
 of 2009-08-16 on black.local
Package: Org-mode version 6.36

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-link-frame-setup '((vm . vm-visit-folder) (gnus . gnus) (file . find-file-other-window))
 org-agenda-custom-commands '(("i" "Inbox entries" tags "CATEGORY=\"Stuff\""))
 org-agenda-files '("~/gtd/inbox.org" "~/gtd/tasks.org" "~/gtd/projects.org")
 org-agenda-include-diary t
 org-clock-into-drawer t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-archive-location "archive/%s.old::* Archive"
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-reveal-start-hook '(org-decrypt-entry)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-include-all-todo t
 org-todo-keywords '("TODO(t!)" "NEXT(n!)" "WAITING(w@/!)" "|" "CANCELLED(c@)" "DEFERRED(m@)" "DONE(d!)")
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-effort-property "effort"
 org-directory "~/gtd"
 org-tag-alist '(("@home" . 104) ("@office" . 111) ("@phone" . 112) ("@cms" . 119) ("@computer" . 99) ("@errands" . 101) ("@bvc" . 98)
                 ("@ltlunch" . 108) ("@2020" . 50) ("someday" . 115) ("@emacs" . 103) ("flov" . 102))
 org-blank-before-new-entry '((heading) (plain-list-item))
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("org-web" :base-directory "~/web" :base-extension "org" :publishing-directory "/Volumes/robert/.www"
                              :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t)
                             ("org-web-static" :base-directory "~/web" :base-extension
                              "css\\|js\\|png\\|jpg\\|jpeg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "/Volumes/robert/.www"
                              :recursive t :publishing-function org-publish-attachment)
                             ("web" :components ("org-web" "org-web-static")))
 org-export-latex-classes '(("article"
                             "\\documentclass{article}\n\\usepackage[utf8x]{inputenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage[swedish]{babel}"
                             ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
                             ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
                             ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                            )
 org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [add-hook before-save-hook org-encrypt-entries nil t] 5]
                 #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                 (lambda nil (auto-fill-mode 1) (local-set-key (kbd "C-c t") (quote org-todo))
                  (local-set-key (kbd "C-c e") (quote org-set-effort)) (local-set-key (kbd "C-c i") (quote ra/gtd-inbox))
                  (local-set-key (kbd "C-c C-r") (quote org-decrypt-entry)))
                 )
 org-global-properties '(("effort_ALL" . "0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 8:00"))
 org-refile-targets '(("someday.org" :level . 1) ("inbox.org" :level . 1) ("tasks.org" :level . 1) ("projects.org" :maxlevel . 2))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-log-into-drawer "LOGBOOK"
 org-agenda-mode-hook '(hl-line-mode)
 org-link-mailto-program '(vm-mail "%a" "%s")
 org-crypt-key "93A4BE9DEAB7218E"
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
 org-tags-column -90
 org-modules '(org-bbdb org-bibtex org-vm org-crypt)
 org-columns-default-format "%60ITEM %TODO %TAGS %6effort(EFFORT){:}"
 org-remember-templates '(("Task" 121
                           "* TODO %^{description} %^g%^{effort}p\n  :LOGBOOK:\n  - State \"TODO\"       from \"\"           %U\n  :END:\n\n  %?%i \n  :%a:" "inbox.org" "Inbox")
                          ("Task woL" 116
                           "* TODO %^{description} %^g%^{effort}p\n  :LOGBOOK:\n  - State \"TODO\"       from \"\"           %U\n  :END:\n\n  %?%i \n" "inbox.org" "Inbox")
                          ("Someday" 115 "* %^{description} :someday:%^g%^{effort}p\n  :PROPERTIES:\n  :added:    %U\n  :END:\n\n  %?%i \n"
                           "inbox.org" "Inbox")
                          )
 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)
 )

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

* Re: Bug: Invalid function: ignore-errors [6.36]
  2010-05-11 13:40 Bug: Invalid function: ignore-errors [6.36] Robert Andersson
@ 2010-05-11 14:09 ` Robert Andersson
  2010-05-11 16:09   ` Adam Elliott
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Andersson @ 2010-05-11 14:09 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

>>>>> "RA" == Robert Andersson <robert.andersson@gu.se> writes:

RA> After upgrading from orgmode 6.34c to 6.36 I get an error "Invalid
RA> function: ignore-errors" when toggling checkboxes, and also running

RA>   (org-update-statistics-cookies all)

RA> will not work at all. Downgrading back to 6.34c helps.

I also just now installed version 6.35, which also gave me the same
errors stated above when working with checkboxes. A clean build of
6.34c does not produce these errors... Hope this helps.

yours,
/robert

-- 
ROBERT ANDERSSON, Systems Engineer
Swedish National Graduate School of Language Technology
Department of Philosophy, Linguistics, and Theory of Science
UNIVERSITY OF GOTHENBURG
Phone +46 (0)31 786 5915 | Mobile +46 (0)733 339699

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

* Re: Bug: Invalid function: ignore-errors [6.36]
  2010-05-11 14:09 ` Robert Andersson
@ 2010-05-11 16:09   ` Adam Elliott
  2010-05-11 17:09     ` Magnus Henoch
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Elliott @ 2010-05-11 16:09 UTC (permalink / raw)
  To: emacs-orgmode

Robert Andersson <robert.andersson <at> gu.se> writes:

> RA> After upgrading from orgmode 6.34c to 6.36 I get an error "Invalid
> RA> function: ignore-errors" when toggling checkboxes, and also running
> 
> RA>   (org-update-statistics-cookies all)
> 
> RA> will not work at all. Downgrading back to 6.34c helps.
> 
> I also just now installed version 6.35, which also gave me the same
> errors stated above when working with checkboxes. A clean build of
> 6.34c does not produce these errors... Hope this helps.

Problem exists in some 6.35 versions as well.  Looks like org-list.el uses
`ignore-errors' macro defined in cl-macs.el.  Adding following line near top of
org-list.el file fixes problem for me:

(require 'cl)

Does not appear that cl-macs can be required separately.

Adam

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

* Re: Bug: Invalid function: ignore-errors [6.36]
  2010-05-11 16:09   ` Adam Elliott
@ 2010-05-11 17:09     ` Magnus Henoch
  2010-05-12 14:54       ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Magnus Henoch @ 2010-05-11 17:09 UTC (permalink / raw)
  To: emacs-orgmode

Adam Elliott <ae@mbl.ca> writes:

> Problem exists in some 6.35 versions as well.  Looks like org-list.el uses
> `ignore-errors' macro defined in cl-macs.el.  Adding following line near top of
> org-list.el file fixes problem for me:
>
> (require 'cl)
>
> Does not appear that cl-macs can be required separately.

The canonical way to require cl only for macros is:
(eval-when-compile (require 'cl))
See (info "(elisp)Coding Conventions").

-- 
Magnus Henoch

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

* Re: Re: Bug: Invalid function: ignore-errors [6.36]
  2010-05-11 17:09     ` Magnus Henoch
@ 2010-05-12 14:54       ` Carsten Dominik
  2010-05-13 15:07         ` Adam Elliott
  0 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2010-05-12 14:54 UTC (permalink / raw)
  To: Magnus Henoch; +Cc: emacs-orgmode


On May 11, 2010, at 7:09 PM, Magnus Henoch wrote:

> Adam Elliott <ae@mbl.ca> writes:
>
>> Problem exists in some 6.35 versions as well.  Looks like org- 
>> list.el uses
>> `ignore-errors' macro defined in cl-macs.el.  Adding following line  
>> near top of
>> org-list.el file fixes problem for me:
>>
>> (require 'cl)
>>
>> Does not appear that cl-macs can be required separately.
>
> The canonical way to require cl only for macros is:
> (eval-when-compile (require 'cl))


org.el does this already.  Just compile your .el files and things  
should work.

- Carsten

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

* Re: Bug: Invalid function: ignore-errors [6.36]
  2010-05-12 14:54       ` Carsten Dominik
@ 2010-05-13 15:07         ` Adam Elliott
  2010-05-13 16:02           ` Carsten Dominik
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Elliott @ 2010-05-13 15:07 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik <at> gmail.com> writes:

> org.el does this already.  Just compile your .el files and things  
> should work.

You are right, but I suspect the following:

When org is compiled and installed using the Makefile, elisp source files are
compiled individually.  When org-list.el is compiled in isolation and the cl
package is not included, the `ignore-errors' macro is not previously defined;
thus Emacs assumes it's a function instead, so the resulting elc file is broken.
 If org is compiled within Emacs and not from a batch process, it's almost
certain that the cl package will have been loaded, so this problem doesn't occur.

I guess most people don't use the Makefile?

Adam

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

* Re: Re: Bug: Invalid function: ignore-errors [6.36]
  2010-05-13 15:07         ` Adam Elliott
@ 2010-05-13 16:02           ` Carsten Dominik
  0 siblings, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2010-05-13 16:02 UTC (permalink / raw)
  To: Adam Elliott; +Cc: emacs-orgmode

Hi Adam,

On May 13, 2010, at 5:07 PM, Adam Elliott wrote:

> Carsten Dominik <carsten.dominik <at> gmail.com> writes:
>
>> org.el does this already.  Just compile your .el files and things
>> should work.
>
> You are right, but I suspect the following:
>
> When org is compiled and installed using the Makefile, elisp source  
> files are
> compiled individually.  When org-list.el is compiled in isolation  
> and the cl
> package is not included, the `ignore-errors' macro is not previously  
> defined;
> thus Emacs assumes it's a function instead, so the resulting elc  
> file is broken.
> If org is compiled within Emacs and not from a batch process, it's  
> almost
> certain that the cl package will have been loaded, so this problem  
> doesn't occur.

You are right, I have added the statement to org-list.el.

Thanks!

- Carsten

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

end of thread, other threads:[~2010-05-13 16:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-11 13:40 Bug: Invalid function: ignore-errors [6.36] Robert Andersson
2010-05-11 14:09 ` Robert Andersson
2010-05-11 16:09   ` Adam Elliott
2010-05-11 17:09     ` Magnus Henoch
2010-05-12 14:54       ` Carsten Dominik
2010-05-13 15:07         ` Adam Elliott
2010-05-13 16:02           ` 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).