From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Org column view, property edit bug [7.8.11] Date: Tue, 16 Oct 2012 22:19:40 +0200 Message-ID: <87hapudvab.fsf@gmail.com> References: <874nlvijob.fsf@mithlond.arda> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TODg3-0006lB-87 for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 16:23:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TODg1-0007J8-T1 for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 16:23:47 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:39589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TODg1-0007IM-IS for emacs-orgmode@gnu.org; Tue, 16 Oct 2012 16:23:45 -0400 Received: by mail-wi0-f171.google.com with SMTP id hj13so284179wib.12 for ; Tue, 16 Oct 2012 13:23:44 -0700 (PDT) In-Reply-To: <874nlvijob.fsf@mithlond.arda> (Teemu Likonen's message of "Mon, 15 Oct 2012 23:07:00 +0300") 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: Teemu Likonen Cc: emacs-orgmode@gnu.org Hello, Teemu Likonen 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