From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Subject: Bug: Column mode display broken after adding PROPERTIES drawer [8.3.1 (release_8.3.1-176-g45abec @ /tmp/minimal-org/org-mode/lisp/)] Date: Tue, 25 Aug 2015 18:50:05 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114f18ba03faf6051e2b6750 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUNzO-0005j6-0o for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 19:50:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUNzJ-0002wa-MH for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 19:50:49 -0400 Received: from mail-yk0-f169.google.com ([209.85.160.169]:35698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUNzJ-0002wU-7U for emacs-orgmode@gnu.org; Tue, 25 Aug 2015 19:50:45 -0400 Received: by ykbi184 with SMTP id i184so170523084ykb.2 for ; Tue, 25 Aug 2015 16:50:44 -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 --001a114f18ba03faf6051e2b6750 Content-Type: text/plain; charset=UTF-8 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) ) --001a114f18ba03faf6051e2b6750 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I believe I have found a bug with column mode in org-= mode from Git
(45abec0): if editing a column's value adds a P= ROPERTIES drawer then
the column mode display becomes corrupted.<= /div>

Steps to reproduce:

1. Cr= eate 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)

<= /div>
Expected visible buffer contents:

------= 8<------
Task =C2=A0 =C2=A0 =C2=A0 | Estimate |
#+CO= LUMNS: %10ITEM(Task) %8Effort(Estimate){:}
* Parent =C2=A0 | 0:00= =C2=A0 =C2=A0 |
** Test 1 =C2=A0| 0:00 =C2=A0 =C2=A0 |...
<= div>** Test 2 =C2=A0| =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
------8= <------

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

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

Not= e that the "Test 2" headline has been moved to the end of the &qu= ot;Test
1" headline.=C2=A0 Pressing down arrow from Test 1&#= 39;s "Estimate" column moves
to Test 2's "Esti= mate" 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<= /div>
-nw -Q -L org-mode/lisp".

---------= ---------------------------------------------------------------
<= br>


Emacs =C2=A0: GNU Emacs 24.5.1 = (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
=C2=A0of 201= 5-08-25 on dale
Package: Org-mode version 8.3.1 (release_8.3.1-17= 6-g45abec @ /tmp/minimal-org/org-mode/lisp/)

curre= nt state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(s= etq
=C2=A0org-tab-first-hook '(org-hide-block-toggle-maybe or= g-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
=C2= =A0org-speed-command-hook '(org-speed-command-default-hook org-babel-sp= eed-command-hook)
=C2=A0org-occur-hook '(org-first-headline-r= ecenter)
=C2=A0org-metaup-hook '(org-babel-load-in-session-ma= ybe)
=C2=A0org-confirm-shell-link-function 'yes-or-no-p
=
=C2=A0org-after-todo-state-change-hook '(org-clock-out-if-current)=
=C2=A0org-src-mode-hook '(org-src-babel-configure-edit-buffe= r org-src-mode-configure-edit-buffer)
=C2=A0org-agenda-before-wri= te-hook '(org-agenda-add-entry-text)
=C2=A0org-babel-pre-tang= le-hook '(save-buffer)
=C2=A0org-mode-hook '((lambda nil = (org-add-hook (quote change-major-mode-hook) (quote org-show-block-all) (qu= ote append) (quote local)))
(lambda nil (org-add-hook (quote change-major-mode-hook) (q= uote org-babel-show-result-all) (quote append) (quote local)))
org-babel-result-hide-sp= ec org-babel-hide-all-hashes)
=C2=A0org-archive-hook '(org-at= tach-archive-delete-maybe)
=C2=A0org-ctrl-c-ctrl-c-hook '(org= -babel-hash-at-point org-babel-execute-safely-maybe)
=C2=A0org-cy= cle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-= cycle-show-empty-lines
=C2=A0org-optimize-window-after-visibility-change)
=C2= =A0org-confirm-elisp-link-function 'yes-or-no-p
=C2=A0org-met= adown-hook '(org-babel-pop-to-session-maybe)
=C2=A0org-clock-= out-hook '(org-clock-remove-empty-clock-drawer)
=C2=A0)
=

--001a114f18ba03faf6051e2b6750--