emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-capture will cause org structure weird...
Date: Wed, 11 Dec 2013 19:37:46 +0800	[thread overview]
Message-ID: <8761qvhb3p.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]


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

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


[-- Attachment #2: screenshot --]
[-- Type: image/png, Size: 264247 bytes --]

[-- Attachment #3: Type: text/plain, Size: 3400 bytes --]


-----------------------------------------------------------------------------------------------------
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\v\f#\204\305\306\f\307>\203\b\202\vb\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	other threads:[~2013-12-11 11:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=8761qvhb3p.fsf@gmail.com \
    --to=numbchild@gmail.com \
    --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).