emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Bug: Org column view, property edit bug [7.8.11]
Date: Mon, 15 Oct 2012 23:07:00 +0300	[thread overview]
Message-ID: <874nlvijob.fsf@mithlond.arda> (raw)


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

             reply	other threads:[~2012-10-15 20:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-15 20:07 Teemu Likonen [this message]
2012-10-16 20:19 ` Bug: Org column view, property edit bug [7.8.11] Nicolas Goaziou
2012-10-17  7:02   ` Teemu Likonen

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=874nlvijob.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --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).