[Orgmode] Re: Bug: Invalid function: ignore-errors [6.36]

2010-05-13 Thread Adam Elliott
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


___
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


Re: [Orgmode] Re: Bug: Invalid function: ignore-errors [6.36]

2010-05-13 Thread Carsten Dominik

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


___
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


Re: [Orgmode] Re: Bug: Invalid function: ignore-errors [6.36]

2010-05-12 Thread Carsten Dominik


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


Adam Elliott a...@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


___
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


[Orgmode] Re: Bug: Invalid function: ignore-errors [6.36]

2010-05-11 Thread Adam Elliott
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


___
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


[Orgmode] Re: Bug: Invalid function: ignore-errors [6.36]

2010-05-11 Thread Magnus Henoch
Adam Elliott a...@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


___
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