From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#12905: 24.2.50; org: edit source block causes data loss Date: Fri, 16 Nov 2012 11:49:57 +0000 Message-ID: <50A62865.8010904@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353066687 23239 80.91.229.3 (16 Nov 2012 11:51:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2012 11:51:27 +0000 (UTC) To: 12905@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 16 12:51:38 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TZKSN-0002Td-7Q for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Nov 2012 12:51:35 +0100 Original-Received: from localhost ([::1]:44692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZKSD-0005th-7h for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Nov 2012 06:51:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZKS8-0005rE-6m for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 06:51:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZKS4-0002vq-N8 for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 06:51:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZKS4-0002vm-Jk for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 06:51:16 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TZKSo-00066m-Kt for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 06:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Moreton Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Nov 2012 11:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135306666723377 (code B ref -1); Fri, 16 Nov 2012 11:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Nov 2012 11:51:07 +0000 Original-Received: from localhost ([127.0.0.1]:47304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZKRu-00064z-C1 for submit@debbugs.gnu.org; Fri, 16 Nov 2012 06:51:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33394) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZKRs-00064s-C6 for submit@debbugs.gnu.org; Fri, 16 Nov 2012 06:51:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZKR4-0002h0-LN for submit@debbugs.gnu.org; Fri, 16 Nov 2012 06:50:17 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:53920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZKR4-0002gw-IB for submit@debbugs.gnu.org; Fri, 16 Nov 2012 06:50:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZKR1-0005Yn-EW for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 06:50:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZKQy-0002dK-9P for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 06:50:11 -0500 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:50509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZKQy-0002Rm-2s for bug-gnu-emacs@gnu.org; Fri, 16 Nov 2012 06:50:08 -0500 Original-Received: by mail-wi0-f177.google.com with SMTP id c10so1303162wiw.12 for ; Fri, 16 Nov 2012 03:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=FTy+ms4IhYkWMGL4atd/UWLBX/re0PkVCJnJce0al5U=; b=QETXh/1kCHuMcLEOn1mlsc/X/enmttJfkmb+80s6xm1cXZ7tiKlQ0bWmPJQG9GPMOl 85LgrmDL256t0TKm9b+w/j55OnNBPje43imGOwC5tnTmMOZwsm5CtT/2oL6ZwsPST/wq a4oklsZ23qWSjuio1kWk8hUymsiC03tvXvlo9Vy8NImSxUa9ppFrSA3ZLBTNIzfmu/x9 XuE5O42yH1q7d0y9HPsRTg+FkGRRHTz9tDsxrujBszOxbONYs285GGTTTW4iCg06l1/8 eA+Ib0lvO7fLGPF3Tgqpj0t3sVdFbah6vUUroUVEkb8g2BdzOKIuyhm6h7y2EFwTVO6Y mPUg== Original-Received: by 10.180.102.166 with SMTP id fp6mr4740749wib.9.1353066601130; Fri, 16 Nov 2012 03:50:01 -0800 (PST) Original-Received: from [10.17.20.82] (uk.solarflare.com. [193.34.186.16]) by mx.google.com with ESMTPS id b1sm447319wix.11.2012.11.16.03.49.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 16 Nov 2012 03:49:59 -0800 (PST) User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -3.4 (---) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66988 Archived-At: This is a serious bug causing loss of data. Recent messages on the org-mode mailing list suggest that this issue may have been fixed upstream. If so, such changes have not yet been merged back into emacs-24. Starting from emacs -Q: 1) open an org-mode buffer "foo.org" and add: #+begin_src c #+end_src 2) With point on at the start of the '#+begin_src' line, type C-' (org-edit-special) to edit the content of the source block. this will open a window for another buffer "*Org Src foo.org[ c ]*". 3) Add some text to the "*Org Src foo.org[ c ]*" buffer and type C-' (org-edit-src-exit) to commit the changes back to the org file. The entire contents of the data block are lost. 4) Edit an existing non-empty source block in the same way, and all of the pre-existing content is lost.