From mboxrd@z Thu Jan 1 00:00:00 1970 From: kuanyui Subject: Bug: [Capture] wrongly duplicated date tree outlines [8.2.10] Date: Fri, 21 Nov 2014 04:37:02 +0800 Message-ID: <871tox8v81.fsf@kuanyui-laptop.site> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYUg-0005mT-HE for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 15:38:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrYUc-0005zH-FZ for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 15:38:22 -0500 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:53604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYUc-0005z3-0H for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 15:38:18 -0500 Received: by mail-pa0-f54.google.com with SMTP id fb1so3244321pad.41 for ; Thu, 20 Nov 2014 12:38:16 -0800 (PST) Received: from kuanyui-laptop.site (36-234-151-69.dynamic-ip.hinet.net. [36.234.151.69]) by mx.google.com with ESMTPSA id pg9sm2807775pdb.71.2014.11.20.12.38.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Nov 2014 12:38:15 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I want to have a `file+datetree` for Org-mode's Capture, so I set like this: (setq org-capture-templates '(("D" "Diary + Timer" entry (file+datetree (concat org-directory "/diary/diary.org")) "* %^{Description: } %^g \n %i %?\n" :clock-in t :clock-keep= t) ("d" "Diary" entry (file+datetree (concat org-directory "/diary/diary.org")) "* %? %U") )) And use these captures to add items for `diary.org` several times. I expect= the file has: * 2014=20=20=20 ** 2014-11 11 =E6=9C=88 *** 2014-11-21 =E9=87=91=E6=9B=9C=E6=97=A5 **** test1 [2014-11-21 =E9=87=91 03:08] **** test2 [2014-11-21 =E9=87=91 03:08] **** test3 [2014-11-21 =E9=87=91 03:08] But what I get is like this: * 2014 ** 2014-11 11 =E6=9C=88 *** 2014-11-21 =E9=87=91=E6=9B=9C=E6=97=A5 **** test1 [2014-11-21 =E9=87=91 03:08] ** 2014-11 11 =E6=9C=88 *** 2014-11-21 =E9=87=91=E6=9B=9C=E6=97=A5 **** test2 [2014-11-21 =E9=87=91 03:09] ** 2014-11 11 =E6=9C=88 *** 2014-11-21 =E9=87=91=E6=9B=9C=E6=97=A5 **** test3 [2014-11-21 =E9=87=91 03:09] How to solve this problem...? (I've ever used Org's Capture one year ago, and at that time it worked just liked I wish; I have no idea why it becomes this.) I just asked this problem on StackExchange: http://emacs.stackexchange.com/questions/3757/orgs-capture-annoying-duplica= ted-date-tree-outlines And it seems a bug of Org-mode itself. Emacs : GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2014-10-23 on kuanyui-laptop.site Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/share/emacs/2= 4.4/lisp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-comman= d-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) outline-minor-mode-hook '(wikipedia-outline-magic-keys) org-latex-classes '(("article" "\n\\documentclass[12pt,a4paper]{article}\n\\usepackage[margin=3D2c= m]{geometry}\n\\usepackage{fontspec}\n\\setromanfont{cwTeXMing}\n\n\\usepac= kage{etoolbox} % Quote=E9=83=A8=E4=BB=BD=E7=9A=84=E5=AD=97=E5=9E=8B=E8=A8= =AD=E5=AE=9A\n\\newfontfamily\\quotefont{cwTeXFangSong}\n\\AtBeginEnvironme= nt{quote}{\\quotefont\\small}\n\n\\setmonofont[Scale=3D0.9]{Courier} % =E7= =AD=89=E5=AF=AC=E5=AD=97=E5=9E=8B [FIXME] Courier =E4=B8=AD=E6=96=87=E6=9C= =83=E7=88=9B=E6=8E=89=EF=BC=81\n\\font\\cwSong=3D''cwTeXFangSong'' at 10pt\= n%\\font\\cwHei=3D''cwTeXHeiBold'' at 10p %=E4=B8=8D=E7=9F=A5=E7=82=BA=E4= =BD=95=E6=9C=83=E7=88=86=E6=8E=89\n\\font\\cwYen=3D''cwTeXYen'' at 10pt\n\\= font\\cwKai=3D''cwTeXKai'' at 10pt\n\\font\\cwMing=3D''cwTeXMing'' at 10pt\= n\\font\\wqyHei=3D''=E6=96=87=E6=B3=89=E9=A9=9B=E6=AD=A3=E9=BB=91'' at 10pt= \n\\font\\wqyHeiMono=3D''=E6=96=87=E6=B3=89=E9=A9=9B=E7=AD=89=E5=AF=AC=E6= =AD=A3=E9=BB=91'' at 10pt\n\\font\\wqyHeiMicro=3D''=E6=96=87=E6=B3=89=E9=A9= =9B=E5=BE=AE=E7=B1=B3=E9=BB=91'' at 10pt\n\\XeTeXlinebreaklocale ``zh''\n\\= XeTeXlinebreakskip =3D 0pt plus 1pt\n\\linespread{1.36}\n\n\\usepackage{mul= ticol}\n\n% [FIXME] ox-latex =E7=9A=84=E8=A8=AD=E8=A8=88=E4=B8=8D=E8=89=AF= =E5=B0=8E=E8=87=B4hypersetup=E5=BF=85=E9=A0=88=E5=9C=A8=E9=80=99=E8=A3=A1= =E6=8F=92=E5=85=A5\n\\usepackage{hyperref}\n\\hypersetup{\n colorlinks=3Dt= rue, %=E6=8A=8A=E7=B4=85=E6=A1=86=E6=A1=86=E7=A7=BB=E6=8E=89=E6=94=B9=E7=94= =A8=E5=AD=97=E9=AB=94=E9=A1=8F=E8=89=B2=E4=B8=8D=E5=90=8C=E4=BE=86=E9=A1=AF= =E7=A4=BA=E9=80=A3=E7=B5=90\n linkcolor=3D[rgb]{0,0.37,0.53},\n citecolor= =3D[rgb]{0,0.47,0.68},\n filecolor=3D[rgb]{0,0.37,0.53},\n urlcolor=3D[rg= b]{0,0.37,0.53},\n pagebackref=3Dtrue,\n linktoc=3Dall,}\n" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("beamer" "\n\\documentclass[presentation]{beamer}\n\\usepackage{fontspec}\n\= \setromanfont{wqyHeiMicro}\n\n\\setmonofont[Scale=3D0.9]{Courier} % =E7=AD= =89=E5=AF=AC=E5=AD=97=E5=9E=8B [FIXME] Courier =E4=B8=AD=E6=96=87=E6=9C=83= =E7=88=9B=E6=8E=89=EF=BC=81\n\\font\\cwSong=3D''cwTeXFangSong'' at 10pt\n%\= \font\\cwHei=3D''cwTeXHeiBold'' at 10p %=E4=B8=8D=E7=9F=A5=E7=82=BA=E4=BD= =95=E6=9C=83=E7=88=86=E6=8E=89\n\\font\\cwYen=3D''cwTeXYen'' at 10pt\n\\fon= t\\cwKai=3D''cwTeXKai'' at 10pt\n\\font\\cwMing=3D''cwTeXMing'' at 10pt\n\\= font\\wqyHei=3D''=E6=96=87=E6=B3=89=E9=A9=9B=E6=AD=A3=E9=BB=91'' at 10pt\n\= \font\\wqyHeiMono=3D''=E6=96=87=E6=B3=89=E9=A9=9B=E7=AD=89=E5=AF=AC=E6=AD= =A3=E9=BB=91'' at 10pt\n\\font\\wqyHeiMicro=3D''=E6=96=87=E6=B3=89=E9=A9=9B= =E5=BE=AE=E7=B1=B3=E9=BB=91'' at 10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeT= eXlinebreakskip =3D 0pt plus 1pt\n\\linespread{1.36}\n\n" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ) org-latex-default-packages-alist '(("" "hyperref" nil) ("AUTO" "inputenc" = t) ("" "fixltx2e" nil) ("" "graphicx" t) ("" "longtable" nil) ("" "float" nil) ("" "wrapfig" nil) ("" "rotating" nil) ("normalem" "ulem" t) ("" "amsmath" t) ("" "textcomp" t) ("" "marvosym" t) ("" "wasysym" t) ("" "amssymb" t) "\\tolerance=3D1000") org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-co= mmand-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done 'time org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-image-actual-width '(300) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-pdf-process '("xelatex -interaction nonstopmode -output-director= y %o %f" "xelatex -interaction nonstopmode -output-directory %o %f" "xelatex -interaction nonstopmode -output-directory %o %f") org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'= " . "xdg-open %s") ("\\.pdf\\'" . "kde-open %s") ("\\.jpg\\'" . "kde-open %s")) org-agenda-custom-commands '(("w" todo "STARTED") ("D" "Daily Action List" ((agenda "" ((org-agenda-ndays 1) (org-agenda-sorting-strategy (quote ((agenda time-up priority-down tag-up)))) (org-deadline-warning-days 0)) ) ) ) ("P" "Projects" ((tags "Project"))) (" " "Agenda" ((todo "STARTED" ((org-agenda-overriding-header "What you should doing right now!") (org-tags-match-list-sublevels nil)) ) (todo "WAITING" ((org-agenda-overriding-header "Things waiting on the perenially disorganised masses") (org-tags-match-list-sublevels nil)) ) (agenda "Timetable, diary & date tasks" ((org-agenda-ndays 7) (org-deadline-warning-days 45))) (todo "" ((org-agenda-overriding-header "All other TODOs") (org-agenda-todo-ignore-scheduled t) (org-agenda-todo-ignore-deadlines t) (org-agenda-todo-ignore-with-date t) (org-agenda-todo-ignore-timestamp t) (org-agenda-skip-function (quote (ky/org-agenda-skip-tag "Project"))) ) ) (tags-todo "Project" ((org-agenda-overriding-header "Projects' TODOs"))) ) ) ("d" "Upcoming deadlines" agenda "" ((org-agenda-entry-types (quote (:deadline))) (org-agenda-ndays 1) (org-deadline-warning-days 60) (org-agenda-time-grid nil)) ) ("c" "Weekly schedule" agenda "" ((org-agenda-ndays 7) (org-agenda-repeating-timestamp-show-all t) (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote deadline) (quote scheduled)) ) ) ) ) ("P" "Printed agenda" ((agenda "" ((org-agenda-ndays 7) (org-agenda-start-on-weekday nil) (org-agenda-repeating-timestamp-show-all t) (org-agenda-entry-types (quote (:timestamp :sexp)))) ) (agenda "" ((org-agenda-ndays 1) (org-deadline-warning-days 7) (org-agenda-todo-keyword-format "[ ]") (org-agenda-scheduled-leaders (quote ("" ""))) (org-agenda-prefix-format "%t%s")) ) (todo "TODO" ((org-agenda-prefix-format "[ ] %T: ") (org-agenda-sorting-strategy (quote (tag-up priority-down))) (org-agenda-todo-keyword-format "") (org-agenda-overriding-header "\nTasks by Context\n------------------\n") ) ) ) ((org-agenda-with-colors nil) (org-agenda-compact-blocks t) (org-agenda-remove-tags t) (ps-number-of-columns 2) (ps-landscape-mode t)) ("~/agenda.ps")) ) org-agenda-block-separator 45 org-return-follows-link t org-latex-format-headline-function 'org-latex-format-headline-default-func= tion org-default-notes-file "~/org/notes.org" org-capture-templates '(("t" "Todo" entry (file+headline (concat org-directory "/agenda/Todo.org") "Todo") "** TODO% ? %^G\n %i") ("s" "School" entry (file+headline (concat org-directory "/agenda/School.org") "School") "** TODO %?\n %i") ("b" "Buy" entry (file+headline (concat org-directory "/agenda/Todo.org") "Buy") "** TODO %?\n %i") ("r" "Reading" entry (file+headline (concat org-directory "/agenda/Reading.org") "Reading") "** %? %i :Reading:") ("D" "Diary + Timer" entry (file+datetree (concat org-directory "/diary/diary.org")) "* %^{Description: } %^g \n %i %?\n" :clock-in t :clock-keep t) ("d" "Diary" entry (file+datetree (concat org-directory "/diary/diary.org")) "* %? %U") ("e" "Event" entry (file+headline (concat org-directory "/agenda/Event.org") "Event") "** %? %^g\n%^{Event's date&time? }T\n %i") ("c" "calfw2org" entry (file nil) "** %?\n %(cfw:org-capture-day)")) org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-odt-format-headline-function 'ignore org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-log-redeadline t org-agenda-dim-blocked-tasks nil org-mode-hook '(org-clock-load (closure (t) nil (setq truncate-lines nil)) #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] = 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes (lambda nil (pangu-spacing-mode 1) (set (make-local-variable (quote pangu-spacing-real-insert-separtor)) t= )) (closure (t) nil (define-key org-mode-map (kbd "C-c SPC") (quote ace-jump-word-mode)) (define-key org-mode-map (kbd "C-c C-e") (quote org-export-dispatch))) ) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-odt-format-inlinetask-function 'ignore org-clock-persist 'history org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-= maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-log-reschedule 'note org-todo-keywords '((type "TODO(t!)" "STARTED(s!)" "WAITING(w!)" "APPT(a!)= " "|" "DONE(d!)") (type "PROJECT(p!)" "|" "DONE(d!)") (type "|" "CANCELLED(x@)" "DEFERRED(f@)")) org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer t org-odt-format-drawer-function '(lambda (name contents) contents) org-html-head "" org-html-format-headline-function 'ignore org-html-format-inlinetask-function 'ignore org-agenda-files '("~/org/agenda/Event.org" "~/org/agenda/School.org" "~/org/agenda/Reading.org" "~/org/agenda/Project.org" "~/org/agenda/Learning.org" "~/org/agenda/Todo.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-src-fontify-natively t )