emacs-orgmode
[Top][All Lists]
Advanced

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

[O] org-capture will cause org structure weird...


From: stardiviner
Subject: [O] org-capture will cause org structure weird...
Date: Wed, 11 Dec 2013 19:37:46 +0800

I found org-capture will cause this weird problem like bellowing:

-----------------------------------------------------------------------------------------------------
screenshot:

Attachment: org-capture-error.png
Description: screenshot

-----------------------------------------------------------------------------------------------------
And error output when I try to use [TAB] to expand and more around (I use 
[C-n], or [C-f] to move around).

#+BEGIN_EXAMPLE
Debugger entered--Lisp error: (error "Invalid search bound (wrong side of 
point)")
  re-search-forward("^\\([  ]*\\([-+]\\|\\(\\([0-9]+\\)[.)]\\)\\)\\|[   
]+\\*\\)\\([    ]+\\|$\\)" 11799 t)
  byte-code("`  \n\f#\204\305\306\f\307>\203\202b\210\310\"\210\311 
\203\305\306`\"\210\202" [origin search re bound noerr throw exit (t nil) nil 
org-list-in-valid-context-p] 4)
  org-list-search-generic(re-search-forward "^\\([  
]*\\([-+]\\|\\(\\([0-9]+\\)[.)]\\)\\)\\|[   ]+\\*\\)\\([    ]+\\|$\\)" 11799 t)
  org-list-search-forward("^\\([    ]*\\([-+]\\|\\(\\([0-9]+\\)[.)]\\)\\)\\|[   
]+\\*\\)\\([    ]+\\|$\\)" 11799 t)
  org-cycle-internal-local()
  org-cycle(nil)
  #<subr call-interactively>(org-cycle nil nil)
  ad-Advice-call-interactively(#<subr call-interactively> org-cycle)
  apply(ad-Advice-call-interactively #<subr call-interactively> org-cycle)
  call-interactively(org-cycle)
  yas--fallback()
  yas-expand()
  #<subr call-interactively>(yas-expand nil nil)
  ad-Advice-call-interactively(#<subr call-interactively> yas-expand nil nil)
  apply(ad-Advice-call-interactively #<subr call-interactively> (yas-expand nil 
nil))
  call-interactively(yas-expand nil nil)
  command-execute(yas-expand)
#+END_EXAMPLE

-----------------------------------------------------------------------------------------------------
And I set up org-capture like this:

#+BEGIN_SRC emacs-lisp
(require 'org-capture)

(define-key global-map (kbd "C-c o c") 'org-capture)

(setq org-default-notes-file (concat org-directory "/Capture/notes.org"))

(setq org-capture-templates
      '(("c" "Capture" entry (file+headline "~/Org/Capture/Capture.org" 
"Capture")
         "* TODO %^{prompt}\n\n%i\n\n%a\n\n%?")
        ("t" "Capture a task into Tasks" entry (file+headline "~/Org/Tasks.org" 
"Tasks")
         "* TODO %^{prompt} [/]\n\n%?\n\n")
        ("u" "Capture an entry into Buy list" entry (file+headline 
"~/Org/Tasks.org" "Buy")
         "* TODO %^{prompt}\n\n%i\n\n%?\n\n")
        ("j" "Journal" entry (file+datetree "~/Org/Journal.org" "Journal")
         "* %^{prompt}\nEntered on %U\n %i\n %?\n\n")
        ;; TODO Contacts
        ;; Issues, Bugs, Features
        ("b" "record a bug to list" entry (file+olp 
"~/Org/Projects/Projects.org" "Computer (电子科技)" "Bugs")
         "* BUG %^{prompt}\n\n%i\n\n%?\n\n")
        ("i" "record an issue to list" entry (file+olp 
"~/Org/Projects/Projects.org" "Computer (电子科技)" "Issues")
         "* ISSUE %^{prompt}\n\n%i\n\n%?\n\n")
        ("f" "record a feature to list" entry (file+olp 
"~/Org/Projects/Projects.org" "Computer (电子科技)" "Features")
         "* FEATURE %^{prompt}\n\n%i\n\n%?\n\n")
        ;; bookmark
        ("B" "Add an URL to bookmark database" entry (file+headline 
"~/Org/Wiki/Data/Bookmarks/Bookmarks.org" "Others")
         "* %^{prompt}\n\n%A\n\n%?\n\n")
        ))
#+END_SRC

And I have a long org-mode config. I can not paste here.

I will paste it on Gist. Here is the link: https://gist.github.com/7908902

-- 
[ stardiviner ] Kill the world if you want. That's it.
IRC(freenode): stardiviner     \ Twitter:  @numbchild \

reply via email to

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