emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Column mode display broken after adding PROPERTIES drawer [8.3.1 (release_8.3.1-176-g45abec @ /tmp/minimal-org/org-mode/lisp/)]
@ 2015-08-25 23:50 Dale
  2015-08-26 20:23 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Dale @ 2015-08-25 23:50 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3079 bytes --]

I believe I have found a bug with column mode in org-mode from Git
(45abec0): if editing a column's value adds a PROPERTIES drawer then
the column mode display becomes corrupted.

Steps to reproduce:

1. Create an org-mode buffer with the following contents:

------8<------
#+COLUMNS: %62ITEM(Task) %8Effort(Estimate){:}
* Parent
** Test 1
** Test 2
------8<------

2. Move cursor to "Parent" headline

3. Enter column mode with C-c C-x C-c

4. Move cursor into "Estimate" column of "Test 1" task

5. Press "e" to edit the column's value and enter any value (e.g. 0:00)

Expected visible buffer contents:

------8<------
Task       | Estimate |
#+COLUMNS: %10ITEM(Task) %8Effort(Estimate){:}
* Parent   | 0:00     |
** Test 1  | 0:00     |...
** Test 2  |          |
------8<------

What I observed instead of that, the "Test 2" heading being moved onto
the same line as "Test 1":

------8<------
Task       | Estimate |
#+COLUMNS: %10ITEM(Task) %8Effort(Estimate){:}
* Parent   | 0:00     |
** Test 1  | 0:00     |...** Test 2  |          |
------8<------

Note that the "Test 2" headline has been moved to the end of the "Test
1" headline.  Pressing down arrow from Test 1's "Estimate" column moves
to Test 2's "Estimate" column just as it appears, way off to the right
of the "Test 1" heading rather than below it.

Tested with Emacs 24.5.1 built from MacPorts on OS X 10.9 with "emacs
-nw -Q -L org-mode/lisp".

------------------------------------------------------------------------



Emacs  : GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS
apple-appkit-1265.21)
 of 2015-08-25 on dale
Package: Org-mode version 8.3.1 (release_8.3.1-176-g45abec @
/tmp/minimal-org/org-mode/lisp/)

current state:
==============
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-shell-link-function 'yes-or-no-p
 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 '((lambda nil (org-add-hook (quote change-major-mode-hook)
(quote org-show-block-all) (quote append) (quote local)))
(lambda nil (org-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-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-show-empty-lines
 org-optimize-window-after-visibility-change)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )

[-- Attachment #2: Type: text/html, Size: 4425 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug: Column mode display broken after adding PROPERTIES drawer [8.3.1 (release_8.3.1-176-g45abec @ /tmp/minimal-org/org-mode/lisp/)]
  2015-08-25 23:50 Bug: Column mode display broken after adding PROPERTIES drawer [8.3.1 (release_8.3.1-176-g45abec @ /tmp/minimal-org/org-mode/lisp/)] Dale
@ 2015-08-26 20:23 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-08-26 20:23 UTC (permalink / raw)
  To: Dale; +Cc: emacs-orgmode

Hello,

Dale <dale@codefu.org> writes:

> I believe I have found a bug with column mode in org-mode from Git
> (45abec0): if editing a column's value adds a PROPERTIES drawer then
> the column mode display becomes corrupted.
>
> Steps to reproduce:
>
> 1. Create an org-mode buffer with the following contents:
>
> ------8<------
> #+COLUMNS: %62ITEM(Task) %8Effort(Estimate){:}
> * Parent
> ** Test 1
> ** Test 2
> ------8<------
>
> 2. Move cursor to "Parent" headline
>
> 3. Enter column mode with C-c C-x C-c
>
> 4. Move cursor into "Estimate" column of "Test 1" task
>
> 5. Press "e" to edit the column's value and enter any value (e.g. 0:00)
>
> Expected visible buffer contents:
>
> ------8<------
> Task       | Estimate |
> #+COLUMNS: %10ITEM(Task) %8Effort(Estimate){:}
> * Parent   | 0:00     |
> ** Test 1  | 0:00     |...
> ** Test 2  |          |
> ------8<------
>
> What I observed instead of that, the "Test 2" heading being moved onto
> the same line as "Test 1":
>
> ------8<------
> Task       | Estimate |
> #+COLUMNS: %10ITEM(Task) %8Effort(Estimate){:}
> * Parent   | 0:00     |
> ** Test 1  | 0:00     |...** Test 2  |          |
> ------8<------

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-26 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 23:50 Bug: Column mode display broken after adding PROPERTIES drawer [8.3.1 (release_8.3.1-176-g45abec @ /tmp/minimal-org/org-mode/lisp/)] Dale
2015-08-26 20:23 ` Nicolas Goaziou

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