From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: bug#12905: 24.2.50; org: edit source block causes data loss Date: Fri, 14 Dec 2012 10:39:13 +0100 Message-ID: <87a9th55xa.fsf@bzg.ath.cx> References: <50A62865.8010904@gmail.com> <87sj7han8a.fsf__16482.9143243425$1354894646$gmane$org@gnu.org> <87wqwnyzud.fsf__32428.3239235685$1355331429$gmane$org@bzg.ath.cx> <87bodzt201.fsf@norang.ca> <877gom7tc3.fsf@bzg.ath.cx> <876246skbt.fsf@norang.ca> <87lid262rf.fsf@norang.ca> <8738za44ss.fsf@bzg.ath.cx> <878v925aru.fsf@norang.ca> <87wqwm0yoi.fsf@bzg.ath.cx> <87mwxhyl5l.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjRjg-0004nl-Di for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 04:39:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TjRjf-0003ZO-7H for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 04:39:16 -0500 Received: from mail-wg0-f51.google.com ([74.125.82.51]:42989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TjRje-0003ZE-SK for emacs-orgmode@gnu.org; Fri, 14 Dec 2012 04:39:15 -0500 Received: by mail-wg0-f51.google.com with SMTP id gg4so1283068wgb.30 for ; Fri, 14 Dec 2012 01:39:14 -0800 (PST) In-Reply-To: (Le Wang's message of "Fri, 14 Dec 2012 07:40:15 +0800") 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: Le Wang Cc: Bernt Hansen , emacs-orgmode@gnu.org Le Wang writes: > ;; Move marker with inserted text for case when src block is > ;; just one empty line, i.e. beg == end. > - (end (copy-marker (make-marker) t)) > + (end (let ((marker (make-marker))) > + (set-marker-insertion-type marker t) > + marker)) There is a (make-marker) in both case, the first one is okay. Best, -- Bastien