Nicolas Goaziou
2afd5fbb09
Fix `org-hide-block-toggle-maybe'
...
* lisp/org.el (org-hide-block-toggle-maybe): Never throw an error.
Improve docstring.
(org-hide-block-toggle): Improve docstring.
2014-09-15 20:21:20 +02:00
Nicolas Goaziou
9ba9f916e8
Fix `org-up-heading-safe'
...
* lisp/org.el (org-up-heading-safe): Do not throw any error, as
advertised in the docstring.
2014-09-15 18:49:19 +02:00
Nicolas Goaziou
a927894d12
ob-gnuplot: Fix error when table contains dates
...
* lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Dynamically
bind `org-babel-gnuplot-timestamp-fmt' instead of making it
buffer-local, since export takes place in another buffer anyway.
Thanks to Thomas Holst for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90709
2014-09-15 13:47:20 +02:00
Nicolas Goaziou
3aa27acfcb
Fix "Not at a block" error on dynamic blocks
...
* lisp/org.el (org-hide-block-toggle, org-indent-block): Recognize
dynamic blocks.
Thanks to Eric S Fraga for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90711
2014-09-15 13:32:50 +02:00
Bastien Guerry
e17ee8e577
Merge branch 'master' of orgmode.org:org-mode
2014-09-14 11:02:51 +02:00
Michael Brand
739136e17f
Table formula: Fix for Lisp return value nil
...
* lisp/org-table.el (org-table-eval-formula): Substitute `listp' with
`consp'.
* testing/lisp/test-org-table.el (test-org-table/lisp-return-value):
Fix test.
2014-09-14 10:44:28 +02:00
Michael Brand
551891e2ad
Table formula: Add ERT for Lisp return values
...
* testing/lisp/test-org-table.el (test-org-table/lisp-return-value):
Add test with TODO.
2014-09-14 10:43:37 +02:00
Nicolas Goaziou
3f88821f01
org-element: Fix outdated comment
2014-09-13 22:34:15 +02:00
Nicolas Goaziou
97ae50fab3
org-element: Fix planning parsing
...
* lisp/org-element.el (org-element-planning-parser): Remove useless
check.
(org-element--next-mode): Change signature.
(org-element--parse-elements, org-element--parse-to): Apply signature
change.
* testing/lisp/test-org-element.el (test-org-element/planning-parser):
Add test.
2014-09-13 22:31:06 +02:00
Bastien Guerry
e6074ec4d7
Merge branch 'master' of orgmode.org:org-mode
2014-09-13 15:52:17 +02:00
Nicolas Goaziou
9209aa3c9d
org-table: Use "ox.el" internally for radio tables
...
* lisp/org-table.el (org-table-clean-before-export, orgtbl-get-fmt,
orgtbl-apply-fmt, orgtbl-eval-str, orgtbl-format-line,
orgtbl-format-section): Remove functions.
(org-table-clean-did-remove-column, *orgtbl-table*, *orgtbl-rtn*,
*orgtbl-hline*, *orgtbl-sep*, *orgtbl-default-fmt*, *orgtbl-fmt*,
*orgtbl-efmt*, *orgtbl-lfmt*, *orgtbl-llfmt*, *orgtbl-lstart*,
*orgtbl-llstart*, *orgtbl-lend*, *orgtbl-llend*): Remove variables.
(org-table-export, orgtbl-send-table): Apply function removal. Do not
set `org-table-last-alignment' and `org-table-last-column-widths'
anymore.
(org-table-to-lisp, orgtbl-send-replace-tbl): Small refactoring.
(org-table--to-generic-table, org-table--to-generic-row,
org-table--to-generic-cell): New functions.
(orgtbl-to-generic): Rewrite function. Handle :skip and :skipcols
parameters.
(orgtbl-to-latex, orgtbl-to-html, orgtbl-to-texinfo, orgtbl-to-orgtbl,
orgtbl-to-unicode): Use new `orgtbl-to-generic' features.
* testing/lisp/test-org-table.el (test-org-table/to-generic,
test-org-table/to-latex, test-org-table/to-texinfo,
test-org-table/to-html, test-org-table/to-unicode,
test-org-table/send-region): New tests.
* doc/org.texi (Radio tables, A @LaTeX{} example, Translator
functions): Update documentation.
* etc/ORG-NEWS (argument): Document new features.
2014-09-13 15:10:26 +02:00
Nicolas Goaziou
66b1263d9a
ox-latex: Tweak table row export
...
* lisp/ox-latex.el (org-latex-table-row): Rewrite code to distinguish
between regular rows and separators.
2014-09-13 00:13:46 +02:00
Bastien Guerry
2bd8370d06
Merge branch 'master' of orgmode.org:org-mode
2014-09-12 21:40:17 +02:00
Nicolas Goaziou
70a0c5bfa1
Fix "Not at a block" error on export blocks
...
* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on
export blocks.
2014-09-12 20:58:47 +02:00
Bastien Guerry
fdd9d878e0
Merge branch 'master' of orgmode.org:org-mode
2014-09-12 19:02:50 +02:00
Nicolas Goaziou
4cb0bc089f
Fix "Not at a block" error on special blocks
...
* lisp/org.el (org-hide-block-toggle): Fix "Not at a block" error on
special blocks.
Thanks to Fabrice Popineau for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90663
2014-09-12 18:40:49 +02:00
Bastien Guerry
8b416bf96b
Merge branch 'master' of orgmode.org:org-mode
2014-09-12 14:14:03 +02:00
Nicolas Goaziou
6eb9827d53
org-element: Fix cache error on empty drawers
...
* lisp/org-element.el (org-element--cache-for-removal): Handle case
when greater element is totally empty.
Thanks to Malcolm Purvis for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90639
2014-09-11 23:19:22 +02:00
Nicolas Goaziou
3d45b4285b
Merge branch 'maint'
2014-09-11 18:27:22 +02:00
Nicolas Goaziou
01f736b763
org-src: Fix idle auto-save feature
...
* lisp/org-src.el (org-edit-src-code): Fix regexp.
(org-edit-src-exit): Do not remove auto-save timer. This is
handled by the timer itself.
`org-edit-src-save' calls `org-edit-src-exit', which then clears the
auto-save timer, thus preventing any further auto-saves before the
next `org-edit-src-code' call.
Thanks to Adriaan Sticker for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90650
2014-09-11 18:21:41 +02:00
Bastien Guerry
a11e884723
Merge branch 'master' of orgmode.org:org-mode
2014-09-10 11:45:20 +02:00
Achim Gratz
ec8f245d27
ob-eval: Do not use read-only mode, switch to compilation mode only once
...
* lisp/ob-eval.el (org-babel-eval): Switch to compilation mode only if
the current mode is not already (a derived mode of)
compilation-mode. Remove the read-only state from the buffer
directly without using `read-only-mode'.
2014-09-10 11:22:43 +02:00
Achim Gratz
2f8067c915
Merge branch 'maint'
2014-09-10 10:51:02 +02:00
Achim Gratz
d4a7ba2a96
mk/org-fixup.el: Do not use toggle-read-only
...
* mk/org-fixup.el (org-make-org-version, org-make-org-loaddefs,
org-make-local-mk, org-make-letterformat): Do not use
`toggle-read-only' as it has been obsoleted in 24.4 and the
replacement read-only-mode should not be used from Lisp in most
cases. Bind `inhibit-read-only' to t instead.
2014-09-10 10:50:05 +02:00
Bastien Guerry
7520cf33d9
Merge branch 'master' of orgmode.org:org-mode
2014-09-08 15:00:00 +02:00
Nicolas Goaziou
b5c9de618e
Merge branch 'maint'
2014-09-08 12:10:28 +02:00
Nicolas Goaziou
7c48bdd7a8
Revert "ox: Implement predicate for export blocks"
...
This reverts commit 2160b3d242
.
2014-09-08 12:09:52 +02:00
Nicolas Goaziou
d4281e5f3f
Revert "ORG-NEWS: Document `export-block' type removal"
...
This reverts commit 98b719fb59
.
Conflicts:
etc/ORG-NEWS
2014-09-08 12:01:35 +02:00
Nicolas Goaziou
e3369c07f0
Revert "Merge export and special blocks within back-ends"
...
This reverts commit fbc7097ffa
.
Conflicts:
lisp/ox-texinfo.el
2014-09-08 11:57:27 +02:00
Bastien Guerry
59d2f28024
Merge branch 'master' of orgmode.org:org-mode
2014-09-07 00:44:33 +02:00
Nicolas Goaziou
1a7c9d7d79
ox-html: Fix 9a34a1
...
* lisp/ox-html.el (org-html-paragraph): Only apply special rule in
list items.
Thanks to Richard Lawrence for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90532
2014-09-06 19:03:18 +02:00
Bastien Guerry
41eae9bd42
Merge branch 'master' of orgmode.org:org-mode
2014-09-06 10:47:11 +02:00
Nicolas Goaziou
c235bd83d2
ox: Implement body filter
...
* lisp/ox.el (org-export-filters-alist): Add body filter.
(org-export-filter-body-functions): New variable.
(org-export-as): Call body filter.
* doc/org.texi (Advanced configuration):
* etc/ORG-NEWS (argument): Document new filter.
2014-09-06 10:28:38 +02:00
Bastien Guerry
0ba1b1ad6d
Merge branch 'master' of orgmode.org:org-mode
2014-09-05 03:06:12 +02:00
Nicolas Goaziou
1f3c6c2f49
Merge branch 'maint'
2014-09-04 22:15:04 +02:00
Nicolas Goaziou
4b9146cd68
org.texi: Tiny fix
2014-09-04 22:14:23 +02:00
Nicolas Goaziou
9798a5d524
Merge branch 'maint'
2014-09-03 19:56:47 +02:00
Nicolas Goaziou
dc16617f46
orgguide.texi: Small fixes
...
* doc/orgguide.texi (Export options): Small fixes.
Thanks to Alexis Roda for reporting them.
2014-09-03 19:55:20 +02:00
Bastien Guerry
ffa0b1b1b4
Merge branch 'master' of orgmode.org:org-mode
2014-09-02 23:34:12 +02:00
Nicolas Goaziou
38d0eb64b0
org-element: Do not consider property drawers as robusts
...
* lisp/org-element.el (org-element--cache-for-removal): Do not
consider property drawers as robusts: if contents are modified,
remove the whole drawer from cache.
2014-09-02 21:18:40 +02:00
Bastien Guerry
bfab7af162
Merge branch 'master' of orgmode.org:org-mode
2014-09-02 16:23:05 +02:00
Nicolas Goaziou
d4e4b1ea68
Merge branch 'maint'
2014-09-02 14:56:16 +02:00
Nicolas Goaziou
51f2730d7f
org.texi: Fix Texinfo export documentation
2014-09-02 14:54:22 +02:00
Nicolas Goaziou
aaa70b90ef
Fix failing tests
...
* lisp/org.el (org--align-node-property): Fix failing tests.
2014-09-02 12:45:07 +02:00
Nicolas Goaziou
f51a72c95c
Merge branch 'maint'
...
Conflicts:
lisp/org.el
2014-09-02 12:34:47 +02:00
Nicolas Goaziou
2de0c1c3da
Fix 37bf05
...
* lisp/org.el (org-re-property): Fix regexp. Improve docstring.
* testing/lisp/test-org-element.el (test-org-element/node-property):
Update test.
Thanks to Daimrod for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/90383
2014-09-02 12:33:35 +02:00
Bastien Guerry
cdccf1f15b
Merge branch 'master' of orgmode.org:org-mode
2014-09-01 07:07:37 +02:00
Aaron Ecay
a4a1d85ed0
ob-comint.el: Fix bug.
...
* lisp/ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
Fix bug.
The intention is to test whether the string ends with a newline, so we
should just do that. Otherwise:
(string-match "\n$" "foo\n\nbar") ;; => 3 => :-(
2014-09-01 00:52:13 -04:00
Bastien Guerry
5ac96a4503
Merge branch 'master' of orgmode.org:org-mode
2014-09-01 05:09:41 +02:00
Nicolas Goaziou
2df0785fbd
org-element: Complete 2125806
...
* lisp/org-element.el (org-element--parse-to): Do not bother checking
for a planning line at the beginning of buffer.
2014-08-31 19:11:29 +02:00