From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge Morais Neto Subject: Bug: Org loses data if the user types C-u C-c C-c while composing a state change note [9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/)] Date: Mon, 26 Jun 2017 11:58:43 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPVTV-0007zT-S8 for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 10:58:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPVTT-00053h-N4 for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 10:58:49 -0400 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:37725) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPVTT-00053C-Fo for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 10:58:47 -0400 Received: by mail-wm0-x22d.google.com with SMTP id i127so94150wma.0 for ; Mon, 26 Jun 2017 07:58:45 -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" To: org mode 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 mailing list. ------------------------------------------------------------------------ 1. emacs -q 2. M-x package-initialize 3. M-x org-version - Just to confirm we are running Org 9.0.9. 4. M-x customize-option RET org-todo-keywords RET 5. Add "(@)" to DONE and set it for current session (C-c C-c) 6. C-x C-f /tmp/bug.org 7. C-S-RET 8. C-c C-t - This should change to DONE and prompt for a note. 9. In the note, type "- " to start a plain list 10. Hit C-u C-c C-c to add an empty checkbox In step 10, the user made a mistake; he wanted to add a checkbox and, from muscle memory, typed C-u C-c C-c. However, he was composing a note, so C-c C-c has different behavior. The problem is that in this situation Org discards the note. When this happened to me, I had spent at least 15 minutes gathering data and writing it in the note buffer. This data was lost. Luckily I can gather the same data a second time, so I just lost some 15 minutes of my time (plus more than an hour to report this bug), but it could have been worse. I am not good at usability design and I do not know precisely how Org should respond to C-u C-c C-c in this situation, but clearly there are better options than losing data. A very simple alternative would be to, when C-c C-c is given any prefix argument, do nothing except warn that C-c C-c in that situation closes the note and does not accept a prefix argument. Probably this measure also applies to analogous situations in which valuable data could be lost. While we are at it, there may be other situations in which the user might discard a note by accident. Perhaps Org should prompt before discarding, or make it reversible. Regards Emacs : GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-06-07 Package: Org mode version 9.0.9 (9.0.9-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20170622/) -- - I am Brazilian. I hope my English is correct and I welcome feedback. - Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM, 7z. - Free (as in free speech) software for Android: https://f-droid.org/.