emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-insert-heading
@ 2014-11-12  0:10 Luke Crook
  2014-11-12  0:13 ` org-insert-heading Luke Crook
  2014-11-13 20:01 ` org-insert-heading Nicolas Goaziou
  0 siblings, 2 replies; 17+ messages in thread
From: Luke Crook @ 2014-11-12  0:10 UTC (permalink / raw)
  To: emacs-orgmode

Question concerning the behaviour of org-insert-heading;

The manual states the following.
>>
If the command is used at the end of a folded subtree (i.e., behind the 
ellipses at the end of a headline), then a headline will be inserted after 
the end of the subtree.
<<

However at least in my installation (Emacs 34.3, org-mode 8.2.10), the new 
heading is created prior to the ellipses.

For example

* Heading folded...

                ^ cursor here, then M-<RET> results in the following.

* Heading folded
* ...

  ^ cursor here

^ permalink raw reply	[flat|nested] 17+ messages in thread
* org-insert-heading
@ 2013-11-13  1:49 Thomas S. Dye
  2013-11-13  8:58 ` org-insert-heading Bastien
  0 siblings, 1 reply; 17+ messages in thread
From: Thomas S. Dye @ 2013-11-13  1:49 UTC (permalink / raw)
  To: Org-mode

Aloha all,

With the following Org mode file, there is a dead space where
org-insert-heading doesn't do anything. In the following example, if the
point is on either of the empty lines marked [dead space] no heading is
created.

Is this behavior intended?

* Folded heading   ...
[dead space]
[dead space]

* Heading

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com

^ permalink raw reply	[flat|nested] 17+ messages in thread
* org-insert-heading
@ 2010-10-15 17:38 Andreas Röhler
  2010-10-16  5:30 ` org-insert-heading Carsten Dominik
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Röhler @ 2010-10-15 17:38 UTC (permalink / raw)
  To: emacs-orgmode


Hi,

doku of `org-insert-heading' says:

,----
| If point is not at the beginning, do not split the line,
| but create the new headline after the current line.
`----

which sounds wisely.

Unfortunately function behaves different, splits line
uses it's following part to create the new headline
from, an inconvenience, resp. bug IMHO.

Also tex-info endorses that:

,----
| When this command is used in
| the middle of a line, the line is split and the rest of the line becomes
| the new headline@footnote{If you do not want the line to be split,
| customize the variable
`----

Seems something across anyway.  Suggest to restore/enable the
behaviour of the doku-string. Could send a patch.

Interesting to read the reason for this change/difference anyway, so 
maybe I change my opinion too...

Thanks all


Andreas

--
https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
https://code.launchpad.net/s-x-emacs-werkstatt/

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

end of thread, other threads:[~2014-11-16 14:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12  0:10 org-insert-heading Luke Crook
2014-11-12  0:13 ` org-insert-heading Luke Crook
2014-11-13 20:01 ` org-insert-heading Nicolas Goaziou
2014-11-14  3:14   ` org-insert-heading Luke Crook
2014-11-14  4:18     ` org-insert-heading Luke Crook
2014-11-16 14:52     ` org-insert-heading Nicolas Goaziou
  -- strict thread matches above, loose matches on Subject: below --
2013-11-13  1:49 org-insert-heading Thomas S. Dye
2013-11-13  8:58 ` org-insert-heading Bastien
2013-11-13 13:06   ` org-insert-heading Thomas S. Dye
2013-11-13 14:15     ` org-insert-heading Bastien
2013-11-14 17:46       ` org-insert-heading Nicolas Goaziou
2013-11-14 22:53         ` org-insert-heading Bastien
2013-11-15  6:42           ` org-insert-heading Carsten Dominik
2013-11-15  8:08             ` org-insert-heading Bastien
2010-10-15 17:38 org-insert-heading Andreas Röhler
2010-10-16  5:30 ` org-insert-heading Carsten Dominik
2010-10-16  6:14   ` org-insert-heading Andreas Röhler

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