From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: a lisp question Date: Wed, 25 Sep 2013 14:31:31 +0200 Message-ID: <87bo3hm6ak.fsf@bzg.ath.cx> References: <52418477.44ba440a.7780.1f11@mx.google.com> <87vc1phcf5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOoFp-00088z-IK for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 08:31:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOoFk-0000Lm-Bj for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 08:31:41 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:33729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOoFk-0000LM-4A for emacs-orgmode@gnu.org; Wed, 25 Sep 2013 08:31:36 -0400 Received: by mail-wi0-f171.google.com with SMTP id hm2so5328214wib.16 for ; Wed, 25 Sep 2013 05:31:34 -0700 (PDT) In-Reply-To: <87vc1phcf5.fsf@gmail.com> (Nick Dokos's message of "Tue, 24 Sep 2013 22:18:06 -0400") 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: Nick Dokos Cc: emacs-orgmode@gnu.org Nick Dokos writes: > "tumashu@gmail.com" writes: > >> How can i convert (1 2 3 5 7 8 9 10 11 12 13) to >> ((1 2 3 ) (5) (7) (8 9) (10 11 12 13))? >> > > Two problems: > > Wrong list: try comp.lang.lisp instead. > Incomplete problem description: see "How to ask questions > the smart way" at http://www.catb.org/esr/faqs/smart-questions.html. Well, not really *the* good answer, but Org has a function to easily get a sublist from a list: (org-sublist '(1 2 3 4 5 6) 2 4) => (2 3 4) So this might be handy in this case. -- Bastien