Nicolas Goaziou
a88bd87787
Merge branch 'maint'
2017-12-27 23:57:37 +01:00
Adrian Bradd
ff0f3e4723
Fix `org-todo'
...
* org.el (org-todo): Use marker `change-plist' position property to
permit triggering through "org-depend.el" with parent heading
statistics.
When TODO statistics in parent headings were updated it shifted the point
defining the :position property in `change-plist' causing headlines
with TRIGGER properties to fail to evaluate.
TINYCHANGE
2017-12-27 23:57:15 +01:00
Nicolas Goaziou
01e150eb59
ox-publish: Cache results for `org-publish-find-date'
...
* lisp/ox-publish.el (org-publish-find-date): Cache results.
(org-publish-find-title): Tiny refactoring.
Reported-by: Lorenzo Bolla <lbolla@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00561.html >
2017-12-27 23:44:55 +01:00
Nicolas Goaziou
b30afa39b0
Merge branch 'maint'
2017-12-27 23:24:08 +01:00
Nicolas Goaziou
f2c712a6a4
Fix inserting link
...
* lisp/org.el (org-insert-link): Fix when search option in a file link
contains two consecutive slashes.
Reported-by: Ag Ibragimov <agzam.ibragimov@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00560.html >
2017-12-27 23:22:07 +01:00
Nicolas Goaziou
7b6ec64e0e
Merge branch 'maint'
2017-12-25 23:54:36 +01:00
Nicolas Goaziou
85ed1fd01d
Fix visibility cycling when point is invisible
...
* lisp/org.el (org-cycle-internal-local): Fix visibility cycling when
point is invisible.
Reported-by: Ruy Exel <ruyexel@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00314.html >
2017-12-25 23:53:26 +01:00
Kyle Meyer
b9491c967c
Merge branch 'maint'
2017-12-25 12:35:42 -05:00
Kyle Meyer
5696f353dc
ob-haskell: Fix indentation from b46787743
...
This fails Emacs's pre-commit check (lisp/org/ob-haskell.el:77: space
before tab in indent).
2017-12-25 12:29:27 -05:00
Nicolas Goaziou
870bfdc087
manual: Document "(eval" macro template
...
* contrib/manual.org: Document "(eval" macro template. Add an example
for macros.
2017-12-25 10:49:31 +01:00
Nicolas Goaziou
57a8dde8e3
Merge branch 'maint'
2017-12-25 00:14:51 +01:00
Nicolas Goaziou
b3ddb051e6
ob-exp: Fix source blocks generated by other source blocks
...
* lisp/ob-exp.el (org-babel-exp--at-source): Source blocks generated
by evaluating other source blocks may not be found in the original
buffer. In that case, do not move point.
Reported-by: "Berry, Charles" <ccberry@ucsd.edu>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00538.html >
2017-12-25 00:10:39 +01:00
Nicolas Goaziou
2262d0d0c3
Merge branch 'maint'
2017-12-23 23:44:11 +01:00
Nicolas Goaziou
a343b0000a
org-table: Improve bidirectional reordering in tables
...
* lisp/org-table.el (org-table-separator-space): New variable.
(org-table-align): Use new variable.
2017-12-23 23:42:46 +01:00
Nicolas Goaziou
f4ae1941c9
org-table: Improve bidirectional reordering in tables
...
* lisp/org-table.el (org-table-separator-space): New variable.
(org-table-align): Use new variable.
2017-12-23 23:37:45 +01:00
Nicolas Goaziou
4d3e7a2a57
ob-core: All Noweb parameters are read at point of definition
...
* lisp/ob-core.el (org-babel-params-from-properties): Do not force
using `org-babel-current-src-block-location'. Extract properties
from point.
(org-babel--noweb-reference): Remove function.
(org-babel-expand-noweb-references): Apply function removal. Small
refactoring.
* lisp/ob-lob.el (org-babel-lob-get-info): Small refactoring.
2017-12-23 15:56:53 +01:00
Nicolas Goaziou
38be851245
ob-core: Do not always evaluate Lisp code in parameters
...
* lisp/ob-core.el (org-babel-get-src-block-info):
(org-babel-params-from-properties):
(org-babel-parse-header-arguments): Add optional argument disabling
Lisp evaluation in parameters.
2017-12-23 15:45:03 +01:00
Nicolas Goaziou
1e40dd6486
ob-core: Tiny refactoring
...
* lisp/ob-core.el (org-babel-expand-noweb-references): Tiny
refactoring.
2017-12-23 14:03:52 +01:00
Nicolas Goaziou
774e553f11
Merge branch 'maint'
2017-12-23 14:03:47 +01:00
Nicolas Goaziou
d9125e435f
Fix recursive Noweb expansion
...
* lisp/ob-core.el (org-babel-expand-noweb-references): Recursive Noweb
expansion obey to :noweb parameter.
* testing/lisp/test-ob.el (test-ob/noweb-expansion): Add tests.
Fixes: 17523
2017-12-23 13:58:25 +01:00
Nicolas Goaziou
7e77560ebb
Merge branch 'maint'
2017-12-22 19:22:06 +01:00
Nicolas Goaziou
bac8d25441
org-clock: Fix timezone in `org-clock-get-sum-start'
...
* lisp/org-clock.el (org-clock-get-sum-start): Remove timezone
argument from `encode-time'.
Reported-by: Ihor Radchenko <ihor_radchenko@mymail.sutd.edu.sg>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00499.html >
2017-12-22 19:19:49 +01:00
Kaushal Modi
6e95e088e8
Merge branch 'maint'
2017-12-20 17:15:52 -05:00
Kaushal Modi
4f3fc9cb20
Fix double-escaping of # and ![ in Markdown export
...
* lisp/ox-md.el (org-md-plain-text): Fix the order of replacements in
plain text.
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00460.html >
2017-12-20 13:18:55 -05:00
Nicolas Goaziou
913aad68c3
Merge branch 'maint'
2017-12-20 13:16:28 +01:00
Nicolas Goaziou
3acc212c8f
ob-core: Get :noweb-ref from definition instead of point of call
...
* lisp/ob-core.el (org-babel-expand-noweb-references): Get :noweb-ref
from definition instead of point of call.
* testing/lisp/test-ob.el (test-ob/noweb-expansion-1):
(test-ob/noweb-expansion-2): Merge tests. Add test.
2017-12-20 13:15:08 +01:00
Nicolas Goaziou
291d90c53e
ob-core: Correctly find Noweb reference
...
* lisp/ob-core.el (org-babel--noweb-reference): New function.
(org-babel-expand-noweb-references): Use new function.
2017-12-20 13:01:53 +01:00
Nicolas Goaziou
1822f6eb62
Merge branch 'maint'
2017-12-19 20:29:21 +01:00
Neil Jerram
4932e2197a
Fix Scheme evaluation in fresh Emacs
...
* lisp/ob-scheme.el: Require geiser-impl so that
geiser-default-implementation is defined. Otherwise, unless Geiser
has previously been run (e.g. with `run-geiser'), you'll see an
error that geiser-default-implementation is undefined.
2017-12-19 20:27:44 +01:00
Rasmus
153cd2b355
ORG-NEWS: Fix typo
2017-12-19 18:22:40 +01:00
Kyle Meyer
06b49cd837
Merge branch 'maint'
2017-12-19 00:00:49 -05:00
Jack Kamm
b506bb68d0
ob-python: Fix :session :results output multiline behavior
...
* lisp/ob-python.el (orb-babel-python-evaluate-session): When :session
:results output, send multiline code blocks to tmpfile and execute in
Python with exec().
(org-babel-python--exec-tmpfile): New variable.
* testing/lisp/test-ob-python.el (test-ob-python/session-multiline):
Test for :session with multiple lines and indentation.
2017-12-18 23:59:04 -05:00
tsdye
0ad6a68a58
manual: Edits to the introductory section of "Working with source code"
2017-12-18 22:39:36 +01:00
Nicolas Goaziou
fdb2eb6701
Preserve file local variables during some operations
...
* lisp/org-macs.el (org-preserve-local-variables): New macro.
* lisp/org-footnote.el (org-footnote--clear-footnote-section):
(org-footnote--goto-local-insertion-point):
(org-footnote-create-definition):
(org-footnote-delete):
(org-footnote-renumber-fn:N):
(org-footnote-sort):
(org-footnote-normalize):
* lisp/org.el (org-move-subtree-down):
(org-copy-subtree):
(org-sort-entries):
(org-refile): Use new macro.
* testing/lisp/test-org-footnote.el (test-org-footnote/normalize):
(test-org-footnote/delete):
(test-org-footnote/sort):
(test-org-footnote/normalize):
* testing/lisp/test-org.el (test-org/sort-entries): Add tests.
Operations affected include copying, killing, refiling, archiving and
moving subtrees. It also affects sorting, creating and deleting
footnotes.
2017-12-18 16:01:41 +01:00
Nicolas Goaziou
dce82f7e5c
manual.org: Fix typo
2017-12-17 13:37:29 +01:00
Nicolas Goaziou
d330eed7c0
Rename "orgmanual.org" to "manual.org"
2017-12-17 11:06:05 +01:00
Nicolas Goaziou
290bbc14ad
Update ".dir-locals.el"
...
* .dir-locals.el (org-mode): Add Org mode specific options so manual
is more homogeneous.
2017-12-17 11:06:05 +01:00
Nicolas Goaziou
9d072ad675
Update Org manual to current release
2017-12-17 11:06:05 +01:00
Nicolas Goaziou
9bbee7d3c8
Add some `:safe' keywords
...
* lisp/org-src.el (org-edit-src-content-indentation):
* lisp/org.el (org-adapt-indentation): Add :safe keyword.
2017-12-17 11:01:25 +01:00
Nicolas Goaziou
1882be68ba
Remove ".dir-settings.el"
...
* .dir-settings.el: Remove file.
* .dir-locals.el: Remove reference to ".dir-settings.el".
2017-12-17 09:53:16 +01:00
Nicolas Goaziou
3ac619c8ac
org-macro: Placeholders in (eval ...) macros are always strings
...
* lisp/org-macro.el (org-macro-initialize-templates): Update
templates.
(org-macro-expand): Ensure placeholders in "eval" macros are strings.
* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Update
tests.
2017-12-17 09:40:56 +01:00
Marco Wahl
3f2968c650
org: Insert a blank with structure template type "src"
2017-12-16 18:17:10 +01:00
Nicolas Goaziou
6ffcdcbf02
Merge branch 'maint'
2017-12-16 13:45:43 +01:00
Nicolas Goaziou
84cb63a44a
ox: Fix plain text export with `org-export-with-backend'
...
* lisp/ox.el (org-export-with-backend): Handle arity for plain text
transcoder.
* testing/lisp/test-ox.el (test-org-export/with-backend): Add test.
2017-12-16 13:44:56 +01:00
Nicolas Goaziou
1992394148
org-duration: Remove unnecessary declaration
2017-12-15 23:23:49 +01:00
Nicolas Goaziou
c9bbc4eca7
Merge branch 'maint'
2017-12-15 23:21:34 +01:00
Nicolas Goaziou
5e30bbcd34
Silence byte-compiler
2017-12-15 23:21:15 +01:00
Nicolas Goaziou
9a24977571
Merge branch 'maint'
2017-12-15 22:50:38 +01:00
Nicolas Goaziou
aab7f65a8b
ox-latex: Merge check-boxes with bullets
...
* lisp/ox-latex.el (org-latex-item): Do not display both bullet and
checkbox.
Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-12/msg00225.html >
2017-12-15 22:48:57 +01:00
Nicolas Goaziou
2646271789
Merge branch 'maint'
2017-12-15 22:26:01 +01:00