[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [ANN] List improvement v.2

From: Nicolas Goaziou
Subject: Re: [Orgmode] [ANN] List improvement v.2
Date: Sun, 15 Aug 2010 15:21:02 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO)

>>>>> Carsten Dominik writes:

> 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)
    (beginning-of-line 2)))


-- Nicolas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]