From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Fix org-outline-overlay-data marker insertion-type Date: Sat, 18 Jan 2014 18:43:54 +0100 Message-ID: <87ha91uqw5.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Zvp-0005hc-JH for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 12:43:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4Zvh-0000mr-0Z for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 12:43:41 -0500 Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:39583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Zvg-0000mh-Q2 for emacs-orgmode@gnu.org; Sat, 18 Jan 2014 12:43:32 -0500 Received: by mail-we0-f174.google.com with SMTP id x55so5606855wes.19 for ; Sat, 18 Jan 2014 09:43:32 -0800 (PST) In-Reply-To: (Sylvain Chouleur's message of "Sat, 18 Jan 2014 18:27:55 +0100") 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: Sylvain Chouleur Cc: emacs-orgmode@gnu.org Hello, Sylvain Chouleur writes: > A little fix on my last patch: Thanks for your patch. A small style comment. > + (let ((bound > + (cons (move-marker (make-marker) beg) > + (move-marker (make-marker) end)))) > + (set-marker-insertion-type (car bound) t) > + (set-marker-insertion-type (cdr bound) t) > + bound) All of this is really a one-liner: (cons (copy-marker beg t) (copy-marker end t)) Regards, -- Nicolas Goaziou