emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Something like #+BIND but for the destination buffer


From: Jonas Bernoulli
Subject: Re: [O] Something like #+BIND but for the destination buffer
Date: Sat, 14 Jan 2017 22:48:39 +0100


On Sat, Dec 31, 2016 at 3:40 PM, Nicolas Goaziou <address@hidden> wrote:

Besides, using `org-export-filter-final-output-functions' seems easier
than your set up.

This approach works too. The following code produces exactly the same result as what I posted earlier:

(defun ox-texinfo+--untabify (string back-end _)
  (if (eq back-end 'texinfo)
      (replace-regexp-in-string
       "^\t+"
       (lambda (match)
         (make-string (* (length match) 8) ?\s))
       string)
    string))

(add-to-list 'org-export-filter-final-output-functions
             'ox-texinfo+--untabify) 

reply via email to

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