emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tor Kringeland <tor.kringeland@ntnu.no>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [BUG] inserting notes at end
Date: Tue, 26 Jul 2022 14:15:31 +0000	[thread overview]
Message-ID: <m2zggw7yf2.fsf@ntnu.no> (raw)

If our Org file is

#+begin_example
* a heading

text<POINT>
#+end_example

And we insert an empty note, we get

#+begin_example
* a heading

- Note taken on [2022-07-26 Tue 16:10]
text
#+end_example

instead of the expected

#+begin_example
* a heading
- Note taken on [2022-07-26 Tue 16:10]

text
#+end_example

If POINT is at the heading or the line below, behavior is as expected.
If a note has already been inserted correctly before (as in the third
snippet), then subsequent notes are insert corrected as well, regardless
of POINT.  Conversely, if one first is inserted wrongly, then subsequent
will also be inserted wrongly.

             reply	other threads:[~2022-07-26 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26 14:15 Tor Kringeland [this message]
2022-07-27  3:41 ` [BUG] inserting notes at end Ihor Radchenko
2022-07-27  8:42   ` Tor Kringeland
2022-07-28 14:17     ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2zggw7yf2.fsf@ntnu.no \
    --to=tor.kringeland@ntnu.no \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).