forked from mirrors/org-mode
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:
parent
9386b0c584
commit
39f5f03946
|
@ -1346,6 +1346,10 @@ The back-end could then be called with, for example:
|
||||||
;; - category :: tree
|
;; - category :: tree
|
||||||
;; - type :: list of elements and objects
|
;; - type :: list of elements and objects
|
||||||
;;
|
;;
|
||||||
|
;; + `:input-buffer' :: Original buffer name.
|
||||||
|
;; - category :: option
|
||||||
|
;; - type :: string
|
||||||
|
;;
|
||||||
;; + `:input-file' :: Full path to input file, if any.
|
;; + `:input-file' :: Full path to input file, if any.
|
||||||
;; - category :: option
|
;; - category :: option
|
||||||
;; - type :: string or nil
|
;; - 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 ()
|
(defun org-export--get-buffer-attributes ()
|
||||||
"Return properties related to buffer attributes, as a plist."
|
"Return properties related to buffer attributes, as a plist."
|
||||||
;; Store full path of input file name, or nil. For internal use.
|
(list :input-buffer (buffer-name (buffer-base-buffer))
|
||||||
(list :input-file (buffer-file-name (buffer-base-buffer))))
|
:input-file (buffer-file-name (buffer-base-buffer))))
|
||||||
|
|
||||||
(defun org-export--get-global-options (&optional backend)
|
(defun org-export--get-global-options (&optional backend)
|
||||||
"Return global export options as a plist.
|
"Return global export options as a plist.
|
||||||
|
|
Loading…
Reference in a new issue