Fix ASCII export bug when exporting from indirect buffer.
This commit is contained in:
parent
7d30bd5c47
commit
e22ac452ad
|
@ -1,5 +1,8 @@
|
|||
2008-10-22 Carsten Dominik <dominik@science.uva.nl>
|
||||
|
||||
* org-exp.el (org-export-as-ascii): Handle the case that we are
|
||||
bulishing from an indirect buffer.
|
||||
|
||||
* org-table.el (org-table-copy-down): Fix bug with time stamp
|
||||
increment.
|
||||
|
||||
|
|
|
@ -2190,16 +2190,17 @@ underlined headlines. The default is 3."
|
|||
(umax nil)
|
||||
(umax-toc nil)
|
||||
(case-fold-search nil)
|
||||
(bfname (buffer-file-name (or (buffer-base-buffer) (current-buffer))))
|
||||
(filename (concat (file-name-as-directory
|
||||
(org-export-directory :ascii opt-plist))
|
||||
(file-name-sans-extension
|
||||
(or (and subtree-p
|
||||
(org-entry-get (region-beginning)
|
||||
"EXPORT_FILE_NAME" t))
|
||||
(file-name-nondirectory buffer-file-name)))
|
||||
(file-name-nondirectory bfname)))
|
||||
".txt"))
|
||||
(filename (if (equal (file-truename filename)
|
||||
(file-truename buffer-file-name))
|
||||
(file-truename bfname))
|
||||
(concat filename ".txt")
|
||||
filename))
|
||||
(buffer (find-file-noselect filename))
|
||||
|
@ -2213,7 +2214,7 @@ underlined headlines. The default is 3."
|
|||
(plist-get opt-plist :skip-before-1st-heading))
|
||||
(org-export-grab-title-from-buffer))
|
||||
(file-name-sans-extension
|
||||
(file-name-nondirectory buffer-file-name))))
|
||||
(file-name-nondirectory bfname))))
|
||||
(email (plist-get opt-plist :email))
|
||||
(language (plist-get opt-plist :language))
|
||||
(quote-re0 (concat "^[ \t]*" org-quote-string "\\>"))
|
||||
|
|
Loading…
Reference in New Issue