From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel E. Doherty Subject: Inserted Heading Starts on Prior Heading's Fold Mark Date: Mon, 06 Apr 2015 12:05:23 -0500 Message-ID: <87bnj1uqzw.wl-ded-law@ddoherty.net> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfAT3-0002sa-D8 for emacs-orgmode@gnu.org; Mon, 06 Apr 2015 13:05:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfASz-0000n8-4N for emacs-orgmode@gnu.org; Mon, 06 Apr 2015 13:05:45 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:35782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfASy-0000n4-Rj for emacs-orgmode@gnu.org; Mon, 06 Apr 2015 13:05:41 -0400 Received: by obbfy7 with SMTP id fy7so49856408obb.2 for ; Mon, 06 Apr 2015 10:05:40 -0700 (PDT) Received: from micah.ddoherty.net (104-182-116-177.lightspeed.mssnks.sbcglobal.net. [104.182.116.177]) by mx.google.com with ESMTPSA id sb6sm4055333obb.24.2015.04.06.10.05.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 06 Apr 2015 10:05:39 -0700 (PDT) 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: emacs-orgmode@gnu.org I don't know when this started, but recently I've seen the following annoying behavior from M-RET in org files. Here is a minimal file to demonstrate what I'm seeing lately: ============================== demo.org ============================== * First Header Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. * Second Header ======================================================================= When the headings are completely folded, I see the following, as expected: ============================== demo.org ============================== * First Header... ^* Second Header ======================================================================= With my cursor on the ^, I hit M-RET to insert a new heading between "First Header" and "Second Header", and I get the following: ======================================================================= When the headings are completely folded, I see the following, as expected: ============================== demo.org ============================== * First Header...* ^ * Second Header ======================================================================= In other words, the new heading is being placed after the elipses for the folded content of the first heading. Naturally, I expect the following: ============================== demo.org ============================== * First Header... * ^ * Second Header ======================================================================= I'm trying to determine if this is an odd intereaction from some of my settings, or if it is a bug in the org code. It does the same whether I have org-indent-mode toggled on or off. Does anyone else see this behavior? My emacs-version is: GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2014-10-28 on micah Here are the main org settings from my init file: ,----[ init.el ] | #+BEGIN_SRC emacs-lisp :tangle yes | (setq org-directory (expand-file-name "~/Dropbox/Projects/")) | (setq org-agenda-files (concat org-directory "agenda-files")) | (setq | org-attach-directory user-data-dir | org-agenda-include-diary t | org-agenda-span 3 | org-todo-keywords '((sequence "TODO(t)" "WAIT(w)" "|" "DONE(d)" "CNCL(x)")) | org-todo-interpretation 'sequence | org-return-follows-link t | org-cycle-separator-lines 2 | org-completion-use-ido t | org-refile-use-outline-path 'file | org-outline-path-complete-in-steps nil | org-refile-allow-creating-parent-nodes t) | #+END_SRC `---- And here is what I have set in my custom.el files: ,----[ custom.el ] | #+BEGIN_SRC emacs-lisp | '(org-agenda-span (quote day)) | '(org-blank-before-new-entry (quote ((heading) (plain-list-item . auto)))) | '(org-confirm-babel-evaluate nil) | '(org-entities-ascii-explanatory t) | '(org-export-babel-evaluate nil) | '(org-file-apps | (quote | ((auto-mode . emacs) | ("\\.mm\\'" . default) | ("\\.x?html?\\'" . default) | ("\\.pdf\\'" . default) | ("ods" . "oocalc")))) | '(org-footnote-fill-after-inline-note-extraction t) | '(org-format-latex-options | (quote | (:foreground "OliveDrab" :background default :scale 1.2 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers | ("begin" "$1" "$" "$$" "\\(" "\\[")))) | '(org-highlight-latex-and-related (quote (latex))) | '(org-icalendar-include-todo t) | '(org-icalendar-use-plain-timestamp t) | '(org-latex-pdf-process | (quote | ("/usr/bin/pdflatex -interaction nonstopmode -output-directory %o %f" "/usr/bin/pdflatex -interaction nonstopmode -output-directory %o %f" "/usr/bin/pdflatex -interaction nonstopmode -output-directory %o %f"))) | '(org-list-demote-modify-bullet (quote (("+" . "-") ("-" . "*") ("*" . "+")))) | '(org-list-indent-offset 2) | '(org-log-refile (quote time)) | '(org-modules | (quote | (org-bbdb org-bibtex org-docview org-gnus org-info org-irc org-protocol org-vm org-wl org-w3m))) | '(org-outline-path-complete-in-steps nil) | '(org-pretty-entities-include-sub-superscripts nil) | '(org-refile-targets (quote ((org-agenda-files :maxlevel . 1)))) | '(org-refile-use-outline-path (quote file)) | '(org-special-ctrl-a/e t) | '(org-special-ctrl-k t) | '(org-src-fontify-natively t) | '(org-src-tab-acts-natively t) | '(org-startup-align-all-tables t) | '(org-startup-folded t) | '(org-table-number-regexp | "^\\([<>]?\\(\\$ *\\)?[-+^.,0-9]*[0-9][-+^.0-9eEdDx()%:]*\\|\\(0[xX]\\)[0-9a-fA-F]+\\|nan\\)$") | '(org-time-stamp-custom-formats (quote ("<%b %d, %Y (%a)>" . "<%b %d, %Y (%a) @ %H:%M>"))) | #+END_SRC `---- I've tried tweaking a number of these settings with no luck. Any ideas about what is going wrong here? Dan Doherty