emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org capture caused buffer weird indent and folding.
@ 2014-07-26  7:15 stardiviner
  2014-07-27 11:31 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: stardiviner @ 2014-07-26  7:15 UTC (permalink / raw)
  To: Org-mode

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-28 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-26  7:15 Org capture caused buffer weird indent and folding stardiviner
2014-07-27 11:31 ` Bastien

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).