From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: .emacs won't load Hohn Wiegleys script Date: Sun, 19 Oct 2008 18:43:09 +0200 Message-ID: References: <2c75873c0810190904g4d7f0e4etde57975ea274548b@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrbN7-0007fi-JA for emacs-orgmode@gnu.org; Sun, 19 Oct 2008 12:43:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrbN5-0007c5-K9 for emacs-orgmode@gnu.org; Sun, 19 Oct 2008 12:43:16 -0400 Received: from [199.232.76.173] (port=43104 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrbN5-0007bt-GN for emacs-orgmode@gnu.org; Sun, 19 Oct 2008 12:43:15 -0400 Received: from nf-out-0910.google.com ([64.233.182.189]:7067) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrbN4-0007Yd-Md for emacs-orgmode@gnu.org; Sun, 19 Oct 2008 12:43:15 -0400 Received: by nf-out-0910.google.com with SMTP id c7so640188nfi.26 for ; Sun, 19 Oct 2008 09:43:13 -0700 (PDT) In-Reply-To: <2c75873c0810190904g4d7f0e4etde57975ea274548b@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Graham Smith Cc: emacs-orgmode@gnu.org The text contains special non-ascii characters as leading spaces in =20 many places, in my Emacs 23 this shows immediately. I don't know from =20= where you copied it, directly from the webpage? You need to remove =20 all initial whitespace in all lines from John, ad the problem will =20 likely go away. - Carsten On Oct 19, 2008, at 6:04 PM, Graham Smith wrote: > I have copied John Wiegley's script for task management into my > .emacs file, but get an error: > > An error has occurred while loading `/home/graham/.emacs': > > Symbol's value as variable is void: > > To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Start Emacs with > the `--debug-init' option to view a complete error backtrace. > > The backtrace gives: > > Debugger entered--Lisp error: (void-variable 343\343) > (eval-after-load "org" 343\343 (quote (progn =C3=A3=C3=A3=C3=A3=C3=A3=C3= =A3 ... =20 > =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... > =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... = =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... =20= > =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... = =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... > =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ... = =C3=A3=C3=A3=C3=A3=C3=A3=C3=A3 ...))) > eval-buffer(# nil "/home/graham/.emacs" nil t) ; > Reading at buffer position 1904 > load-with-code-conversion("/home/graham/.emacs" "/home/=20 > graham/.emacs" t t) > load("~/.emacs" t t) > #[nil " =E0=B8=9E > > The numbers haven't pasted in for some reason but they are 343 > repeated (I've filled a couple in) except for the numbers after > #[nil.. which haven't pasted at all, I will repost with them filled in > if required. > > My .emacs is posted below: > > I have altered the paths where I think they need altered and I have > commented out the commands that seem duplicated. I also tried it > without commenting them out, but it was just the same. > > As always, a pointer towards where I am being stupid would be =20 > appreciated. > > Thanks, > > Graham > > > > ;;;;;;;;; Basic Org-Mode;;;;;;;;;; > > (setq load-path (cons "~/EmacsAddins/Orgmode/lisp" load-path)) > (setq load-path (cons "~/EmacsAddins/Orgmode/contrib/lisp" load-path)) > (require 'org-install) > > ;; 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) > ;(global-set-key "\C-cb" 'org-iswitchb) > > ;;(global-font-lock-mode 1) ; for all buffers > (add-hook 'org-mode-hook 'turn-on-font-lock) ; Org buffers only > > ;;;;;Basic Remember;;;;;; > > (add-to-list 'load-path "~/EmacsAddins/remember") > > > ;;;;;;Remember plus Org-Mode;;;;;;; > > ;(org-remember-insinuate) > ;(setq org-directory "~/Emacs") > ;(setq org-default-notes-file (concat org-directory "/notes.org")) > ;(define-key global-map "\C-cr" 'org-remember) > > > ;;;;;Wiegly Org-Mode code;;;;;; > > (define-key mode-specific-map [?a] 'org-agenda) > > (eval-after-load "org" > =E2=80=83=E2=80=83'(progn > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-prefix-command = 'org-todo-state-map) > > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key org-mode-map = "\C-cx" 'org-todo-state-map) > > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-todo-state-map "x" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83#'(lambda= nil (interactive) (org-todo =20 > "CANCELLED"))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-todo-state-map "d" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83#'(lambda= nil (interactive) (org-todo "DONE"))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-todo-state-map "f" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83#'(lambda= nil (interactive) (org-todo =20 > "DEFERRED"))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-todo-state-map "l" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83#'(lambda= nil (interactive) (org-todo =20 > "DELEGATED"))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-todo-state-map "s" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83#'(lambda= nil (interactive) (org-todo =20 > "STARTED"))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-todo-state-map "w" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83#'(lambda= nil (interactive) (org-todo =20 > "WAITING"))) > > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-agenda-mode-map "\C-n" 'next-line) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-agenda-keymap "\C-n" 'next-line) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-agenda-mode-map "\C-p" 'previous-line) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(define-key = org-agenda-keymap "\C-p" 'previous-line))) > > (require 'remember) > > (add-hook 'remember-mode-hook 'org-remember-apply-template) > > (define-key global-map [(control meta ?r)] 'remember) > > (custom-set-variables > =E2=80=83'(org-agenda-files (quote ("~/Emacs/todo.org"))) > =E2=80=83'(org-default-notes-file "~/Emacs/notes.org") > =E2=80=83'(org-agenda-ndays 7) > =E2=80=83'(org-deadline-warning-days 14) > =E2=80=83'(org-agenda-show-all-dates t) > =E2=80=83'(org-agenda-skip-deadline-if-done t) > =E2=80=83'(org-agenda-skip-scheduled-if-done t) > =E2=80=83'(org-agenda-start-on-weekday nil) > =E2=80=83'(org-reverse-note-order t) > =E2=80=83'(org-fast-tag-selection-single-key (quote expert)) > =E2=80=83'(org-agenda-custom-commands > =E2=80=83=E2=80=83=E2=80=83(quote (("d" todo "DELEGATED" nil) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83("c" = todo "DONE|DEFERRED|CANCELLED" nil) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83("w" = todo "WAITING" nil) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83("W" = agenda "" ((org-agenda-ndays 21))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83("A" = agenda "" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= ((org-agenda-skip-function > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= =E2=80=83=E2=80=83(lambda nil > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= (org-agenda-skip-entry-if (quote notregexp) "\=20 > \=3D.*\\[#A\\]"))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= =E2=80=83(org-agenda-ndays 1) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= =E2=80=83(org-agenda-overriding-header "Today's =20 > Priority #A tasks: "))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83("u" = alltodo "" > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= ((org-agenda-skip-function > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= =E2=80=83=E2=80=83(lambda nil > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= (org-agenda-skip-entry-if (quote scheduled) =20 > (quote deadline) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2= =80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=20 > (quote regexp) "<[^>\n]+>"))) > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83= =E2=80=83(org-agenda-overriding-header "Unscheduled =20 > TODO entries: ")))))) > =E2=80=83'(org-remember-store-without-prompt t) > =E2=80=83'(org-remember-templates > =E2=80=83=E2=80=83=E2=80=83(quote ((116 "* TODO %?\n %u" = "~/Emacs/todo.org" "Tasks") > =E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83=E2=80=83(110 "* = %u %?" "~/Emacs/notes.org" "Notes")))) > =E2=80=83'(remember-annotation-functions (quote = (org-remember-annotation))) > =E2=80=83'(remember-handler-functions (quote (org-remember-handler)))) > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode