emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* apparently too stupid to use checkboxes
@ 2010-03-23  9:37 Detlef Steuer
  2010-03-23  9:51 ` Eric S Fraga
  2010-03-23 13:01 ` Carsten Dominik
  0 siblings, 2 replies; 15+ messages in thread
From: Detlef Steuer @ 2010-03-23  9:37 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I try to use checkboxes (never used before):

* TODO Test [/]
  - [ ] first
  - [ ] second

Now I can C-c C-c to state-change a single box, but the summary box in the
headline never gets updated.

If I try C-c # I get an error messge
Invalid function: ignore errors

Even if I cut'n'paste the  checkbox example out of the manual it doesn't
work here.


My org-version is
release_6.34c-232-g727a
Org-mode version 6.34trans (release_6.34c.232.g727a)

My emacs
GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of 2008-12-03 on build19


I know, the mistake must happen between my ears ....
Any help appreciated.

Detlef

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

* Re: apparently too stupid to use checkboxes
  2010-03-23  9:37 apparently too stupid to use checkboxes Detlef Steuer
@ 2010-03-23  9:51 ` Eric S Fraga
  2010-03-23 11:11   ` Jörg Hagmann
  2010-03-23 13:01 ` Carsten Dominik
  1 sibling, 1 reply; 15+ messages in thread
From: Eric S Fraga @ 2010-03-23  9:51 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode

On Tue, 23 Mar 2010 10:37:14 +0100, Detlef Steuer <detlef.steuer@gmx.de> wrote:
> 
> Hi!
> 
> I try to use checkboxes (never used before):
> 
> * TODO Test [/]
>   - [ ] first
>   - [ ] second
> 
> Now I can C-c C-c to state-change a single box, but the summary box in the
> headline never gets updated.

Very strange.  This works perfectly fine for me: typing C-c C-c on the
first item, say, checks that box and updates the headline to have
[1/2] on it.  Typing C-c C-c again clears the checkbox.

> My org-version is
> release_6.34c-232-g727a
> Org-mode version 6.34trans (release_6.34c.232.g727a)

ditto.

> 
> My emacs
> GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of
> 2008-12-03 on build19

I'm on 
GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-11-02 on raven, modified by Debian

Maybe upgrade your Emacs?  But, of course, this should work on emacs
22.x as well.

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

* Re: apparently too stupid to use checkboxes
  2010-03-23  9:51 ` Eric S Fraga
@ 2010-03-23 11:11   ` Jörg Hagmann
  2010-03-23 12:50     ` Detlef Steuer
  0 siblings, 1 reply; 15+ messages in thread
From: Jörg Hagmann @ 2010-03-23 11:11 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Detlef Steuer, Eric S Fraga, emacs-orgmode

Try without a space between Test and [/] ?

On 3/23/10 10:51 AM, Eric S Fraga wrote:
> On Tue, 23 Mar 2010 10:37:14 +0100, Detlef Steuer<detlef.steuer@gmx.de>  wrote:
>    
>> Hi!
>>
>> I try to use checkboxes (never used before):
>>
>> * TODO Test [/]
>>    - [ ] first
>>    - [ ] second
>>
>> Now I can C-c C-c to state-change a single box, but the summary box in the
>> headline never gets updated.
>>      
> Very strange.  This works perfectly fine for me: typing C-c C-c on the
> first item, say, checks that box and updates the headline to have
> [1/2] on it.  Typing C-c C-c again clears the checkbox.
>
>    
>> My org-version is
>> release_6.34c-232-g727a
>> Org-mode version 6.34trans (release_6.34c.232.g727a)
>>      
> ditto.
>
>    
>> My emacs
>> GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of
>> 2008-12-03 on build19
>>      
> I'm on
> GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2) of 2009-11-02 on raven, modified by Debian
>
> Maybe upgrade your Emacs?  But, of course, this should work on emacs
> 22.x as well.
>
>
> _______________________________________________
> 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
>
>    

-- 
Prof. Jörg Hagmann-Zanolari MD
University of Basel
Department of Biomedicine
Institute of Biochemistry and Genetics
Mattenstrasse 28
CH-4058 Basel
Switzerland
Phone +41 (0)61 267 3565

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

