emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anupam Sengupta <anupamsg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Orgmode 8.0.2: Possible bug in `org-insert-heading` when invoked at end of a heading with a property
Date: Tue, 14 May 2013 23:42:29 -0400	[thread overview]
Message-ID: <m2d2ssgb8a.fsf@gmail.com> (raw)
In-Reply-To: <m2ppxcq4zs.fsf@gmail.com> (Anupam Sengupta's message of "Mon, 29 Apr 2013 19:41:43 -0400")

All,

Finally found the cause of the issue I had reported a few weeks back:

    Anupam> Looks like M-RET (`org-insert-heading`), and it's equivalent
    Anupam> M-S-RET (`org-insert-todo-heading`) are behaving a little
    Anupam> erratically when invoked from the _end_ of a heading that
    Anupam> has a property drawer.

[...]

    Anupam> behavior when M-RET is invoked from the _end_ of the line
    Anupam> is:
    Anupam> *** A Heading with a Drawer
    Anupam>     :PROPERTIES:
    Anupam>     :CATEGORY: TEST
    Anupam>     :END:
    Anupam>     *** <----- The second item's outline
    Anupam>     ^^^ Note that the second item's outline got indented,
    Anupam>         and has leading spaces (indented?)

Basically, the issue is that there is a bad interplay with the
`electric-indent-mode`, which is causing the additional indentation to
be added during the invocation of `org-insert-heading`.

Apologies for the noise, and hopefully this helps someone.  It might be
useful to add this minor mode in the list of conflicts in the manual
also.

Regards,
--
Anupam
    

      reply	other threads:[~2013-05-15  3:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-29 23:41 Orgmode 8.0.2: Possible bug in `org-insert-heading` when invoked at end of a heading with a property Anupam Sengupta
2013-05-15  3:42 ` Anupam Sengupta [this message]

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=m2d2ssgb8a.fsf@gmail.com \
    --to=anupamsg@gmail.com \
    --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).