[O] [PATCH 2/2] fix SETUPFILE pathname expansion from within an INCLUDE

2015-09-24 Thread Richard Hansen
* lisp/ox.el (defun org-export-expand-include-keyword): cd instead of passing DIR to expand-file-name so that if the INCLUDE file has a SETUPFILE line with a relative pathname the full pathname to the SETUPFILE will be expanded properly. Assume the following files: /home/foo/a.org:

[O] [PATCH 1/2] test INCLUDE pathname expansion with subdirectories

2015-09-24 Thread Richard Hansen
* lisp/test-ox.el (test-org-export/expand-include): Modify the INCLUDE test to ensure that a.org including subdir/b.org including c.org causes subdir/c.org to be read, not c.org. TINYCHANGE --- testing/examples/include.org| 2 +- testing/examples/{include2.org =>

Re: [O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories

2015-09-24 Thread Richard Hansen
On 2015-09-24 04:22, Nicolas Goaziou wrote: > Applied. Thank you. Thank you! > > Would it make sense to do the same for INCLUDE? If so, would you want to > have a look at it? A chain of #+INCLUDEs already works OK. I'll send a patch that tweaks the test-org-export/expand-include test case to

Re: [O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories

2015-09-22 Thread Richard Hansen
Any other feedback on this patch? Thanks, Richard On 2015-09-20 01:28, Richard Hansen wrote: > * lisp/org-macro.el (org-macro--collect-macros): cd to the directory > containing the SETUPFILE before recursing so that relative pathnames > in the SETUPFILE are expanded properly. > >

Re: [O] [PATCH] fix SETUPFILE pathname expansion with subdirectories

2015-09-19 Thread Richard Hansen
On 2015-09-19 04:16, Nicolas Goaziou wrote: > Hello, > > Richard Hansen <rhan...@bbn.com> writes: > >> * lisp/org.el (org--setup-collect-keywords): cd to the directory >> containing the SETUPFILE before recursing so that relative pathnames >> in the SETUPFILE

[O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories

2015-09-19 Thread Richard Hansen
* lisp/org-macro.el (org-macro--collect-macros): cd to the directory containing the SETUPFILE before recursing so that relative pathnames in the SETUPFILE are expanded properly. * lisp/org.el (org--setup-collect-keywords): cd to the directory containing the SETUPFILE before recursing so that

[O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories

2015-09-19 Thread Richard Hansen
* lisp/org-macro.el (org-macro--collect-macros): cd to the directory containing the SETUPFILE before recursing so that relative pathnames in the SETUPFILE are expanded properly. * lisp/org.el (org--setup-collect-keywords): cd to the directory containing the SETUPFILE before recursing so that

Re: [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories

2015-09-19 Thread Richard Hansen
On 2015-09-19 18:43, Kyle Meyer wrote: > Richard Hansen <rhan...@bbn.com> writes: > >> (with-temp-buffer >> + (cd (file-name-directory file)) >> (org-mode) >>

[O] [PATCH] fix SETUPFILE pathname expansion with subdirectories

2015-09-18 Thread Richard Hansen
* lisp/org.el (org--setup-collect-keywords): cd to the directory containing the SETUPFILE before recursing so that relative pathnames in the SETUPFILE are expanded properly. * lisp/ox.el (org-export--get-inbuffer-options): cd to the directory containing the SETUPFILE before recursing so that

[O] [PATCH] ob-core.el: fix confirm before eval when using a function

2013-07-01 Thread Richard Hansen
* lisp/ob-core.el: (org-babel-check-confirm-evaluate): Fix handling of `org-confirm-babel-evaluate' when it is a function. When `org-confirm-babel-evaluate' is a function, this construct: (or (when (functionp org-confirm-babel-evaluate) (funcall org-confirm-babel-evaluate lang

[O] Date format when exporting to LaTeX?

2013-07-01 Thread Richard Hansen
Hi all, I recently upgraded from 7.8.03 to current master (actually release_8.0.3-299-g1d606c0) and now when I export to LaTeX, the following: #+DATE: %Y-%m-%d no longer causes the date to be the current date in ISO 8601 format. It now simply prints %Y-%m-%d. I tried: #+DATE:

Re: [O] Date format when exporting to LaTeX?

2013-07-01 Thread Richard Hansen
On 2013-07-01 17:46, Rasmus wrote: Hi Richard, I recently upgraded from 7.8.03 to current master (actually release_8.0.3-299-g1d606c0) and now when I export to LaTeX, the following: #+DATE: %Y-%m-%d no longer causes the date to be the current date in ISO 8601 format. It now simply