emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* (org-insert-headline '(4)) should insert new headline before point
@ 2014-04-03 22:59 York Zhao
  2014-04-05  3:01 ` York Zhao
  2014-04-17 14:21 ` Bastien
  0 siblings, 2 replies; 21+ messages in thread
From: York Zhao @ 2014-04-03 22:59 UTC (permalink / raw)
  To: emacs-orgmode

Hi list,

(org-insert-headline '(4)) used to insert new heading before point. But this had
broken recently. According to the docstring, this command inserts new
heading at the end of the parent subtree  ONLY if two universal prefix
arguments is given, not one. Here's the reproducer:

--8<---------------cut here---------------start------------->8---
emacs -Q -L path/to/org-mode/lisp/ --eval \
"(let ((buf (get-buffer-create \"test-org\")))
(with-current-buffer buf
(org-mode)
(insert \"* headline 1\")
(goto-char (line-beginning-position))
(org-insert-heading '(4)))
(switch-to-buffer buf))"
--8<---------------cut here---------------end--------------->8---

Thanks

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

end of thread, other threads:[~2014-06-02 12:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-03 22:59 (org-insert-headline '(4)) should insert new headline before point York Zhao
2014-04-05  3:01 ` York Zhao
2014-04-05  6:03   ` Grant Rettke
2014-04-17 14:21 ` Bastien
2014-04-20 20:46   ` York Zhao
2014-04-21  8:39     ` Nicolas Goaziou
2014-04-22  9:23     ` Bastien
2014-04-23 21:42       ` Leonard Randall
2014-04-23 21:48         ` Leonard Randall
2014-04-25  5:43           ` Eric Abrahamsen
2014-04-25  7:29           ` Bastien
2014-04-25 10:39             ` Leonard Randall
2014-04-29 12:35               ` Bastien
2014-04-29 13:59                 ` Leonard Randall
2014-04-29 14:20                   ` Bastien
2014-04-30  7:12                     ` Leonard Randall
2014-04-30  8:44                       ` Bastien
2014-04-30 17:03                         ` Leonard Randall
2014-05-04  2:37                           ` Leonard Randall
2014-05-21  1:43                             ` Bastien
2014-06-02 12:11                               ` Leonard Avery Randall

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