emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Masterson <dsmasterson@outlook.com>
To: Neil Jerram <neil@ossau.homelinux.net>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Standard Format for Org Outlines?
Date: Tue, 27 Nov 2018 17:20:58 +0000	[thread overview]
Message-ID: <SN1PR0701MB185311079F0F57DC84973CE0A5D00@SN1PR0701MB1853.namprd07.prod.outlook.com> (raw)
In-Reply-To: <878t1ex6my.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 27 Nov 2018 09:32:37 +0100")

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> David Masterson <dsmasterson@outlook.com> writes:

>> My example is simple.
>>
>> * emacs --no-init
>> * edit an org file with an outline
>> * position cursor at the end of an outline entry
>> * M-Return
>> ** result: a new header with a blank line before and after
>> * C-Return
>> ** result: a new header with a blank line before but not after

> I cannot reproduce your issue. The only difference that could occur is
> when you have sub-trees, since <C-RET> inserts the new headline at its
> end.

Hmm.  Tried again.  Severely trimmed my .emacs to the following:

;;
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cb" 'org-switchb)
(custom-set-variables
 '(package-archives
   (quote
    (("gnu" . "https://elpa.gnu.org/packages/")
     ("org" . "https://orgmode.org/")
     ("melpa-stable" . "https://stable.melpa.org/packages/"))))
 '(package-selected-packages
   (quote
    (org adaptive-wrap auctex auto-correct python)))
 '(text-mode-hook
   (quote
    (turn-on-flyspell visual-line-mode text-mode-hook-identify))))
(custom-set-faces
 '(cursor ((t (:background "blue")))))
;;

I am running Emacs v26.1 on Cygwin under Windows with Org v9.1.14.
Everything seems to work fine (slow at times, but...).  A simple file
produces the problem (and, of course, it is seen in much more complex
files).

* Header 1

* Header 2

Position the cursor on '1' and M-return will create a new header with a
blank line before and after it, but C-return will create a new header
with a blank line before, but not after it.

Not a Lisp person, but I was wondering if there is something different
in the way org-meta-return is doing its processing to determine if it
should handle a header, list, or a table?  That extra processing doesn't
appear to be in C-return.

--
David

  reply	other threads:[~2018-11-27 17:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-23 23:23 Standard Format for Org Outlines? David Masterson
2018-11-24  9:04 ` Neil Jerram
2018-11-24  9:20   ` Nicolas Goaziou
2018-11-25 20:53     ` David Masterson
2018-11-25 22:25       ` Nicolas Goaziou
2018-11-26  0:23         ` David Masterson
2018-11-26  9:52           ` Nicolas Goaziou
2018-11-26 17:29             ` David Masterson
2018-11-27  8:32               ` Nicolas Goaziou
2018-11-27 17:20                 ` David Masterson [this message]
2018-11-27 22:25                   ` Nicolas Goaziou
2018-11-29  0:22                     ` David Masterson
2018-11-29 14:10                       ` Nicolas Goaziou
2018-11-29 16:46                         ` David Masterson

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=SN1PR0701MB185311079F0F57DC84973CE0A5D00@SN1PR0701MB1853.namprd07.prod.outlook.com \
    --to=dsmasterson@outlook.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=neil@ossau.homelinux.net \
    /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).