emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-log-done behaves strangely when removing DONE tag from folded headline
@ 2019-08-11 16:51 Tim McCarthy
  0 siblings, 0 replies; only message in thread
From: Tim McCarthy @ 2019-08-11 16:51 UTC (permalink / raw)
  To: emacs-orgmode

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

Steps to reproduce:

This was done with a minimal-org.el file as found in the Org docs.
The only customization made was:
(setq org-log-done 'time)

1. Create an org buffer with two headlines, e.g.

* Foo
* Bar

2. Use org-shiftright to mark the first headline as DONE.

* DONE Foo
  CLOSED: [2019-08-11 Sun 09:30]
* Bar

3. Collapse the completed headline with org-cycle

* DONE Foo...
* Bar

4. Use org-shiftleft to remove the DONE tag from the first headline.

Expected result:

* TODO Foo
* Bar

Actual result:

* TODO Foo... * Bar

The second line gets absorbed into the first in a weird way.
The new line is not actually removed in the underlying buffer,
which you can see by saving and reloading the file. You can also
return things to normal by mashing org-shifttab enough, at the cost
of all of the other folding in the buffer being reset.

Emacs  : GNU Emacs 26.2 (build 1, x86_64-apple-darwin18.5.0, Carbon
Version 158 AppKit 1671.4)
 of 2019-06-08
Package: Org mode version 9.2.5 (9.2.5-dist @ /Users/ttm/tmp/org-9.2.5/lisp/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
     org-src-mode-configure-edit-buffer)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-mode-hook '((closure
  (org--rds reftex-docstruct-symbol orgtbl-line-start-regexp
   org-element-greater-elements org-table-coordinate-overlays
   org-table-auto-blank-field org-clock-history
   org-agenda-current-date org-with-time org-defdecode org-def
   org-read-date-inactive org-ans2 org-ans1
   org-columns-current-fmt-compiled org-clock-current-task
   org-clock-effort org-agenda-skip-function
   org-agenda-skip-comment-trees org-agenda-archives-mode
   org-end-time-was-given org-time-was-given
   org-log-note-extra org-log-note-purpose
   org-log-post-message org-last-inserted-timestamp
   org-last-changed-timestamp
   org-entry-property-inherited-from org-blocked-by-checkboxes
   org-state org-agenda-headline-snapshot-before-repeat
   org-capture-last-stored-marker org-agenda-start-on-weekday
   org-agenda-buffer-tmp-name
   clean-buffer-list-kill-buffer-names
   org-id-link-to-org-use-id org-agenda-buffer-name
   org-priority-regexp org-mode-abbrev-table
   org-mode-syntax-table buffer-face-mode-face org-mode-map
   org-tbl-menu org-org-menu org-struct-menu org-entities
   org-last-state org-id-track-globally org-clock-start-time
   texmathp-why remember-data-file
   org-agenda-tags-todo-honor-ignore-options
   iswitchb-temp-buflist calc-embedded-open-mode
   calc-embedded-open-formula calc-embedded-close-formula
   align-mode-rules-list org-emphasis-alist
   org-emphasis-regexp-components
   org-export-registered-backends org-modules
   org-babel-load-languages org-indent-indentation-per-level
   org-element-paragraph-separate ffap-url-regexp
   org-inlinetask-min-level t)
  nil
  (add-hook (quote change-major-mode-hook)
   (quote org-show-all) (quote append) (quote local))
  )
(closure
  (org-bracket-link-regexp org-src-window-setup *this*
   org-babel-confirm-evaluate-answer-no
   org-src-preserve-indentation org-src-lang-modes
   org-link-file-path-type org-edit-src-content-indentation
   org-babel-library-of-babel t)
  nil
  (add-hook (quote change-major-mode-hook)
   (quote org-babel-show-result-all) (quote append)
   (quote local))
  )
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function '(closure
       (org-id-locations
org-agenda-search-view-always-boolean
org-agenda-overriding-header t)
       (entry) (cdr (assq :title entry)))
 org-babel-pre-tangle-hook '(save-buffer)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
      org-babel-header-arg-expand)
 org-log-done 'time
 org-occur-hook '(org-first-headline-recenter)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate
  org-babel-speed-command-activate)
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("id" :follow org-id-open)
       ("eww" :follow eww :store org-eww-store-link)
       ("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
:export org-irc-export)
       ("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))))
       ("news" :follow
(lambda (path) (browse-url (concat "news:" path))))
       ("shell" :follow org--open-shell-link))
 )

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-11 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-11 16:51 Bug: org-log-done behaves strangely when removing DONE tag from folded headline Tim McCarthy

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