emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Sherman <kylewsherman@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: org-insert-heading adds extra newlines [9.0.4 (release_9.0.4-222-g63aaff.dirty @ /home/kyle/.emacs.d/modules/org-mode/lisp/)]
Date: Sat, 4 Feb 2017 19:15:28 -0600	[thread overview]
Message-ID: <1edb4abc-6286-61de-4aae-14dc062d691f@gmail.com> (raw)

Hello.

When pressing M-return, which calls `org-insert-heading', in addition to
adding the new heading under the current one (and splitting if not at 
the end
of the line) it also now adds an additional newline after the new 
heading.  It
didn't used to do this.

This is the commit where this functionality changed:

68d8f860cd0b898a02f60ec3b4781f4ddf7d2627

If this was intentional, I do wish you would change it back as it 
continuously
adds more and more newlines if I keep adding headings.

BTW, I absolutely love org-mode.  I use it for everything!

Cheers, Kyle

Emacs  : GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
  of 2016-04-17 on lgw01-04, modified by Debian
Package: Org mode version 9.0.4 (release_9.0.4-222-g63aaff.dirty @ 
/home/kyle/.emacs.d/modules/org-mode/lisp/)

current state:
==============
(setq
  org-export-backends '(ascii html icalendar latex md org)
  org-hide-leading-stars t
  org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
  org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
  org-reverse-note-order t
  org-ellipsis "…"
  org-occur-hook '(org-first-headline-recenter)
  org-src-tab-acts-natively t
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-agenda-start-on-weekday nil
  org-log-done 'time
  org-src-window-setup 'current-window
  org-confirm-shell-link-function nil
  org-time-stamp-custom-formats '("<%Y-%m-%d %a>" . "<%Y-%m-%d %a %H:%M>")
  org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) 
("\\.x?html?\\'" . default)
                  ("\\.pdf\\'" . emacs))
  org-special-ctrl-a/e t
  org-agenda-skip-scheduled-if-done t
  org-agenda-custom-commands '(("d" todo "DONE" nil) ("w" todo "WAITING" 
nil)
                               ("W" agenda "" ((org-agenda-ndays 21)))
                               ("A" agenda ""
                                ((org-agenda-skip-function
                                  (lambda nil
                                   (org-agenda-skip-entry-if (quote 
notregexp)
                                    "\\=.*\\[#A\\]")
                                   )
                                  )
                                 (org-agenda-ndays 1)
                                 (org-agenda-overriding-header "Today's 
Priority #A tasks: "))
                                )
                               ("u" alltodo ""
                                ((org-agenda-skip-function
                                  (lambda nil
                                   (org-agenda-skip-entry-if (quote 
scheduled)
                                    (quote deadline) (quote regexp) 
"<[^>\n]+>")
                                   )
                                  )
                                 (org-agenda-overriding-header 
"Unscheduled TODO entries: "))
                                )
                               )
  org-return-follows-link t
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-babel-pre-tangle-hook '(save-buffer)
  org-mode-hook '(local-org-mode-hook er/add-org-mode-expansions
                  #[0 "\300\301\302\303\304$\207"
                    [add-hook change-major-mode-hook org-show-block-all 
append local] 5
                    "\n\n(fn)"]
                  #[0 "\300\301\302\303\304$\207"
                    [add-hook change-major-mode-hook 
org-babel-show-result-all append local]
                    5 "\n\n(fn)"]
                  org-babel-result-hide-spec org-babel-hide-all-hashes)
  org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 
"\n\n(fn ENTRY)"]
  org-archive-hook '(org-attach-archive-delete-maybe)
  org-replace-disputed-keys t
  org-agenda-file-regexp "agenda.*\\.org\\'"
  org-directory "/home/kyle/org"
  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                   org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
  org-use-property-inheritance t
  org-todo-keywords '("TODO" "DONE")
  org-fast-tag-selection-single-key 'expert
  org-agenda-span 7
  org-babel-tangle-lang-exts '(("java" . "java") ("emacs-lisp" . "el") 
("elisp" . "el"))
  org-confirm-elisp-link-function nil
  org-src-ask-before-returning-to-edit-buffer nil
  org-metadown-hook '(org-babel-pop-to-session-maybe)
  org-odd-levels-only t
  org-treat-S-cursor-todo-selection-as-state-change nil
  org-agenda-skip-deadline-if-done t
  org-link-parameters '(("id" :follow org-id-open)
                        ("rmail" :follow org-rmail-open :store 
org-rmail-store-link)
                        ("mhe" :follow org-mhe-open :store 
org-mhe-store-link)
                        ("irc" :follow org-irc-visit :store 
org-irc-store-link)
                        ("info" :follow org-info-open :export 
org-info-export :store
                         org-info-store-link)
                        ("gnus" :follow org-gnus-open :store 
org-gnus-store-link)
                        ("docview" :follow org-docview-open :export 
org-docview-export :store
                         org-docview-store-link)
                        ("bibtex" :follow org-bibtex-open :store 
org-bibtex-store-link)
                        ("bbdb" :follow org-bbdb-open :export 
org-bbdb-export :complete
                         org-bbdb-complete-link :store org-bbdb-store-link)
                        ("w3m" :store org-w3m-store-link) ("file+sys") 
("file+emacs")
                        ("doi" :follow org--open-doi-link)
                        ("elisp" :follow org--open-elisp-link)
                        ("file" :complete org-file-complete-link)
                        ("ftp" :follow (lambda (path) (browse-url 
(concat "ftp:" path))))
                        ("help" :follow org--open-help-link)
                        ("http" :follow (lambda (path) (browse-url 
(concat "http:" path))))
                        ("https" :follow (lambda (path) (browse-url 
(concat "https:" path))))
                        ("mailto" :follow
                         (lambda (path) (browse-url (concat "mailto:" 
path))))
                        ("message" :follow
                         (lambda (path) (browse-url (concat "message:" 
path))))
                        ("news" :follow (lambda (path) (browse-url 
(concat "news:" path))))
                        ("shell" :follow org--open-shell-link))
  org-babel-load-languages '((clojure . t) (ditaa . t) (dot . t) 
(emacs-lisp . t)
                             (gnuplot . t) (java . t) (js . t) (lisp . 
t) (org . t)
                             (perl . t) (python . t) (ruby . t) (shell . t))
  org-log-note-headings '((done . "CLOSING NOTE %t") (state . "State 
%-12s %t")
                          (note . "Note taken on %t")
                          (reschedule . "Rescheduled from %S on %t")
                          (delschedule . "Not scheduled, was %S on %t")
                          (redeadline . "New deadline from %S on %t")
                          (deldeadline . "Removed deadline, was %S on %t")
                          (refile . "Refiled on %t") (clock-out . ""))
  org-agenda-files '("/home/kyle/org/agenda-personal-timeline.org"
                     "/home/kyle/org/agenda-personal.org" 
"/home/kyle/org/agenda-todo.org"
                     "/home/kyle/org/agenda-work.org")
  org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
  org-confirm-babel-evaluate nil
  )
-- 
Kyle Sherman <kylewsherman@gmail.com>

             reply	other threads:[~2017-02-05  1:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-05  1:15 Kyle Sherman [this message]
2017-02-17 20:52 ` Bug: org-insert-heading adds extra newlines [9.0.4 (release_9.0.4-222-g63aaff.dirty @ /home/kyle/.emacs.d/modules/org-mode/lisp/)] Nicolas Goaziou

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=1edb4abc-6286-61de-4aae-14dc062d691f@gmail.com \
    --to=kylewsherman@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).