emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Org column view, property edit bug [7.8.11]
@ 2012-10-15 20:07 Teemu Likonen
  2012-10-16 20:19 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Teemu Likonen @ 2012-10-15 20:07 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

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

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

Org's column view has "e" key for editing fields such as property
values. Properties are messed up if user tries to clear the property's
value with "e". See the following example.

Start "emacs -Q" and load this org file:

    #+COLUMNS: %9ITEM %5foo
    * heading
    :PROPERTIES:
    :foo: value
    :END:

Turn on the column view with "C-c C-x C-c". The buffer should look like
this:

    ITEM______|_foo___|_
    #+COLUMNS: %9ITEM %5foo
    * heading | value |
    :PROPERTIES:
    :foo: value
    :END:

Now move the point to the "value" column and edit it with "e". Clear all
the text from the minibuffer prompt and press enter. The buffer looks
like this:

    ITEM______|_foo___|_
    #+COLUMNS: %9ITEM %5foo
    * heading |       |
    :PROPERTIES:
    :foo: 
    :END:

Don't move the point. Press "e" again to edit the same value again.
Insert "xxx" to the minibuffer prompt. The buffer looks like this:

    ITEM______|_foo___|_
    #+COLUMNS: %9ITEM %5foo
    * heading |       |
    :PROPERTIES:
    :foo: 
    :foo: xxx
    :END:

See, there are now two "foo" properties: one with empty value and one
with the value "xxx". The column view will always show the empty value
but the edit command "e" will edit the latter value (currently "xxx").

I think the last "e" command in my example shouldn't create new "foo"
property line; it should edit the empty "foo" instead.


Emacs  : GNU Emacs 24.2.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2012-10-14 on mithlond
Package: Org-mode version 7.8.11

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

* Re: Bug: Org column view, property edit bug [7.8.11]
  2012-10-15 20:07 Bug: Org column view, property edit bug [7.8.11] Teemu Likonen
@ 2012-10-16 20:19 ` Nicolas Goaziou
  2012-10-17  7:02   ` Teemu Likonen
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2012-10-16 20:19 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: emacs-orgmode

Hello,

Teemu Likonen <tlikonen@iki.fi> writes:

> 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
>
>      http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> Org's column view has "e" key for editing fields such as property
> values. Properties are messed up if user tries to clear the property's
> value with "e". See the following example.
>
> Start "emacs -Q" and load this org file:
>
>     #+COLUMNS: %9ITEM %5foo
>     * heading
>     :PROPERTIES:
>     :foo: value
>     :END:
>
> Turn on the column view with "C-c C-x C-c". The buffer should look like
> this:
>
>     ITEM______|_foo___|_
>     #+COLUMNS: %9ITEM %5foo
>     * heading | value |
>     :PROPERTIES:
>     :foo: value
>     :END:
>
> Now move the point to the "value" column and edit it with "e". Clear all
> the text from the minibuffer prompt and press enter. The buffer looks
> like this:
>
>     ITEM______|_foo___|_
>     #+COLUMNS: %9ITEM %5foo
>     * heading |       |
>     :PROPERTIES:
>     :foo: 
>     :END:
>
> Don't move the point. Press "e" again to edit the same value again.
> Insert "xxx" to the minibuffer prompt. The buffer looks like this:
>
>     ITEM______|_foo___|_
>     #+COLUMNS: %9ITEM %5foo
>     * heading |       |
>     :PROPERTIES:
>     :foo: 
>     :foo: xxx
>     :END:
>
> See, there are now two "foo" properties: one with empty value and one
> with the value "xxx". The column view will always show the empty value
> but the edit command "e" will edit the latter value (currently "xxx").
>
> I think the last "e" command in my example shouldn't create new "foo"
> property line; it should edit the empty "foo" instead.
>
>
> Emacs  : GNU Emacs 24.2.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
>  of 2012-10-14 on mithlond
> Package: Org-mode version 7.8.11

Thanks for the report.

For what it's worth, though, I cannot reproduce it on Org mode 7.9.2.


Regards,

-- 
Nicolas Goaziou

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

* Re: Bug: Org column view, property edit bug [7.8.11]
  2012-10-16 20:19 ` Nicolas Goaziou
@ 2012-10-17  7:02   ` Teemu Likonen
  0 siblings, 0 replies; 3+ messages in thread
From: Teemu Likonen @ 2012-10-17  7:02 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Nicolas Goaziou [2012-10-16 22:19:40 +0200] wrote:

> Teemu Likonen <tlikonen@iki.fi> writes:
>> Org's column view has "e" key for editing fields such as property
>> values. Properties are messed up if user tries to clear the
>> property's value with "e". See the following example.

>> Package: Org-mode version 7.8.11

> Thanks for the report.
>
> For what it's worth, though, I cannot reproduce it on Org mode 7.9.2.

I'm sorry for being lazy and not trying the newest version before
reporting this bug. I installed the latest version from Git repository's
"master" branch. Indeed, it seems that this bug is gone. Thanks.

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

end of thread, other threads:[~2012-10-17  7:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 20:07 Bug: Org column view, property edit bug [7.8.11] Teemu Likonen
2012-10-16 20:19 ` Nicolas Goaziou
2012-10-17  7:02   ` Teemu Likonen

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