Re: [O] how to indent plain lists in ASCII

2013-02-12 Thread Samuel Wales
I think I got this to work now.  Thanks.  I had had code to work
around something else.



Re: [O] how to indent plain lists in ASCII

2013-02-10 Thread Nicolas Goaziou
Hello,

Samuel Wales samolog...@gmail.com 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



[O] how to indent plain lists in ASCII

2013-02-09 Thread Samuel Wales
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 what a communication channel is in a filter function, however.

Thanks.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is no hope without action.