Re: [O] Bug: [Capture] wrongly duplicated date tree outlines [8.2.10]

2014-11-24 Thread Eric S Fraga
On Sunday, 23 Nov 2014 at 23:52, kuanyui wrote:
 So sorry to everyone, I just found this is problem is caused by
 `pangu-spacing'.
 https://github.com/coldnew/pangu-spacing/issues/5

I notice that there has been a response to your issue.  As well as that
response, I wonder whether setting the
pangu-spacing-real-insert-separator for org mode files would solve your
problem as well?  Mind you, you might not want to have the space
inserted...

From an org point of view, I am surprised that org-capture has a problem
if the space is not actually there.  Is the original date inserted in
the datetree hierarchy inserted by org or by you?  If org, I would have
thought that it would find the same heading later when inserting again.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-589-g9eff31.dirty



Re: [O] Bug: [Capture] wrongly duplicated date tree outlines [8.2.10]

2014-11-23 Thread kuanyui
So sorry to everyone, I just found this is problem is caused by
`pangu-spacing'.
https://github.com/coldnew/pangu-spacing/issues/5


Re: [O] Bug: [Capture] wrongly duplicated date tree outlines [8.2.10]

2014-11-21 Thread Eric S Fraga
On Friday, 21 Nov 2014 at 04:37, kuanyui wrote:
 I want to have a `file+datetree` for Org-mode's Capture, so I set like this:

[...]

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

[...]

 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/24.4/lisp/org/)

There were problems with the datetree functionality a little while
ago.  In my case, entries got put in the slot for the day before...  I
cannot remember which version of org was affected but I use this
functionality all the time and it has been working fine for a while now.

I suggest you upgrade your version of org.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-581-g0e52f0



Re: [O] Bug: [Capture] wrongly duplicated date tree outlines [8.2.10]

2014-11-21 Thread kuanyui
 Eric S Fraga wrote:
 There were problems with the datetree functionality a little while
 ago.  In my case, entries got put in the slot for the day before...  I
 cannot remember which version of org was affected but I use this
 functionality all the time and it has been working fine for a while now.
 
 I suggest you upgrade your version of org.
 -- 
 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-581-g0e52f0

I just tried to get git development version, adding into load-path,
requiring and M-x org-version to check it.

Org-mode version 8.3beta (release_8.3beta-584-g3953cb-git @ mixed
installation! /usr/local/share/emacs/24.4/lisp/org/ and
/home/kuanyui/.emacs.d/git/org-mode/lisp/)

However, the problem is still leaved unfixed. :(



[O] Bug: [Capture] wrongly duplicated date tree outlines [8.2.10]

2014-11-20 Thread kuanyui

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   
** 2014-11 11 月
*** 2014-11-21 金曜日
 test1 [2014-11-21 金 03:08]
 test2 [2014-11-21 金 03:08]
 test3 [2014-11-21 金 03:08]

But what I get is like this:

* 2014
** 2014-11 11 月
*** 2014-11-21 金曜日
 test1 [2014-11-21 金 03:08]
** 2014-11 11 月
*** 2014-11-21 金曜日
 test2 [2014-11-21 金 03:09]
** 2014-11 11 月
*** 2014-11-21 金曜日
 test3 [2014-11-21 金 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-duplicated-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/24.4/lisp/org/)

current state:
==
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-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=2cm]{geometry}\n\\usepackage{fontspec}\n\\setromanfont{cwTeXMing}\n\n\\usepackage{etoolbox}
  % 
Quote部份的字型設定\n\\newfontfamily\\quotefont{cwTeXFangSong}\n\\AtBeginEnvironment{quote}{\\quotefont\\small}\n\n\\setmonofont[Scale=0.9]{Courier}
 % 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at 
10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p 
%不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at 
10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at 
10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at 
10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 0pt plus 
1pt\n\\linespread{1.36}\n\n\\usepackage{multicol}\n\n% [FIXME] ox-latex 
的設計不良導致hypersetup必須在這裡插入\n\\usepackage{hyperref}\n\\hypersetup{\n  
colorlinks=true, %把紅框框移掉改用字體顏色不同來顯示連結\n  linkcolor=[rgb]{0,0.37,0.53},\n  
citecolor=[rgb]{0,0.47,0.68},\n  filecolor=[rgb]{0,0.37,0.53},\n  
urlcolor=[rgb]{0,0.37,0.53},\n  pagebackref=true,\n  linktoc=all,}\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=0.9]{Courier}
 % 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at 
10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p 
%不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at 
10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at 
10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at 
10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 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=1000)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-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