From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: how to indent plain lists in ASCII Date: Sun, 10 Feb 2013 09:49:11 +0100 Message-ID: <871ucoh7ug.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4SbK-0005Lt-DJ for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 03:49:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4SbJ-0007VL-B2 for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 03:49:30 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:41644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4SbJ-0007V8-3J for emacs-orgmode@gnu.org; Sun, 10 Feb 2013 03:49:29 -0500 Received: by mail-wi0-f171.google.com with SMTP id hn17so2205170wib.4 for ; Sun, 10 Feb 2013 00:49:27 -0800 (PST) In-Reply-To: (Samuel Wales's message of "Sat, 9 Feb 2013 22:23:12 -0700") 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: Samuel Wales Cc: emacs-orgmode@gnu.org Hello, Samuel Wales writes: > The old exporter indented plain lists. > > This does not seem to fix it: > > (add-to-list 'org-export-filter-plain-list-functions > (lambda (plain-list back-end &rest _rest) > (if (eq back-end 'ascii) > (replace-regexp-in-string "^" " " plain-list) > plain-list)))))) I don't know exactly what you mean by "indented plain lists", but your code, or the following, definitely indents items. #+begin_src emacs-lisp (add-to-list 'org-export-filter-plain-list-functions (lambda (plain-list back-end &rest _rest) (when (org-export-derived-backend-p back-end 'ascii) (replace-regexp-in-string "^" " " plain-list)))) #+end_src > I don't know what a communication channel is in a filter function, > however. The same as in transcoding functions. This is all explained in details within ox.el. Regards, -- Nicolas Goaziou