* orgstruct-mode error
@ 2007-08-25 22:48 David O'Toole
2007-08-27 3:16 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: David O'Toole @ 2007-08-25 22:48 UTC (permalink / raw)
To: emacs-orgmode
I am using org 5.05 and get this error when doing org-cycle in an
emacs-lisp-mode buffer (with Orgstruct mode on)
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> re-search-forward(nil 6690 t)
> org-cycle-hide-drawers(contents)
> run-hook-with-args(org-cycle-hide-drawers contents)
> org-cycle(t)
> org-cycle-global()
> call-interactively(org-cycle-global)
> recursive-edit()
> byte-code("Æ @Ç=!ÈÉÊ\"ËÉ!\x1aA@)¢Ì=!ÈÍÊ\"Î\v!Ï Ð !\fcÑed\"VWebÒ¥y`^[dbÒ¥Zy\x0e`|)ÓcebÔÕÖ \"× ÔØ!ÙÊ\x1c\x1dÔØ!Ú +Ù" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only standard-output] 4)
> debug(error (wrong-type-argument stringp nil))
> re-search-forward(nil 6690 t)
> org-cycle-hide-drawers(contents)
> run-hook-with-args(org-cycle-hide-drawers contents)
> org-cycle(t)
> org-cycle-global()
> call-interactively(org-cycle-global)
Here is the code I use to set up the buffer:
;; global consistent org cycling keys
(defun org-cycle-global ()
(interactive)
(org-cycle t))
(defun org-cycle-local ()
(interactive)
(save-excursion
(move-beginning-of-line nil)
(org-cycle)))
(global-set-key (kbd "M-[") 'org-cycle-global)
(global-set-key (kbd "M-]") 'org-cycle-local)
(add-hook 'emacs-lisp-mode-hook #'orgstruct-mode)
;;;; Fontifying todo items outside of org-mode
(defface todo-comment-face '((t (:background "red" :foreground "yellow" :weight bold :bold t))) "Face for TODO in code buffers.")
(defvar todo-comment-face 'todo-comment-face)
(defun fontify-todo ()
(font-lock-add-keywords nil '(("\\<\\(TODO\\)\\>"
(1 todo-comment-face t)))))
(add-hook 'emacs-lisp-mode-hook #'fontify-todo)
(defface headline-face '((t (:foreground "white" :underline "white" :background "navyblue"))) "Face for headlines.")
(defvar headline-face 'headline-face)
(defun fontify-headline ()
(font-lock-add-keywords nil '(("^;;;;* \\(.*\\)\\>"
(1 headline-face t)))))
(add-hook 'emacs-lisp-mode-hook #'fontify-headline)
--
David O'Toole
dto@gnu.org
http://dto.freeshell.org/notebook/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: orgstruct-mode error
2007-08-25 22:48 orgstruct-mode error David O'Toole
@ 2007-08-27 3:16 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2007-08-27 3:16 UTC (permalink / raw)
To: David O'Toole; +Cc: emacs-orgmode
Fixed, thanks.
- Carsten
On Aug 26, 2007, at 0:48, David O'Toole wrote:
>
> I am using org 5.05 and get this error when doing org-cycle in an
> emacs-lisp-mode buffer (with Orgstruct mode on)
>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>> re-search-forward(nil 6690 t)
>> org-cycle-hide-drawers(contents)
>> run-hook-with-args(org-cycle-hide-drawers contents)
>> org-cycle(t)
>> org-cycle-global()
>> call-interactively(org-cycle-global)
>> recursive-edit()
>> byte-code("Æ @Ç=!ÈÉÊ\"ËÉ!\x1aA@)¢Ì=!ÈÍÊ\"Î\v!Ï
>> Ð !\fcÑed\"VWebÒ¥y`^[dbÒ¥Zy\x0e`|)ÓcebÔÕÖ \"× ÔØ!ÙÊ\x1c\x1dÔØ!ŠÚ +Ù"
>> [unread-command-char debugger-args x debugger-buffer noninteractive
>> debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame
>> lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer
>> count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil
>> recursive-edit middlestart buffer-read-only standard-output] 4)
>> debug(error (wrong-type-argument stringp nil))
>> re-search-forward(nil 6690 t)
>> org-cycle-hide-drawers(contents)
>> run-hook-with-args(org-cycle-hide-drawers contents)
>> org-cycle(t)
>> org-cycle-global()
>> call-interactively(org-cycle-global)
>
> Here is the code I use to set up the buffer:
>
>
> ;; global consistent org cycling keys
>
> (defun org-cycle-global ()
> (interactive)
> (org-cycle t))
>
> (defun org-cycle-local ()
> (interactive)
> (save-excursion
> (move-beginning-of-line nil)
> (org-cycle)))
>
> (global-set-key (kbd "M-[") 'org-cycle-global)
> (global-set-key (kbd "M-]") 'org-cycle-local)
>
> (add-hook 'emacs-lisp-mode-hook #'orgstruct-mode)
>
> ;;;; Fontifying todo items outside of org-mode
>
> (defface todo-comment-face '((t (:background "red" :foreground
> "yellow" :weight bold :bold t))) "Face for TODO in code buffers.")
> (defvar todo-comment-face 'todo-comment-face)
> (defun fontify-todo ()
> (font-lock-add-keywords nil '(("\\<\\(TODO\\)\\>"
> (1 todo-comment-face t)))))
>
> (add-hook 'emacs-lisp-mode-hook #'fontify-todo)
>
>
> (defface headline-face '((t (:foreground "white" :underline "white"
> :background "navyblue"))) "Face for headlines.")
> (defvar headline-face 'headline-face)
>
> (defun fontify-headline ()
> (font-lock-add-keywords nil '(("^;;;;* \\(.*\\)\\>"
> (1 headline-face t)))))
>
>
> (add-hook 'emacs-lisp-mode-hook #'fontify-headline)
>
>
>
>
> --
> David O'Toole
> dto@gnu.org
> http://dto.freeshell.org/notebook/
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-27 3:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-25 22:48 orgstruct-mode error David O'Toole
2007-08-27 3:16 ` Carsten Dominik
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).