* Re: apparently too stupid to use checkboxes
  2010-03-23 11:11   ` Jörg Hagmann
@ 2010-03-23 12:50     ` Detlef Steuer
  2010-03-23 14:07       ` Eric S Fraga
  0 siblings, 1 reply; 15+ messages in thread
From: Detlef Steuer @ 2010-03-23 12:50 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, 23 Mar 2010 12:11:26 +0100
Jörg Hagmann <joerg.hagmann@unibas.ch> wrote:

> Try without a space between Test and [/] ?

No change.

One more observation while trying this out:

C-c C-c in a checkbox line _always_ gives 
Invalid function: ignore-errors


Detlef

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

* Re: apparently too stupid to use checkboxes
  2010-03-23  9:37 apparently too stupid to use checkboxes Detlef Steuer
  2010-03-23  9:51 ` Eric S Fraga
@ 2010-03-23 13:01 ` Carsten Dominik
  2010-03-24  9:15   ` Detlef Steuer
  1 sibling, 1 reply; 15+ messages in thread
From: Carsten Dominik @ 2010-03-23 13:01 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode

Hi Detlef,

`ignore-errors' is defined in cl-macs in Emacs 22.  You need to  
compile the .el file
to get this macro.  Alternatively, define it in your .emacs file  
before loading org-mode stuff:


(defmacro ignore-errors (&rest body)
   "Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY."
   `(condition-case nil (progn ,@body) (error nil)))

HTH

- Carsten

On Mar 23, 2010, at 10:37 AM, Detlef Steuer wrote:

> Hi!
>
> I try to use checkboxes (never used before):
>
> * TODO Test [/]
>  - [ ] first
>  - [ ] second
>
> Now I can C-c C-c to state-change a single box, but the summary box  
> in the
> headline never gets updated.
>
> If I try C-c # I get an error messge
> Invalid function: ignore errors
>
> Even if I cut'n'paste the  checkbox example out of the manual it  
> doesn't
> work here.
>
>
> My org-version is
> release_6.34c-232-g727a
> Org-mode version 6.34trans (release_6.34c.232.g727a)
>
> My emacs
> GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of  
> 2008-12-03 on build19
>
>
> I know, the mistake must happen between my ears ....
> Any help appreciated.
>
> Detlef
>
>
>
> _______________________________________________
> 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] 15+ messages in thread

* Re: Re: apparently too stupid to use checkboxes
  2010-03-23 12:50     ` Detlef Steuer
@ 2010-03-23 14:07       ` Eric S Fraga
  2010-03-23 15:15         ` Detlef Steuer
  0 siblings, 1 reply; 15+ messages in thread
From: Eric S Fraga @ 2010-03-23 14:07 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode

On Tue, 23 Mar 2010 13:50:08 +0100, Detlef Steuer <detlef.steuer@gmx.de> wrote:
> 
> On Tue, 23 Mar 2010 12:11:26 +0100
> Jörg Hagmann <joerg.hagmann@unibas.ch> wrote:
> 
> > Try without a space between Test and [/] ?
> 
> No change.
> 
> One more observation while trying this out:
> 
> C-c C-c in a checkbox line _always_ gives 
> Invalid function: ignore-errors
> 
> 
> Detlef

I guess the next questions then have to be: 

1. how have you installed org-mode?  

2. How are you loading it?

3. any extra useful information in the *Messages* buffer?

4. have you tried turning on debug modes (e.g. toggle-debug-on-error)
   to see where things are going wrong?

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

* Re: apparently too stupid to use checkboxes
  2010-03-23 14:07       ` Eric S Fraga
@ 2010-03-23 15:15         ` Detlef Steuer
  2010-03-23 19:30           ` David Maus
  0 siblings, 1 reply; 15+ messages in thread
From: Detlef Steuer @ 2010-03-23 15:15 UTC (permalink / raw)
  To: emacs-orgmode

Ok, here we go.

I put 
(defmacro ignore-errors (&rest body)
   "Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY."
   `(condition-case nil (progn ,@body) (error nil)))

in my .emacs as Carsten advised.
This action seems to be a complicated form of do-nothing.
At least my error message remains the same.
(emacs was restarted after adding the macro to .emacs)

> 
> I guess the next questions then have to be: 
> 
> 1. how have you installed org-mode?  

Nightly git checkout.

> 
> 2. How are you loading it?
> 

I inline my (ugly) .emacs as it stands.
It is unchanged since ages. 
My guess is something goes wrong there.

---- snip

(server-start)

(defmacro ignore-errors (&rest body)
   "Execute BODY; if an error occurs, return nil.
Otherwise, return result of last form in BODY."
   `(condition-case nil (progn ,@body) (error nil)))

