emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Capture template issue ?
@ 2019-09-16 23:48 Jean-Christophe Helary
  2019-09-19 22:57 ` Jean-Christophe Helary
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe Helary @ 2019-09-16 23:48 UTC (permalink / raw)
  To: Org-mode

I have an issue with my capture templates where if I add an item at the end of list, the item seems to "eat" the following line break and merges with the item that follows:

* List 1
** item 1
** item 2
* List 2
** item 3
** item 4

displayed

* List 1 ...
* List 2 ...

I add item 5 to List 1, I should get:

* List 1
** item 1
** item 2
** item 5
* List 2 ...

But instead I get

* List 1
** item 1
** item 2
** item 5 * List 2 ...

which makes List 2 disappear for all practical purposes.

That's pretty systematic, and very annoying.

Nearly all my templates show a similar behavior.

This one was:

	       (file+headline "~/org/journal.org" "Dictionnaire")
               "* %? :%^{tag}:\n")

I'm using the built-in 9.1.9 version, with an emacs from master built a few days ago, on macos.

And my org setup is this:

(setq org-use-speed-commands t
      org-directory "~/org"
      org-default-notes-file (concat org-directory "/notes.org")
      org-refile-targets '((org-agenda-files :maxlevel . 3))
      org-refile-use-outline-path 'file
      org-outline-path-complete-in-steps nil
      org-refile-allow-creating-parent-nodes 'confirm
      org-startup-indented t
      org-use-fast-todo-selection t
      org-return-follows-link t
      org-link-abbrev-alist '(("message" . "mailto"))
      org-todo-keywords
      '((sequence "TODO(t)" "|" "DONE(d)")
	(sequence "WAIT(w)" "|" "IN-PROGRESS" "|" "CANCELED(c)"))
      org-agenda-files
      '("/Users/suzume/org/" "/Users/suzume/Library/Application Support/Notational Data/")
      org-indirect-buffer-display 'current-window
      org-modules
      '(org-bbdb org-bibtex org-docview org-habit org-info org-irc org-mhe org-protocol org-rmail)
      org-support-shift-select t
      org-todo-keyword-faces
      '(("IN-PROGRESS" . "orange") ("WAIT" . "magenta") ("CANCELED" . "darkgreen") ("TODO" . "pink") ("DONE" . "green")))


Where should I investigate to fix this ?


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune

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

* Re: Capture template issue ?
  2019-09-16 23:48 Capture template issue ? Jean-Christophe Helary
@ 2019-09-19 22:57 ` Jean-Christophe Helary
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe Helary @ 2019-09-19 22:57 UTC (permalink / raw)
  To: Org-mode

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

The issue is systematic.

I have changed my settings to:

 org-hide-leading-stars nil
 org-startup-folded nil 

But that doesn't change anything.

I have quasi systematically the issue I described when the file that will be modified by the capture is not visible when I capture, and generally I don't have it when it is visible when I do.

Currently, the place where that happens most (?) is when I add captured text in a "file+datetree" structure right over a "file+headline" structure.

Jean-Christophe Helary 

> On Sep 17, 2019, at 8:48, Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org> wrote:
> 
> I have an issue with my capture templates where if I add an item at the end of list, the item seems to "eat" the following line break and merges with the item that follows:
> 
> * List 1
> ** item 1
> ** item 2
> * List 2
> ** item 3
> ** item 4
> 
> displayed
> 
> * List 1 ...
> * List 2 ...
> 
> I add item 5 to List 1, I should get:
> 
> * List 1
> ** item 1
> ** item 2
> ** item 5
> * List 2 ...
> 
> But instead I get
> 
> * List 1
> ** item 1
> ** item 2
> ** item 5 * List 2 ...
> 
> which makes List 2 disappear for all practical purposes.
> 
> That's pretty systematic, and very annoying.
> 
> Nearly all my templates show a similar behavior.
> 
> This one was:
> 
> 	       (file+headline "~/org/journal.org" "Dictionnaire")
>               "* %? :%^{tag}:\n")
> 
> I'm using the built-in 9.1.9 version, with an emacs from master built a few days ago, on macos.
> 
> And my org setup is this:
> 
> (setq org-use-speed-commands t
>      org-directory "~/org"
>      org-default-notes-file (concat org-directory "/notes.org")
>      org-refile-targets '((org-agenda-files :maxlevel . 3))
>      org-refile-use-outline-path 'file
>      org-outline-path-complete-in-steps nil
>      org-refile-allow-creating-parent-nodes 'confirm
>      org-startup-indented t
>      org-use-fast-todo-selection t
>      org-return-follows-link t
>      org-link-abbrev-alist '(("message" . "mailto"))
>      org-todo-keywords
>      '((sequence "TODO(t)" "|" "DONE(d)")
> 	(sequence "WAIT(w)" "|" "IN-PROGRESS" "|" "CANCELED(c)"))
>      org-agenda-files
>      '("/Users/suzume/org/" "/Users/suzume/Library/Application Support/Notational Data/")
>      org-indirect-buffer-display 'current-window
>      org-modules
>      '(org-bbdb org-bibtex org-docview org-habit org-info org-irc org-mhe org-protocol org-rmail)
>      org-support-shift-select t
>      org-todo-keyword-faces
>      '(("IN-PROGRESS" . "orange") ("WAIT" . "magenta") ("CANCELED" . "darkgreen") ("TODO" . "pink") ("DONE" . "green")))
> 
> 
> Where should I investigate to fix this ?
> 
> 
> Jean-Christophe Helary
> -----------------------------------------------
> http://mac4translators.blogspot.com @brandelune
> 
> 
> 

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune



[-- Attachment #2: Type: text/html, Size: 6451 bytes --]

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

end of thread, other threads:[~2019-09-19 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-16 23:48 Capture template issue ? Jean-Christophe Helary
2019-09-19 22:57 ` Jean-Christophe Helary

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