Nicolas Goaziou [Mon, 4 Dec 2017 17:55:03 +0000 (4 18:55 +0100)]
org-irc: Silence byte-compiler
Nicolas Goaziou [Mon, 4 Dec 2017 13:55:20 +0000 (4 14:55 +0100)]
org-attach: Make `org-attach-directory' a safe variable
* lisp/org-attach.el (org-attach-directory): Add :safe keyword.
Nicolas Goaziou [Mon, 4 Dec 2017 07:24:19 +0000 (4 08:24 +0100)]
Merge branch 'maint'
thibault [Sun, 3 Dec 2017 23:42:13 +0000 (3 17:42 -0600)]
Fix bug in HTML export of code blocks with starting blank lines
* lisp/ox-html.el (org-html-do-format-code): Preverse starting blank
lines when splitting code lines (use `split-string' instead of
`org-split-string').
(org-html-fontify-code): Preserve starting blank lines in returned
code string.
Nicolas Goaziou [Sun, 3 Dec 2017 17:14:48 +0000 (3 18:14 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 3 Dec 2017 17:14:21 +0000 (3 18:14 +0100)]
Fix last commit
* lisp/org.el (org-org-menu): Fix last commit.
Nicolas Goaziou [Sun, 3 Dec 2017 17:04:18 +0000 (3 18:04 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 3 Dec 2017 17:03:19 +0000 (3 18:03 +0100)]
Activate CDLatex entry in menu only if `cdlatex' is loaded
* lisp/org.el (org-org-menu): Activate CDLatex entry in menu only if
`cdlatex' is loaded.
Fixes: 4068
Nicolas Goaziou [Sun, 3 Dec 2017 16:37:48 +0000 (3 17:37 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 3 Dec 2017 16:37:20 +0000 (3 17:37 +0100)]
org.texi: Fix typo
* doc/org.texi (Global and local cycling): Fix typo.
Nicolas Goaziou [Sun, 3 Dec 2017 15:24:49 +0000 (3 16:24 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 3 Dec 2017 15:22:45 +0000 (3 16:22 +0100)]
org-gnus: Silence byte-compiler
Fixes: 29329
Nicolas Goaziou [Sun, 3 Dec 2017 08:03:37 +0000 (3 09:03 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 3 Dec 2017 07:57:37 +0000 (3 08:57 +0100)]
Revert the whole time zone mess
* lisp/org.el (org-time-string-to-time):
(org-time-string-to-seconds): Remove optional ZONE argument.
(org-2ft):
(org-check-before-date):
(org-check-after-date):
(org-check-dates-range):
(org-parse-time-string):
* lisp/org-clock.el (org-clock-get-sum-start):
(org-clock-out):
(org-clock-timestamps-change):
(org-clock-sum):
(org-clock-update-time-maybe):
* lisp/org-colview.el (org-columns--age-to-minutes): Apply change.
* testing/lisp/test-org-clock.el (org-test-clock-create-clock):
(test-org-clock/clocktable/scope):
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
Apply change. Simplify tests to avoid daylight saving time issue.
Nicolas Goaziou [Sat, 2 Dec 2017 22:21:36 +0000 (2 23:21 +0100)]
Yet another tweak to fontification
* lisp/org.el (org-do-emphasis-faces): Handle properly asterisks at
the beginning of line.
Nicolas Goaziou [Sat, 2 Dec 2017 22:07:51 +0000 (2 23:07 +0100)]
Revert "Fix headline fontification"
This reverts commit
5873d9912145fb19d00cfa47587f8e16c59da56a.
Nicolas Goaziou [Sat, 2 Dec 2017 16:27:53 +0000 (2 17:27 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sat, 2 Dec 2017 16:23:03 +0000 (2 17:23 +0100)]
Fix RET past the last column of a table
* lisp/org.el (org-return): Split the table before first column or
after last one.
* lisp/org-table.el (org-table-next-row): Remove code handling split.
* testing/lisp/test-org.el (test-org/return): Add test.
Nicolas Goaziou [Sat, 2 Dec 2017 11:23:02 +0000 (2 12:23 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sat, 2 Dec 2017 11:21:03 +0000 (2 12:21 +0100)]
Let `or-export-last-sibling-p' handle discontinuous headlines
* lisp/ox.el (org-export-last-sibling-p): Handle discontinuous
headlines.
* testing/lisp/test-ox.el (test-org-export/last-sibling-p): Add test.
Fixes: 24836
Nicolas Goaziou [Fri, 1 Dec 2017 18:35:54 +0000 (1 19:35 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Fri, 1 Dec 2017 18:33:35 +0000 (1 19:33 +0100)]
Call store link functions only once
* lisp/org.el (org-store-link): Call store link functions only once.
Fixes: 19914
Nicolas Goaziou [Wed, 29 Nov 2017 22:02:42 +0000 (29 23:02 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Wed, 29 Nov 2017 22:01:43 +0000 (29 23:01 +0100)]
org.texi: Fix incorrect statement about dynamic blocks
* doc/org.texi (Capturing column view):
(The clock table): Correct statement.
Reported-by: Jorge Morais Neto <jorge13515@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-11/msg00429.html>
Alex Branham [Wed, 29 Nov 2017 15:21:58 +0000 (29 09:21 -0600)]
ORG-NEWS: Document new behavior of org-comment-dwim on headings
Matt Lundin [Wed, 29 Nov 2017 18:37:07 +0000 (29 12:37 -0600)]
Preserve point when storing link in Gnus nnir groups
* lisp/org-gnus.el: (org-gnus-store-link) This fixes a similar issue
as commit
84b329516efbe92ea5385f2aa2ad2779ab44b427, but for
nnir search groups in gnus.
Nicolas Goaziou [Wed, 29 Nov 2017 18:03:22 +0000 (29 19:03 +0100)]
Merge branch 'maint'
Matt Lundin [Wed, 29 Nov 2017 15:17:55 +0000 (29 09:17 -0600)]
Preserve position of point in gnus virtual group
* lisp/org-gnus.el: (org-gnus-store-link) Add a save-excursion to
protect the position of point. Otherwise, when calling org-capture
in an article with a virtual group, the point is moved and the
region captured is incorrect.
Nicolas Goaziou [Wed, 29 Nov 2017 14:10:48 +0000 (29 15:10 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Wed, 29 Nov 2017 14:09:44 +0000 (29 15:09 +0100)]
org-capture: Re-introduce history list per prompt
* lisp/org-capture.el (org-capture--prompt-history-table):
(org-capture--prompt-history): New variables.
(org-capture-fill-template): Handle history list per prompt.
Reported-by: Karl Eichwalder <ke@gnu.franken.de>
<http://lists.gnu.org/r/emacs-orgmode/2017-11/msg00251.html>
Alex Branham [Wed, 29 Nov 2017 13:41:12 +0000 (29 14:41 +0100)]
Make `org-comment-dwim' check if on a heading
* lisp/org.el (org-comment-dwim): If on a heading, comment the
heading.
* testing/lisp/test-org.el: Add test.
TINYCHANGE
Nicolas Goaziou [Wed, 29 Nov 2017 13:37:33 +0000 (29 14:37 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Wed, 29 Nov 2017 13:37:12 +0000 (29 14:37 +0100)]
Fix some tests
* testing/lisp/test-org.el (test-org/comment-dwim): Fix tests
Nicolas Goaziou [Tue, 28 Nov 2017 22:59:21 +0000 (28 23:59 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Tue, 28 Nov 2017 22:57:18 +0000 (28 23:57 +0100)]
ob-core: Fix `org-babel-src-block-names'
* lisp/ob-core.el (org-babel-src-block-names): Do not change
visibility or windows when called.
Nicolas Goaziou [Tue, 28 Nov 2017 22:35:44 +0000 (28 23:35 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Tue, 28 Nov 2017 22:35:01 +0000 (28 23:35 +0100)]
ob-core: Fix last commit
* lisp/ob-core.el (org-babel-result-end): Add missing `example-block'
result type.
Nicolas Goaziou [Mon, 27 Nov 2017 22:26:38 +0000 (27 23:26 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Mon, 27 Nov 2017 22:23:04 +0000 (27 23:23 +0100)]
ob-core: Fix removal of elements after RESULTS
* lisp/ob-core.el (org-babel-result-end): Ignore elements that do not
correspond to a valid result type (e.g., a headline).
Fixes commit
1d8126385cf979cfaade0e6a82040884bd6af56b.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2017-11/msg00384.html>
Nicolas Goaziou [Mon, 27 Nov 2017 22:02:26 +0000 (27 23:02 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Mon, 27 Nov 2017 21:54:41 +0000 (27 22:54 +0100)]
Fix headline fontification
* lisp/org.el (org-do-emphasis-faces): Do not emphasize stars in
headlines.
Reported-by: swflint@flintfam.org (Samuel W. Flint)
<http://lists.gnu.org/r/emacs-orgmode/2017-11/msg00363.html>
Kyle Meyer [Mon, 27 Nov 2017 01:35:57 +0000 (26 20:35 -0500)]
Merge branch 'maint'
Paul Eggert [Sun, 26 Nov 2017 06:45:41 +0000 (25 22:45 -0800)]
Backport commit
a89f0b6f3 from Emacs
maint: shorten https://lists.gnu.org/archive/html/... links
a89f0b6f33f9eb8910a1fceda9028d76ef50b05d
Paul Eggert
Sat Nov 25 22:48:12 2017 -0800
Nicolas Goaziou [Sun, 26 Nov 2017 10:02:14 +0000 (26 11:02 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 26 Nov 2017 10:01:55 +0000 (26 11:01 +0100)]
Silence byte-compiler
Nicolas Goaziou [Sun, 26 Nov 2017 09:57:02 +0000 (26 10:57 +0100)]
ox-html: Fix last commit
* lisp/ox-html.el (org-html-link): Fix last commit.
Matt Lundin [Sat, 25 Nov 2017 15:26:15 +0000 (25 09:26 -0600)]
Do not save target buffer after archiving subtree
* lisp/org-archive.el: (org-archive-subtree) Do not save buffer after
each archive. Saving the archive buffer after archiving each
subtree results in substantial slowdown and many writes to disk when
archiving an active region. This brings the behavior of
org-archive-subtree into line with org-refile, which does not save
the target buffer after refiling.
Matt Lundin [Sat, 25 Nov 2017 15:26:15 +0000 (25 09:26 -0600)]
Do not save target buffer after archiving subtree
* lisp/org-archive.el: (org-archive-subtree) Do not save buffer after
each archive. Saving the archive buffer after archiving each
subtree results in substantial slowdown and many writes to disk when
archiving an active region. This brings the behavior of
org-archive-subtree into line with org-refile, which does not save
the target buffer after refiling.
Nicolas Goaziou [Sun, 26 Nov 2017 09:49:28 +0000 (26 10:49 +0100)]
ox-publish: Fix resolving url-encoded external links
* lisp/ox-publish.el (org-publish-resolve-external-link): Handle
url-encoded links. Do not ask to create a new headline if none is
found.
Nicolas Goaziou [Sun, 26 Nov 2017 09:47:55 +0000 (26 10:47 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 26 Nov 2017 09:46:53 +0000 (26 10:46 +0100)]
Fix publishing links to absolute file names belonging to project
* lisp/ox-publish.el (org-publish-file-relative-name): New function.
* lisp/ox-html.el (org-html-link): Use new function.
* testing/lisp/test-ox-publish.el (test-org-publish/file-relative-name):
New test.
Nicolas Goaziou [Sat, 25 Nov 2017 20:13:58 +0000 (25 21:13 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sat, 25 Nov 2017 20:07:52 +0000 (25 21:07 +0100)]
ob-core: Fix results removal without blank line between source and results
* lisp/ob-core.el (org-babel-remove-result): Delete blank lines before
results.
(org-babel-result-end): Use `org-element-at-point'.
* testing/lisp/test-ob.el (test-ob-verify-result-and-removed-result):
Remove duplicate.
* testing/lisp/test-ob.el (test-ob/org-babel-remove-result--no-blank-line):
New test.
* testing/lisp/test-ob.el (test-ob/results-in-narrowed-buffer): Small
refactoring.
Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00338.html>
Nicolas Goaziou [Sat, 25 Nov 2017 14:42:33 +0000 (25 15:42 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Fri, 17 Nov 2017 23:19:35 +0000 (18 00:19 +0100)]
Small fix to emphasis fontification
* lisp/org.el (org-do-emphasis-faces): Do not span over paragraph
separators.
Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00202.html>
Nicolas Goaziou [Sat, 25 Nov 2017 14:33:22 +0000 (25 15:33 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sat, 25 Nov 2017 14:30:56 +0000 (25 15:30 +0100)]
Fix cross-references from %-encoded links in publishing
* lisp/ox-publish.el (org-publish-resolve-external-link): Decode
search string.
Reported-by: Martin Hans <martinhansdk@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00328.html>
Nicolas Goaziou [Wed, 22 Nov 2017 22:35:50 +0000 (22 23:35 +0100)]
org-macro: Silence byte-compiler
Nicolas Goaziou [Tue, 21 Nov 2017 22:20:20 +0000 (21 23:20 +0100)]
org-macro: Implement "keyword" macro
* lisp/org-macro.el (org-macro-initialize-templates): Implement
"keyword" macro.
* doc/org.texi (Macro replacement): Document new macro.
* testing/lisp/test-org-macro.el (test-org-macro/keyword): New test.
Nicolas Goaziou [Tue, 21 Nov 2017 21:25:17 +0000 (21 22:25 +0100)]
Remove second pass for macro expansion
* lisp/org-macro.el (org-macro-initialize-templates): Initialize all
macros, including {{{title}}} and al.
(org-macro-replace-all): Change signature.
(org-macro--find-keyword-value): New function.
* lisp/ox.el (org-export-as): Remove second macro expansion
Nicolas Goaziou [Mon, 20 Nov 2017 13:07:03 +0000 (20 14:07 +0100)]
ox: Allow a less strict UNNUMBERED inheritance
* lisp/ox.el (org-export-collect-headlines):
(org-export-excluded-from-toc-p): Allow to number headlines in the
middle of an otherwise unnumbered tree.
* testing/lisp/test-ox.el (test-org-export/collect-headlines):
(test-org-export/excluded-from-toc-p):
(test-org-export/toc-entry-backend): Update tests. Add more tests.
Reported-by: Akater <nuclearspace@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00219.html>
Nicolas Goaziou [Sun, 19 Nov 2017 23:15:05 +0000 (20 00:15 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 19 Nov 2017 23:14:22 +0000 (20 00:14 +0100)]
org.texi: Fix typo
* doc/org.texi (Export settings): Fix typo introduced in last commit.
Nicolas Goaziou [Sun, 19 Nov 2017 23:14:05 +0000 (20 00:14 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 19 Nov 2017 22:59:56 +0000 (19 23:59 +0100)]
ox: Fix UNNUMBERED strict inheritance
* lisp/ox.el (org-export-numbered-headline-p): Use a less opinionated
definition of inheritance.
* testing/lisp/test-ox.el (test-org-export/numbered-headline-p):
Update test.
* doc/org.texi (Export settings): Insist on UNNUMBERED inheritance.
It is now possible to number a headline within an unnumbered tree.
Nicolas Goaziou [Sun, 19 Nov 2017 22:22:16 +0000 (19 23:22 +0100)]
org-table: Insert new column to the right instead of the left
* lisp/org-table.el (org-table-insert-column): Insert new column to
the right instead of the left.
* testing/lisp/test-org-table.el (test-org-table/insert-column): New
test.
Nicolas Goaziou [Wed, 15 Nov 2017 21:50:56 +0000 (15 22:50 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Wed, 15 Nov 2017 21:47:06 +0000 (15 22:47 +0100)]
org-table: Better fix for `:org-untouchable'
* lisp/org-table.el (org-table-recalculate): Fix typo in existing
`remove-text-properties' call instead of adding a new one.
Also, cleaning property before processing formulas is more robust,
e.g., if last process raised an error.
Nicolas Goaziou [Wed, 15 Nov 2017 17:59:05 +0000 (15 18:59 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Wed, 15 Nov 2017 17:58:44 +0000 (15 18:58 +0100)]
org-macs: Fix typos in docstrings
* lisp/org-macs.el (org-split-string):
(org-string-width): Fix typo in docstring.
Nicolas Goaziou [Wed, 15 Nov 2017 17:14:44 +0000 (15 18:14 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Wed, 15 Nov 2017 17:13:34 +0000 (15 18:13 +0100)]
Fix `org-string-display'
* lisp/org-macs.el (org-string-display): Preserve original string's
display property when computing displayed width.
* testing/lisp/test-org-macs.el (test-org/string-display): Add test.
Reported-by: Ruy Exel <ruyexel@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00160.html>
Nicolas Goaziou [Wed, 15 Nov 2017 16:43:08 +0000 (15 17:43 +0100)]
ox-ascii: Lighten numbering in table of contents
* lisp/ox-ascii.el (org-ascii--build-title): Use only last number in
headline numbering when building table of contents.
Nicolas Goaziou [Wed, 15 Nov 2017 16:41:48 +0000 (15 17:41 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Wed, 15 Nov 2017 16:40:22 +0000 (15 17:40 +0100)]
org-table: Clean left-over `:org-untouchable' property
* lisp/org-table.el (org-table-recalculate): Clean `:org-untouchable'
property once we no longer need it.
* testing/lisp/test-org-table.el (test-org-table/formula-priority):
New test.
Reported-by: Ruy Exel <ruyexel@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00159.html>
Marco Wahl [Wed, 15 Nov 2017 13:39:26 +0000 (15 14:39 +0100)]
org-attach,test-org-attach: Refactoring.
* lisp/org-attach.el (org-attach-dired-to-subtree): Renamed from
`org-attach-dired-attach-to-next-best-subtree'. Convenience
functions have been dropped.
* testing/lisp/test-org-attach.el: Tests use
`org-test-with-temp-text-in-file' now and are cleaner now.
Marco Wahl [Wed, 15 Nov 2017 11:21:18 +0000 (15 12:21 +0100)]
org-attach: Refactor. Replace self made with available function.
* lisp/org-attach.el (org-attach-dired-marked-files-or-file-at-cursor-in-dired)
(org-attach-dired-marked-files-in-dired): Removed. Use
`dired-get-marked-files' instead.
Marco Wahl [Wed, 15 Nov 2017 10:25:51 +0000 (15 11:25 +0100)]
org-attach: Attach files specified in a dired buffer.
* lisp/org-attach.el (org-attach-attach-files): New.
(org-attach-dired-marked-files-in-dired): New
(org-attach-dired-marked-files-or-file-at-cursor-in-dired): New.
(org-attach-dired-attach-to-next-best-subtree): New command.
(org-attach-dired-attach-to-next-best-subtree-cp): New command.
(org-attach-dired-attach-to-next-best-subtree-mv): New command.
(org-attach-dired-attach-to-next-best-subtree-ln): New command.
(org-attach-dired-attach-to-next-best-subtree-lns): New command.
* testing/lisp/test-org-attach.el: Tests.
Kyle Meyer [Tue, 14 Nov 2017 03:09:46 +0000 (13 22:09 -0500)]
Merge branch 'maint'
Charles A. Roelli [Wed, 8 Nov 2017 19:51:48 +0000 (8 20:51 +0100)]
Backport commit
98288ecaf from Emacs
* lisp/org-clock.el (org-clock--oldest-date): Fix an issue when
compiling on macOS 10.6 with a western time zone (a continuation of
Bug#27736).
Further workaround for faulty localtime() under macOS 10.6
98288ecaffbc0947ec3193088172ea85ad5e42a5
Charles A. Roelli
Wed Nov 8 20:51:48 2017 +0100
Nicolas Goaziou [Sun, 12 Nov 2017 22:29:38 +0000 (12 23:29 +0100)]
Merge branch 'maint'
Chunyang Xu [Thu, 9 Nov 2017 16:28:15 +0000 (10 00:28 +0800)]
ox-html: Allow disabling htmlize
* lisp/ox-html.el (org-html-fontify-code): Do it.
Disable htmlize by setting org-html-htmlize-output-type to nil.
TINYCHANGE
Nicolas Goaziou [Sun, 12 Nov 2017 21:38:26 +0000 (12 22:38 +0100)]
Merge branch 'maint'
Martin Šlouf [Sun, 12 Nov 2017 21:37:04 +0000 (12 22:37 +0100)]
Add CS export translations
* lisp/ox.el (org-export-dictionary): Add translations for CS.
TINYCHANGE
Marco Wahl [Fri, 10 Nov 2017 18:40:15 +0000 (10 19:40 +0100)]
Merge branch 'maint'
Marco Wahl [Fri, 10 Nov 2017 18:35:35 +0000 (10 19:35 +0100)]
org-attach: Fix handling of ATTACH tag at sychronize
* lisp/org-attach.el (org-attach-sync): Remove ATTACH tag at
synchronize when no files left.
Nicolas Goaziou [Thu, 9 Nov 2017 21:47:35 +0000 (9 22:47 +0100)]
Implement :pre-blank property for items and footnotes definitions
* lisp/org-element.el (org-element-footnote-definition-parser):
(org-element-item-parser): Add `:pre-blank' property.
(org-element-footnote-definition-interpreter):
(org-element-item-interpreter):
(org-element-interpret-data):
* lisp/ox.el (org-export-data): Use new property.
* testing/lisp/test-org-element.el (test-org-element/footnote-definition-parser):
(test-org-element/item-parser): Add tests.
Marc Ihm [Tue, 7 Nov 2017 19:49:58 +0000 (7 20:49 +0100)]
v5.7.2 of org-index
Nicolas Goaziou [Mon, 6 Nov 2017 22:10:13 +0000 (6 23:10 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Mon, 6 Nov 2017 22:07:17 +0000 (6 23:07 +0100)]
ox-ascii: Small fix to items that do not start with a paragraph
* lisp/ox-ascii.el (org-ascii-item): Use better heuristics to
determine if contents should follow bullet or start a new line.
Contents follow bullet when the first contributing line is
a paragraph. As a consequence, the following snippet
-
#+html: ...
This is a paragraph.
is exported as
- This is a paragraph.
instead of
-
This is a paragraph.
previously.
Nicolas Goaziou [Mon, 6 Nov 2017 13:47:55 +0000 (6 14:47 +0100)]
ORG-NEWS: Document user-visible changes with new template system
Nicolas Goaziou [Mon, 6 Nov 2017 13:32:11 +0000 (6 14:32 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Mon, 6 Nov 2017 13:27:45 +0000 (6 14:27 +0100)]
ox-ascii: Fix descriptive lists
* lisp/ox-ascii.el (org-ascii-quote-margin): Update docstring.
(org-ascii--current-text-width): Properly handle width of text within
nested plain-list items.
(org-ascii-item): Always start a new line for description contents.
Indent them by `org-ascii-quote-margin' characters.
Nicolas Goaziou [Sun, 5 Nov 2017 11:22:18 +0000 (5 12:22 +0100)]
ox-texinfo: Gracefully handle node collision in the same hierarchy
* lisp/ox-texinfo.el (org-texinfo--get-node): Ensure the upper element
get the shorter node.
Considering the following document:
* Headline
** Headline
the level 1 headlines get "Headline" node and the other one
"Headline (1)".
Nicolas Goaziou [Sun, 5 Nov 2017 09:32:13 +0000 (5 10:32 +0100)]
ox-texinfo: Preserve target name as node.
* lisp/ox-texinfo.el (org-texinfo--get-node): Use target's value as
base for the node name, instead of using `org-export-get-reference'.
Eric Abrahamsen [Sun, 5 Nov 2017 08:25:15 +0000 (5 09:25 +0100)]
Replace easy templates with org-insert-structure-template
* lisp/org.el (org-insert-structure-template): New function for
wrapping region (or element at point) in a begin/end block.
(org-structure-predefined-blocks): New option holding predefined
blocks, for completion.
(org-try-structure-completion,
org-complete-expand-structure-template): Remove functions.
* doc/org.texi (Inserting structure templates): Document.
* testing/lisp/test-org.el (test-org/insert-template): New test.
Nicolas Goaziou [Sat, 4 Nov 2017 21:41:07 +0000 (4 22:41 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sat, 4 Nov 2017 21:40:02 +0000 (4 22:40 +0100)]
Fix characters conversion issue when loading `org-id-locations-file'
* lisp/org-id.el (org-id-locations-load): Use `insert-file-contents'
instead of `insert-file-contents-literally'.
Reported-by: Anders Johansson <mejlaandersj@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-11/msg00037.html>
Nicolas Goaziou [Sat, 4 Nov 2017 20:51:40 +0000 (4 21:51 +0100)]
Merge branch 'maint'
Nicolas Goaziou [Sat, 4 Nov 2017 20:50:11 +0000 (4 21:50 +0100)]
org-element: Fix item parser
* lisp/org-element.el (org-element--list-struct): Correctly handle end
of sub-lists and end of last item.
* testing/lisp/test-org-element.el (test-org-element/item-parser):
(test-org-element/plain-list-parser): Add tests.