;; Kein Fringe (wozu braucht man den?)
(fringe-mode 0)

;; Keine Backups. Wenn ich Backups brauche, dann GIT
(setq backup-inhibited t)

;; Keine splash screen
(setq inhibit-splash-screen t)

;; Lokale Pakete
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp" )


;; Autofill ist automatisch an
(add-hook 'text-mode-hook 'turn-on-auto-fill)

;;;;;;;;;;;; ESS ;;;;;;;;;;;;;;;;;;
(setq ess-indent-level 2)
;;; beschleunigt das senden von code an den R Prozess erheblich
;;; (setq ess-eval-visibly-p nil)
;;;; Org Mode ;;;
(add-to-list 'load-path "~/GIT-Checkouts/org-mode/lisp")
(require 'org-install)

;(require 'org-depend)
(setq org-log-done t)

;; The following lines are always needed.  Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)

;(add-hook 'org-mode-hook 'turn-on-font-lock)  ; org-mode buffers only

;; org-babel support

(add-to-list 'load-path "~/GIT-Checkouts/org-mode/contrib/lisp")
(require 'org-babel-init)
(require 'org-babel-R)
(org-babel-load-library-of-babel)

;; remind mode
(add-to-list 'load-path "~/.emacs.d/remind")
(require 'remind-conf-mode) 

;; remember mode
(add-to-list 'load-path "~/.emacs.d/remember")
(require 'remember)
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(define-key global-map [(control meta ?r)] 'remember)

(org-remember-insinuate)
(setq org-directory "~/.pim/")
(setq org-default-notes-file (concat org-directory "notes.org"))
(define-key global-map "\C-cr" 'org-remember)

;; from Wiegley's article
;; (require 'org-install)

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
;(define-key mode-specific-map [?a] 'org-agenda)


(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 ;'(delete-selection-mode nil)
 ;'(org-agenda-custom-commands (quote 
 ;      (("d" todo #("DELEGATED" 0 9 (face org-warning)) nil) 
 ;       ("c" todo #("DONE|DEFERRED|CANCELLED" 0 23 (face org-warning)) nil) 
 ;       ("w" todo #("WAITING" 0 7 (face org-warning)) nil) 
 ;       ("W" agenda "" ((org-agenda-ndays 21))) 
 ;       ("A" agenda "" ((org-agenda-skip-function 
 ;            (lambda nil (org-agenda-skip-entry-if 
 ;                    (quote notregexp) "\\=.*\\[#A\\]"))) (org-agenda-ndays 1) 
 ;               (org-agenda-overriding-header "Today's Priority #A tasks: "))) 
 ;       ("u" alltodo "" ((org-agenda-skip-function 
 ;            (lambda nil (org-agenda-skip-entry-if (quote scheduled) 
 ;                    (quote deadline) (quote regexp) "<[^>]+>"))) 
 ;               (org-agenda-overriding-header "Unscheduled TODO entries: "))))))
 '(org-agenda-files (quote 
       ("~/.pim/termine.org" "~/.pim/todo.org" "~/.pim/remindout.org" "~/.pim/inbox.org")))
 '(org-agenda-ndays 7)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-start-on-weekday nil)
 '(org-agenda-use-time-grid t)
 '(org-agenda-time-grid (quote ((daily today require-timed)
 "----------------"
 (800 900 1000 1100 1300 1400 1500 1600  2000))))
 '(org-global-properties (quote (("Effort_ALL" . "0:10 0:30 1:00 2:00 3:00 4:00 8:00")))) 
 '(org-deadline-warning-days 14)
 '(org-default-notes-file "~/.pim/notes.org")
; '(org-fast-tag-selection-single-key (quote expert))
 '(org-remember-store-without-prompt t)
 '(org-remember-templates 
       (quote ((116 "* TODO %?" "~/.pim/inbox.org" "Inbox") 
               (110 "* %?" "~/.pim/inbox.org" "Inbox"))))
; '(org-reverse-note-order t)
; '(remember-annotation-functions (quote (org-remember-annotation)))
; '(remember-handler-functions (quote (org-remember-handler)))
; '(scroll-bar-mode (quote right))
 '(org-todo-keywords quote( '((sequence "TODO" "STARTED" "WAITING" | "DONE"))))
)

;; für auctex
(require 'tex-site)
;(load "auctex.el" nil t t)
;(load "preview-latex.el" nil t t)
;(setq TeX-auto-save t)
;(setq TeX-parse-self t)

;; für Emacs Database
(add-to-list 'load-path "~/.emacs.d/edb-1.31/lisp")
(require 'database)

;; für Elip
(add-to-list 'load-path "~/.emacs.d/elip-0.803")

---- snip


> 3. any extra useful information in the *Messages* buffer?
This is my Message Buffer after C-c C-c. cl-macs gets loaded.

Loading regexp-opt...done
Loading subst-ksc...done
Loading subst-gb2312...done
Loading subst-big5...done
Loading subst-jis...done
Loading /usr/share/emacs/site-lisp/tex-site.el (source)...done
Loading paren...done
Loading server...done
Loading easy-mmode...done
Loading advice...done
Loading cl-macs...done
Loading byte-opt...done
("t" . org-babel-tangle)
("T" . org-babel-tangle-file)
("e" . org-babel-execute-src-block)
("s" . org-babel-execute-subtree)
("b" . org-babel-execute-buffer)
("h" . org-babel-sha1-hash)
("g" . org-babel-goto-named-source-block)
("l" . org-babel-lob-ingest)
("z" . org-babel-switch-to-session)
OVERVIEW
Loading vc-git...done
Loading tabify...done
Loading cl-seq...done
Loading /usr/share/emacs/22.3/lisp/skeleton.el (source)...done
Loading derived...done
Loading org-remember...done
Error setting org-todo-keywords: (void-variable quote)
For information about GNU Emacs and the GNU system, type C-h C-a.
OVERVIEW
CONTENTS...done
Making completion list...
OVERVIEW
SUBTREE (NO CHILDREN)
org-update-checkbox-count: Invalid function: ignore-errors
byte-code: Beginning of buffer


> 
> 4. have you tried turning on debug modes (e.g. toggle-debug-on-error)
>    to see where things are going wrong?

Seems uninformative to me:

Debugger entered--Lisp error: (invalid-function ignore-errors)
  ignore-errors(nil)
  org-update-checkbox-count()
  org-update-checkbox-count-maybe()
  org-toggle-checkbox(nil)
  call-interactively(org-toggle-checkbox)
  org-ctrl-c-ctrl-c(nil)
  call-interactively(org-ctrl-c-ctrl-c)


Any ideas?

Detlef


> 
> 
> _______________________________________________
> 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] 15+ messages in thread

* Re: Re: apparently too stupid to use checkboxes
  2010-03-23 15:15         ` Detlef Steuer
@ 2010-03-23 19:30           ` David Maus
  2010-03-23 20:07             ` Detlef Steuer
  0 siblings, 1 reply; 15+ messages in thread
From: David Maus @ 2010-03-23 19:30 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode


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

Detlef Steuer wrote:
>Ok, here we go.

>I put
>(defmacro ignore-errors (&rest body)
>   "Execute BODY; if an error occurs, return nil.
>Otherwise, return result of last form in BODY."
>   `(condition-case nil (progn ,@body) (error nil)))

>in my .emacs as Carsten advised.
>This action seems to be a complicated form of do-nothing.
>At least my error message remains the same.
>(emacs was restarted after adding the macro to .emacs)

>>
>> I guess the next questions then have to be:
>>
>> 1. how have you installed org-mode?

>Nightly git checkout.

>>
>> 2. How are you loading it?
>>

>I inline my (ugly) .emacs as it stands.
>It is unchanged since ages.
>My guess is something goes wrong there.


Well, there is an error in .emacs:

>---- snip
>
> ...
>
>
>(custom-set-variables
>  ;; custom-set-variables was added by Custom.
>  ;; If you edit it by hand, you could mess it up, so be careful.
>  ;; Your init file should contain only one such instance.
>  ;; If there is more than one, they won't work right.
>
> ...
>
> '(org-todo-keywords quote( '((sequence "TODO" "STARTED" "WAITING" | "DONE"))))
> ...

The "quote(" looks like a leftover of something.  The line should read:

'(org-todo-keywords '((sequence "TODO" "STARTED" "WAITING" | "DONE")))

Maybe fixing this does the job?

If the (defmacro is not working my guess what be that you are running
some kind of a mixup of probably old byte compiled code and the
current developement version.

Are there any old installations of Org arround?

 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 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] 15+ messages in thread

* Re: apparently too stupid to use checkboxes
  2010-03-23 19:30           ` David Maus
@ 2010-03-23 20:07             ` Detlef Steuer
  0 siblings, 0 replies; 15+ messages in thread
From: Detlef Steuer @ 2010-03-23 20:07 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, 23 Mar 2010 20:30:55 +0100
David Maus <dmaus@ictsoc.de> wrote:

> The "quote(" looks like a leftover of something.  The line should read:
> 
> '(org-todo-keywords '((sequence "TODO" "STARTED" "WAITING" | "DONE")))
> 
> Maybe fixing this does the job?

No, it didn't.

> 
> If the (defmacro is not working my guess what be that you are running
> some kind of a mixup of probably old byte compiled code and the
> current developement version.
> 
> Are there any old installations of Org arround?

Doesn't seem so, but would be my guess, too.

Funny thing is, I now have two machines with as far as I can tell
identical configurations. 

One works, one doesn't. :-) 

Anyway, thanks a lot to all of you. I'll take the opportunity to 
rebuild .emacs from scratch.

Detlef

> 
>  -- David

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

* Re: apparently too stupid to use checkboxes
  2010-03-23 13:01 ` Carsten Dominik
@ 2010-03-24  9:15   ` Detlef Steuer
  2010-03-24 19:00     ` David Maus
                       ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Detlef Steuer @ 2010-03-24  9:15 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

while looking for the cause of my "checkbox problem" I found,
that all works fine, if I issue

make clean 

in my org-mode directory before editing.

orgmode version is:
release_6.34c-238-gc0707
Org-mode version 6.34trans (release_6.34c.238.gc0707.dirty)

If these very same files get byte-compiled with
make

checkboxes stop functioning again.

There are no error messages during startup.
If I can help any further identifying the real cause, let me know, please.

Detlef


 Tue, 23 Mar 2010 14:01:21 +0100
Carsten Dominik <carsten.dominik@gmail.com> wrote:

> Hi Detlef,
> 
> `ignore-errors' is defined in cl-macs in Emacs 22.  You need to  
> compile the .el file
> to get this macro.  Alternatively, define it in your .emacs file  
> before loading org-mode stuff:
> 
> 
> (defmacro ignore-errors (&rest body)
>    "Execute BODY; if an error occurs, return nil.
> Otherwise, return result of last form in BODY."
>    `(condition-case nil (progn ,@body) (error nil)))
> 
> HTH
> 
> - Carsten
> 
> On Mar 23, 2010, at 10:37 AM, Detlef Steuer wrote:
> 
> > Hi!
> >
> > I try to use checkboxes (never used before):
> >
> > * TODO Test [/]
> >  - [ ] first
> >  - [ ] second
> >
> > Now I can C-c C-c to state-change a single box, but the summary box  
> > in the
> > headline never gets updated.
> >
> > If I try C-c # I get an error messge
> > Invalid function: ignore errors
> >
> > Even if I cut'n'paste the  checkbox example out of the manual it  
> > doesn't
> > work here.
> >
> >
> > My org-version is
> > release_6.34c-232-g727a
> > Org-mode version 6.34trans (release_6.34c.232.g727a)
> >
> > My emacs
> > GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of  
> > 2008-12-03 on build19
> >
> >
> > I know, the mistake must happen between my ears ....
> > Any help appreciated.
> >
> > Detlef
> >
> >
> >
> > _______________________________________________
> > 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
> 
> 
> 
> 
> 
> _______________________________________________
> 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] 15+ messages in thread

* Re: Re: apparently too stupid to use checkboxes
  2010-03-24  9:15   ` Detlef Steuer
@ 2010-03-24 19:00     ` David Maus
  2010-03-25  8:08       ` Detlef Steuer
  2010-04-19 20:17     ` Christos Chryssochoidis
  2011-06-07 18:58     ` Steinar Bang
  2 siblings, 1 reply; 15+ messages in thread
From: David Maus @ 2010-03-24 19:00 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode


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

Detlef Steuer wrote:
>Hi,

>while looking for the cause of my "checkbox problem" I found,
>that all works fine, if I issue

>make clean

>in my org-mode directory before editing.

>orgmode version is:
>release_6.34c-238-gc0707
>Org-mode version 6.34trans (release_6.34c.238.gc0707.dirty)

>If these very same files get byte-compiled with
>make

>checkboxes stop functioning again.

Do you still have the defmacro in .emacs?

And is there a cl-mac.el somewhere on your system?

find /usr -name 'cl-mac.*'

 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 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] 15+ messages in thread

* Re: apparently too stupid to use checkboxes
  2010-03-24 19:00     ` David Maus
@ 2010-03-25  8:08       ` Detlef Steuer
  2010-03-26  7:40         ` David Maus
  0 siblings, 1 reply; 15+ messages in thread
From: Detlef Steuer @ 2010-03-25  8:08 UTC (permalink / raw)
  To: emacs-orgmode


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

> 
> >checkboxes stop functioning again.
> 
> Do you still have the defmacro in .emacs?


No. I removed it, because in *Messages* there is

("/usr/bin/emacs" "/tmp/orgtest.org")
Loading regexp-opt...done
Loading subst-ksc...done
Loading subst-gb2312...done
Loading subst-big5...done
Loading subst-jis...done
Loading /usr/share/emacs/site-lisp/tex-site.el (source)...done
Loading paren...done
Loading easy-mmode...done
Loading advice...done
Loading cl-macs...done
........^^^^^^^^^^^^^^

So I thougth cl-macs should be available in my session.

Nevertheless: I put it in again for testing and _nothing changes_.

> 
> And is there a cl-mac.el somewhere on your system?
> 
> find /usr -name 'cl-mac.*'

see above. I'm told it's loaded. (if you meant cl-macs and not cl-mac?)

Detlef

> 
>  -- David
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... dmaus@ictsoc.de
> 

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 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] 15+ messages in thread

* Re: Re: apparently too stupid to use checkboxes
  2010-03-25  8:08       ` Detlef Steuer
@ 2010-03-26  7:40         ` David Maus
  0 siblings, 0 replies; 15+ messages in thread
From: David Maus @ 2010-03-26  7:40 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode, Carsten Dominik


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

Detlef Steuer wrote:
>[1  <multipart/signed (7bit)>]
>[1.1  <text/plain; US-ASCII (quoted-printable)>]
>>
>> >checkboxes stop functioning again.
>>
>> Do you still have the defmacro in .emacs?

Strange.  Because the only conclusion I can draw of this:

> while looking for the cause of my "checkbox problem" I found,
> that all works fine, if I issue
>
> make clean
>
> in my org-mode directory before editing.
>
> orgmode version is:
> release_6.34c-238-gc0707
> Org-mode version 6.34trans (release_6.34c.238.gc0707.dirty)
>
> If these very same files get byte-compiled with
> make
>
> checkboxes stop functioning again.
>
> There are no error messages during startup.
> If I can help any further identifying the real cause, let me know, please.

Is that the macro is available on run time but not on compile time.

In fact: At least on my system `ignore-errors' is /not/ defined in
cl-macs, but in subr.el that is shipped with Emacs since 22.3

,----
| emacs22-el: /usr/share/emacs/22.3/lisp/subr.el.gz
| emacs23-el: /usr/share/emacs/23.1/lisp/subr.el.gz
`----

The question is where the macro is defined in your setup (M-x apropos
RET ignore-errors RET).

Maybe Org should define the macro explitely if it is not available on
compile time?

HTH
 -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 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] 15+ messages in thread

* Re: Re: apparently too stupid to use checkboxes
  2010-03-24  9:15   ` Detlef Steuer
  2010-03-24 19:00     ` David Maus
@ 2010-04-19 20:17     ` Christos Chryssochoidis
  2011-06-07 18:58     ` Steinar Bang
  2 siblings, 0 replies; 15+ messages in thread
From: Christos Chryssochoidis @ 2010-04-19 20:17 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode

Hi,

I had the same problem when using the git version of org-mode within
an Emacs 23 nightly build on Mac OS X 10.6.3.
I was byte-compiling org-mode in the command line, as it had been
downloaded, without changing anything, e.g. the Makefile.
That means it used the emacs version that shipped with Mac OS X to
compile org-mode, which is located in /usr/bin/. That's Emacs version
22.1.1 on my machine.
So I set in the Makefile the parameter EMACS to be the path of the
Emacs 23 build I've been using, and then I did "make clean", "make"
etc.
I don't get anymore the "Invalid function: ignore errors" message. :-)

Hope this helps


On Wed, Mar 24, 2010 at 12:15 PM, Detlef Steuer <detlef.steuer@gmx.de> wrote:
> Hi,
>
> while looking for the cause of my "checkbox problem" I found,
> that all works fine, if I issue
>
> make clean
>
> in my org-mode directory before editing.
>
> orgmode version is:
> release_6.34c-238-gc0707
> Org-mode version 6.34trans (release_6.34c.238.gc0707.dirty)
>
> If these very same files get byte-compiled with
> make
>
> checkboxes stop functioning again.
>
> There are no error messages during startup.
> If I can help any further identifying the real cause, let me know, please.
>
> Detlef
>
>
>  Tue, 23 Mar 2010 14:01:21 +0100
> Carsten Dominik <carsten.dominik@gmail.com> wrote:
>
>> Hi Detlef,
>>
>> `ignore-errors' is defined in cl-macs in Emacs 22.  You need to
>> compile the .el file
>> to get this macro.  Alternatively, define it in your .emacs file
>> before loading org-mode stuff:
>>
>>
>> (defmacro ignore-errors (&rest body)
>>    "Execute BODY; if an error occurs, return nil.
>> Otherwise, return result of last form in BODY."
>>    `(condition-case nil (progn ,@body) (error nil)))
>>
>> HTH
>>
>> - Carsten
>>
>> On Mar 23, 2010, at 10:37 AM, Detlef Steuer wrote:
>>
>> > Hi!
>> >
>> > I try to use checkboxes (never used before):
>> >
>> > * TODO Test [/]
>> >  - [ ] first
>> >  - [ ] second
>> >
>> > Now I can C-c C-c to state-change a single box, but the summary box
>> > in the
>> > headline never gets updated.
>> >
>> > If I try C-c # I get an error messge
>> > Invalid function: ignore errors
>> >
>> > Even if I cut'n'paste the  checkbox example out of the manual it
>> > doesn't
>> > work here.
>> >
>> >
>> > My org-version is
>> > release_6.34c-232-g727a
>> > Org-mode version 6.34trans (release_6.34c.232.g727a)
>> >
>> > My emacs
>> > GNU Emacs 22.3.1 (i586-suse-linux-gnu, GTK+ Version 2.14.4) of
>> > 2008-12-03 on build19
>> >
>> >
>> > I know, the mistake must happen between my ears ....
>> > Any help appreciated.
>> >
>> > Detlef
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
>
> _______________________________________________
> 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] 15+ messages in thread

* Re: apparently too stupid to use checkboxes
  2010-03-24  9:15   ` Detlef Steuer
  2010-03-24 19:00     ` David Maus
  2010-04-19 20:17     ` Christos Chryssochoidis
@ 2011-06-07 18:58     ` Steinar Bang
  2 siblings, 0 replies; 15+ messages in thread
From: Steinar Bang @ 2011-06-07 18:58 UTC (permalink / raw)
  To: emacs-orgmode

>>>>> Detlef Steuer <detlef.steuer@gmx.de>:

> Hi,
> while looking for the cause of my "checkbox problem" I found,
> that all works fine, if I issue

> make clean 

Ok, I ran into this problem today, on an emacs 23 with git org-mode, on
debian testing, ("wheezy"), and I googled for the error message and
found this thread.

What I did was
 cd ~/git/org-mode/
 make clean
 make

and then the problem went away: I started a new emacs and edited an org
file with cookie'd checkboxes, and now the cookies updated.

My org-mode git clone was last pull'd on May 5, and
.git/refs/heads/master contains 37f9639a4391fd63caae7abf2b4ac8e247b740c3

If someone feels like looking into this rather obscure error, I'm
willing to assist.  If not, I will just pull and hope it goes away...:-)

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

end of thread, other threads:[~2011-06-07 18:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-23  9:37 apparently too stupid to use checkboxes Detlef Steuer
2010-03-23  9:51 ` Eric S Fraga
2010-03-23 11:11   ` Jörg Hagmann
2010-03-23 12:50     ` Detlef Steuer
2010-03-23 14:07       ` Eric S Fraga
2010-03-23 15:15         ` Detlef Steuer
2010-03-23 19:30           ` David Maus
2010-03-23 20:07             ` Detlef Steuer
2010-03-23 13:01 ` Carsten Dominik
2010-03-24  9:15   ` Detlef Steuer
2010-03-24 19:00     ` David Maus
2010-03-25  8:08       ` Detlef Steuer
2010-03-26  7:40         ` David Maus
2010-04-19 20:17     ` Christos Chryssochoidis
2011-06-07 18:58     ` Steinar Bang

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