emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: apparently too stupid to use checkboxes


From: Detlef Steuer
Subject: [Orgmode] Re: apparently too stupid to use checkboxes
Date: Tue, 23 Mar 2010 16:15:56 +0100

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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]