From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Horn Subject: Re: possible org-insert-heading bug? Date: Wed, 03 Jul 2013 11:39:53 -0400 Message-ID: References: <5BC481B6-98D5-45E4-A0B8-02DA874FF01D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuP8U-00049J-Gh for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 11:38:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuP8P-0001HC-O7 for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 11:38:26 -0400 Received: from mailbackend.panix.com ([166.84.1.89]:40248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuP8P-0001Gv-JY for emacs-orgmode@gnu.org; Wed, 03 Jul 2013 11:38:21 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Iverson Cc: emacs-orgmode , Carsten Dominik Erik Iverson writes: > Robert, > > I noticed that behavior, too. But that does seem documented under M-: > > "When this command is used in the middle of a line, the line is split > and the rest of the line becomes the new item or headline". > > Footnote 10 is referenced, which says: > > "If you do not want the line to be split, customize the variable > org-M-RET-may-split-line." > That's what I wanted and expected. That's not what happened. The line was not split. The whole line became a new headline. What I wanted was the line to be split and the tail end to be the new headline. >> I've noticed a probably related bug. In a file like >> >> * before >> break between >> >> If I put the cursor between break and between, M-ret causes the result >> >> * before >> * break between >> >> rather than what I expected: >> >> * before >> break >> * between >> >> With the holiday coming I might look at it also and figure out what is >> happening. >> >> R Horn >> >> Carsten Dominik writes: >> >>> Hi, >>> >>> yes, org-insert-heading is broken - nad I am trying to find time >>> to rewrite it. My top Org priority. >>> >>> - Carsten >>> >>> On 3.7.2013, at 00:11, John Hendy wrote: >>> >>>> Hi Erik, >>>> >>>> >>>> Glad to see you around :) >>>> >>>> These all may be quite related. I haven't seen activity on those >>>> threads suggesting whether a) the documentation is, in fact, right or >>>> wrong or b) whether anyone has taken action to fix or adjust the >>>> behavior of M-RET or C-RET based on the complaints/counter-intuitive >>>> observations. >>>> >>>> Let me know if those are similar to your issue. Perhaps Bastien can >>>> comment on the state of these thread, now at least four in number... >>>> >>>> - http://www.mail-archive.com/emacs-orgmode@gnu.org/msg70718.html >>>> - http://osdir.com/ml/emacs-orgmode-gnu/2013-05/msg00846.html >>>> - http://permalink.gmane.org/gmane.emacs.orgmode/72399 >>>> >>>> I've taken to using C-RET in the meantime, as it seems to do what I >>>> often expect when reflexively pressing M-RET. Also, someone once >>>> corrected me on the documentation that "at the end of the line" might >>>> mean before the ellipsis, not after? >>>> >>>> >>>> Hope that helps! >>>> John >>>> >>>> >>>> On Tue, Jul 2, 2013 at 1:53 PM, Erik Iverson wrote: >>>>> Hello, >>>>> >>>>> I am using a current git pull (Org-mode version 8.0.3, >>>>> release_8.0.3-345-g239aa7) and noticed behavior that's easiest to show >>>>> with a small example. If you save and visit the following org file, >>>>> >>>>> https://dl.dropboxusercontent.com/u/7514404/test.org >>>>> >>>>> you will see the behavior described and documented (assuming it's >>>>> reproducible under your version of emacs and orgmode). >>>>> >>>>> Briefly M- at the end of a *folded* headline that contains plain >>>>> list items will insert a new plain list item at the end of the >>>>> subtree, instead of a new top-level headline. I believe this conflicts >>>>> with the documentation for M-, which currently reads: >>>>> >>>>> ... 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 like >>>>> the current one will be inserted after the end of the subtree... >>>>> >>>>> Best, >>>>> --Erik >>>>> >>>> >>