From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ANN] List improvement v.2 Date: Sun, 15 Aug 2010 15:21:02 +0200 Message-ID: <87wrrs6mgx.wl%n.goaziou@gmail.com> References: <87ocdzw7gq.wl%n.goaziou@gmail.com> <256365B6-8D44-4EC3-A4A5-935ED090DFFD@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from [140.186.70.92] (port=60065 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Okd9f-0007U9-JJ for emacs-orgmode@gnu.org; Sun, 15 Aug 2010 09:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Okd9d-0007Rx-P8 for emacs-orgmode@gnu.org; Sun, 15 Aug 2010 09:21:39 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:51864) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Okd9d-0007Ri-Hi for emacs-orgmode@gnu.org; Sun, 15 Aug 2010 09:21:37 -0400 Received: by wwi14 with SMTP id 14so3919706wwi.30 for ; Sun, 15 Aug 2010 06:21:36 -0700 (PDT) In-Reply-To: <256365B6-8D44-4EC3-A4A5-935ED090DFFD@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Org Mode List >>>>> Carsten Dominik writes: Hello, > But it will break existing documents when exported to LaTeX It will break existing documents when exporting to anything (except ASCII). You can use the following (quick and dirty) code to make the transition easier: (defun org-switch-to-new-lists () "Make current buffer compatible with new list definition." (goto-char (point-min)) (while (< (point) (point-max)) (while (and (org-in-item-p) (not (org-at-item-p)) (not (looking-at "^[ \t]*$")) (not (and (org-in-regexps-block-p "^[ \t]*#\\+begin_" "^[ \t]*#\\+end_") (not (looking-at "^[ \t]*#\\+begin_")))) (<= (org-get-indentation) (save-excursion (org-beginning-of-item) (org-get-indentation)))) (newline)) (beginning-of-line 2))) Regards, -- Nicolas