emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Org capture caused buffer weird indent and folding.
Date: Sat, 26 Jul 2014 15:15:41 +0800	[thread overview]
Message-ID: <87tx64bnfm.fsf@gmail.com> (raw)

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


I set up capture templates like this

#+BEGIN_SRC emacs-lisp
(require '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")
         "\n* TODO %^{prompt}\n\n%i\n\n%a\n\n%?")
        ("t" "Capture a task into Tasks"
         entry (file+headline "~/Org/Tasks.org" "Tasks")
         "\n* TODO %^{prompt} [/]\n\n%?\n\n")
        ("u" "Capture an entry into Buy list"
         entry (file+headline "~/Org/Tasks.org" "Buy")
         "\n* TODO %^{prompt}\n\n%i\n\n%?\n\n")
        ("b" "Blog (jekyll)"
         entry (file+datetree+prompt "~/Org/Diary/Public/Blog.org")
         "* %^{Title}  :blog:\n  :PROPERTIES:\n  :on: %T\n  :END:\n  %?")
        ;; ("j" "Journal"
        ;;  entry (file+datetree "~/Org/Journal.org" "Journal")
        ;;  "\n* %^{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")
         "\n* BUG %^{prompt}\n\n%i\n\n%?\n\n")
        ("i" "record an issue to list"
         entry (file+olp "~/Org/Projects/Projects.org" "Computer (电子科技)" "Issues")
         "\n* ISSUE %^{prompt}\n\n%i\n\n%?\n\n")
        ("f" "record a feature to list"
         entry (file+olp "~/Org/Projects/Projects.org" "Computer (电子科技)" "Features")
         "\n* FEATURE %^{prompt}\n\n%i\n\n%?\n\n")
        ;; bookmark
        ("m" "Add an URL to bookmark database"
         entry (file+headline "~/Org/Wiki/Data/Bookmarks/Bookmarks.org" "Others")
         "\n* %^{prompt}\n\n%A\n\n%?\n\n")
        ;; knowledge
        ;; thought
        ;; "~/Org/Wiki/Wiki/Thought/Thought.org" "My Thought"
        ))
#+END_SRC

And when I did capture, and open that capture destination buffer, found the buffer is weird.
How weird?
Like some next siblings will be nested under the captureed headline.
For example:

#+BEGIN_SRC org
,* headline 1
,** captured entry
    some text

,* headline 2

,* headline 3

,* headline 4
#+END_SRC

Will become into this after I do Org buffer folding.

#+BEGIN_SRC org
,* headline 1....

,* headline 4
#+END_SRC

And here is the screenshot.

Here, the /*headline 2/ and /* headline 3/ both are folded. (This is weird.)
And then I use Vim to check out the file.
I found the "text" and "* headline 2" are in two lines. not in same line together.
So I don't know what happend here.

I hope someone can tell me how to debug this?
And what reasons might be at here?


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

             reply	other threads:[~2014-07-26  7:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-26  7:15 stardiviner [this message]
2014-07-27 11:31 ` Org capture caused buffer weird indent and folding Bastien

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=87tx64bnfm.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).