emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Detlef Steuer <detlef.steuer@gmx.de>
To: emacs-orgmode@gnu.org
Subject: Re: apparently too stupid to use checkboxes
Date: Tue, 23 Mar 2010 16:15:56 +0100	[thread overview]
Message-ID: <20100323161556.7876f906@gaia> (raw)
In-Reply-To: 87bpefyvw2.wl%ucecesf@ucl.ac.uk

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
> 

  reply	other threads:[~2010-03-23 15:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100323161556.7876f906@gaia \
    --to=detlef.steuer@gmx.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).