Re: incorrect indentation of new item inserted with capture template

2022-10-29 Thread Ihor Radchenko
Ian Garmaise  writes:

> I figured out the problem.  Seems like date trees expect only list items
> between date headlines.
> I had been adding headlines between dates, and this seems to confuse the
> insertion mechanism.  I now stick to list items and it works perfectly.
> Might be a good idea to add something about this to the manual.

If you post an example where org-datetree gets confused, we can improve
things on Org side.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: incorrect indentation of new item inserted with capture template

2022-10-29 Thread Ian Garmaise
Hi Ihor,

I figured out the problem.  Seems like date trees expect only list items
between date headlines.
I had been adding headlines between dates, and this seems to confuse the
insertion mechanism.  I now stick to list items and it works perfectly.
Might be a good idea to add something about this to the manual.

Thanks for following up.

Cheers,

Ian


On Sat, Oct 29, 2022 at 12:49 AM Ihor Radchenko  wrote:

> Ian Garmaise  writes:
>
> > I have had this problem for several months.
> >
> > I keep a daily journal.  Each morning I add a new entry in a journal file
> > using a capture template.  The journal file is always loaded.
> > On some occasions the indentation of the new entry is incorrect.
> >
> > Here's an example of incorrect indentation:
> >
> > *** 2021-12-05 Sunday
> >
> > - item 1
> > - item 2
> >
> > * 2021-12-06 Monday
> >
> > What I usually do is undo the insertion and reissue the command.
> > This always works.
>
> Sorry for the late reply.
> I am unable to reproduce the problem of the latest main.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at .
> Support Org development at ,
> or support my work at 
>


-- 
=
Ian Garmaise
Consultant
Phorix Solutions Group
ia...@phorixsol.com
Toronto cell: 416.432.2251 (also on Whatsapp)

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com


Re: incorrect indentation of new item inserted with capture template

2022-10-28 Thread Ihor Radchenko
Ian Garmaise  writes:

> I have had this problem for several months.
>
> I keep a daily journal.  Each morning I add a new entry in a journal file
> using a capture template.  The journal file is always loaded.
> On some occasions the indentation of the new entry is incorrect.
>
> Here's an example of incorrect indentation:
>
> *** 2021-12-05 Sunday
>
> - item 1
> - item 2
>
> * 2021-12-06 Monday
>
> What I usually do is undo the insertion and reissue the command.
> This always works.

Sorry for the late reply.
I am unable to reproduce the problem of the latest main.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



incorrect indentation of new item inserted with capture template

2021-12-06 Thread Ian Garmaise
I have had this problem for several months.

I keep a daily journal.  Each morning I add a new entry in a journal file
using a capture template.  The journal file is always loaded.
On some occasions the indentation of the new entry is incorrect.

Here's an example of incorrect indentation:

*** 2021-12-05 Sunday

- item 1
- item 2

* 2021-12-06 Monday

What I usually do is undo the insertion and reissue the command.
This always works.

I had thought this might have been due to a mixed org installation, but
recently, I deleted org and reinstalled from org elpa with emacs -q

I have no other current issues.
This is the capture template:

 ("j" "Journal entry" plain
  (file+olp+datetree "~/Dropbox/org/journal.org")
  "%i\n%?\n" :time-prompt 1 :jump-to-captured 1)

I am happy to do any other testing that is needed.

Running on Windows 10


Emacs  : GNU Emacs 27.2 (build 1, i686-w64-mingw32)
 of 2021-03-26
Package: Org mode version 9.5 (9.5-g0a86ad @
c:/users/ian/.emacs.d/elpa/org-9.5/)

current state:
==
(setq
 org-link-abbrev-alist '(("gmail" . "
https://mail.google.com/mail/?view=cm=1=%s;))
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-babel-load-languages '((emacs-lisp . t) (latex . t) (dot . t) (org .
t) (plantuml . t))
 org-agenda-time-grid '((daily today require-timed) (600 800 1000 1200 1400
