ox: Resurrect :input-buffer property

* lisp/ox.el (org-export--get-buffer-attributes):
  Resurrect :input-buffer property.

This property was removed in 604b9389. since it wasn't necessary
anymore internally.  It is back again as a consequence of a user
request.
http://permalink.gmane.org/gmane.emacs.orgmode/91230
This commit is contained in:
Nicolas Goaziou 2014-09-28 23:29:59 +02:00
parent 9386b0c584
commit 39f5f03946
1 changed files with 6 additions and 2 deletions

View File

@ -1346,6 +1346,10 @@ The back-end could then be called with, for example:
;; - category :: tree
;; - type :: list of elements and objects
;;
;; + `:input-buffer' :: Original buffer name.
;; - category :: option
;; - type :: string
;;
;; + `:input-file' :: Full path to input file, if any.
;; - category :: option
;; - type :: string or nil
@ -1816,8 +1820,8 @@ Assume buffer is in Org mode. Narrowing, if any, is ignored."
(defun org-export--get-buffer-attributes ()
"Return properties related to buffer attributes, as a plist."
;; Store full path of input file name, or nil. For internal use.
(list :input-file (buffer-file-name (buffer-base-buffer))))
(list :input-buffer (buffer-name (buffer-base-buffer))
:input-file (buffer-file-name (buffer-base-buffer))))
(defun org-export--get-global-options (&optional backend)
"Return global export options as a plist.