1600 1800 2000) ".."
"")
 org-babel-results-keyword "results"
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-capture-templates '(("z" "Toefl school entry" entry
 (file+olp "~/Dropbox/org/nowtutoradmin.org" "Tasks (billable)"
  "Contact schoools, consultants re B2B service" "Toefl Schools in NYC")
 "*** %^{School}\n:PROPERTIES\n:web_site: %^{web site}\n:Email_address:
%^{email address}\n:Gmail_link: [[gmail:%\\3]]\n:FirstName: %^{first
name}\n:LastName: %^{last name}\n:Position: %^{position}\n:datecreated:
%u\n:END\n" :jump-to-captured 1)
("n" "Candidate entry" entry
 (file+olp "~/Dropbox/org/nowtutoradmin.org" "datastores" "candidates")
 "** %^{Candidate} %^g\n:PROPERTIES:\n:Position: %^{Select
position|Portuguese Voice|In-China online}\n:Status: \n:Email_address:
[[gmail:%^{email
address}]]\n:Pronunciation_test_id:\n:LinkedInAddress:\n:ScreeningResult:\n:Datecreated:
%u\n:Skype:
\n:Ranking:\n:Video_url:\n:University_grad:\n:Certified:\n:Years_of_experience:\n:Open_to_onsite:\n:Resume_location:\n:Resume_link:\n:Citizenship:\n:Country:\n:END:\n***
%\\1   :sendScreener:\nDEADLINE:
%(org-insert-time-stamp (org-read-date nil t \"+3\"))\n" :jump-to-captured
1)
("s" "Submission entry" entry
 (file+olp "~/Dropbox/org/nowtutoradmin.org" "datastores" "submissions")
 "** TOSUBMIT %^{Client|Aston|Chengxun|Daqing EF|EF Xuzhou|Jing|Lin
Qiu|Micro-Language|Smilekid|Super Small Translation|Wowtalk}
%a\n:PROPERTIES:\n:Client: %\\1\n:Candidate: %a\n:Datecreated: %U\n:END:\n"
:jump-to-captured 1)
("j" "Journal entry" plain (file+olp+datetree "~/Dropbox/org/journal.org")
"%i\n%?\n"
 :time-prompt 1 :jump-to-captured 1)
("m" "meeting log entry" plain
 (file+olp+datetree "~/Dropbox/org/nowtutoradmin.org" "work log") "\n\n%?"
:clock-in 1
 :empty-lines 1 :jump-to-captured 1)
("w" "Web site" entry (file "") "* %a :website:\n\n%U %?\n\n%:initial")
("p" "Protocol" entry (file+headline (\, (concat org-directory "notes.org"))
"Inbox")
 "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?")
("L" "Protocol Link" entry (file+headline (\, "~/Dropbox/org/inbox.org")
"Web captures")
 "* %? [[%:link][%(transform-square-brackets-to-round-ones
\"%:description\")]]\nCaptured On: %U")
("g" "Goals")
("ge" "Epic goals" entry (file+olp buffer-file-name "Goals" "Epic goals")
 (file "~/Dropbox/org/tpl-goal.txt") :empty-lines-after 1)
("gl" "Long term goal (2-5 years from now)" entry
 (file+olp buffer-file-name "Goals" "Long term goals")
 (file "~/Dropbox/org/tpl-goal.txt") :empty-lines-after 1)
("gm" "Medium term goal (6 months up to 2 years)" entry
 (file+olp buffer-file-name "Goals" "Medium term goals")
 (file "~/Dropbox/org/tpl-goal.txt") :empty-lines-after 1)
("gs" "Short term goals (next 6 months)" entry
 (file+olp buffer-file-name "Goals" "Short term goals")
 (file "~/Dropbox/org/tpl-goal.txt") :empty-lines-after 1)
)
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-clock-report-include-clocking-task t
 org-link-from-user-regexp "\\"
 org-log-into-drawer t
 org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el")
("elisp" . "el"))
 org-directory "~/Dropbox/org"
 org-clock-sound "/program files/itunes/itunes.resources/complete.wav"