org-mode.git
19 hours agoorg.texi: Fix typo maint
Nicolas Goaziou [Sun, 19 Nov 2017 23:14:22 +0000 (00:14 +0100)]
org.texi: Fix typo

* doc/org.texi (Export settings): Fix typo introduced in last commit.

19 hours agoox: Fix UNNUMBERED strict inheritance
Nicolas Goaziou [Sun, 19 Nov 2017 22:59:56 +0000 (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.

4 days agoorg-table: Better fix for `:org-untouchable' release_9.1.3
Nicolas Goaziou [Wed, 15 Nov 2017 21:47:06 +0000 (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.

5 days agoorg-macs: Fix typos in docstrings
Nicolas Goaziou [Wed, 15 Nov 2017 17:58:44 +0000 (18:58 +0100)]
org-macs: Fix typos in docstrings

* lisp/org-macs.el (org-split-string):
(org-string-width): Fix typo in docstring.

5 days agoFix `org-string-display'
Nicolas Goaziou [Wed, 15 Nov 2017 17:13:34 +0000 (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>

5 days agoorg-table: Clean left-over `:org-untouchable' property
Nicolas Goaziou [Wed, 15 Nov 2017 16:40:22 +0000 (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>

6 days agoBackport commit 98288ecaf from Emacs
Charles A. Roelli [Wed, 8 Nov 2017 19:51:48 +0000 (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

7 days agoox-html: Allow disabling htmlize
Chunyang Xu [Thu, 9 Nov 2017 16:28:15 +0000 (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

7 days agoAdd CS export translations
Martin Šlouf [Sun, 12 Nov 2017 21:37:04 +0000 (22:37 +0100)]
Add CS export translations

* lisp/ox.el (org-export-dictionary): Add translations for CS.

TINYCHANGE

10 days agoorg-attach: Fix handling of ATTACH tag at sychronize
Marco Wahl [Fri, 10 Nov 2017 18:35:35 +0000 (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.

13 days agoox-ascii: Small fix to items that do not start with a paragraph
Nicolas Goaziou [Mon, 6 Nov 2017 22:07:17 +0000 (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.

2 weeks agoox-ascii: Fix descriptive lists
Nicolas Goaziou [Mon, 6 Nov 2017 13:27:45 +0000 (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.

2 weeks agoFix characters conversion issue when loading `org-id-locations-file'
Nicolas Goaziou [Sat, 4 Nov 2017 21:40:02 +0000 (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>

2 weeks agoorg-element: Fix item parser
Nicolas Goaziou [Sat, 4 Nov 2017 20:50:11 +0000 (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.

2 weeks agoox-texinfo: Fix @ref without description
Nicolas Goaziou [Sat, 4 Nov 2017 20:48:09 +0000 (21:48 +0100)]
ox-texinfo: Fix @ref without description

* lisp/ox-texinfo.el (org-texinfo--@ref): Prefer @ref{} with a single
  argument when no description is provided.

2 weeks agoFix typo in docstring
Nicolas Goaziou [Fri, 3 Nov 2017 22:10:38 +0000 (23:10 +0100)]
Fix typo in docstring

* lisp/org.el (org-speed-commands-user): Fix typo in docstring.

2 weeks agoorg-capture: Fix aborting after inserting text at end of buffer
Xavier Martinez-Hidalgo [Thu, 2 Nov 2017 10:47:19 +0000 (11:47 +0100)]
org-capture: Fix aborting after inserting text at end of buffer

* lisp/org-capture.el (org-capture-mark-kill-region): Set end marker
  insertion type so that it advances when inserting text at the end of
  the capture buffer.

* testing/lisp/test-org-capture.el (test-org-capture/insert-at-end-abort):
  Add test case.

Inserting text at the end of the capture buffer does not advance the
end kill marker.  This causes the narrowing region and the kill
markers to get out of sync, which prevents 'org-capture-finalize' from
correctly cleaning the target buffer when aborting the capture.

Setting the kill end marker insertion type fixes this.

TINYCHANGE

2 weeks agoox-texinfo: Fix spurious blank lines in detailed menu.
Nicolas Goaziou [Fri, 3 Nov 2017 11:21:56 +0000 (12:21 +0100)]
ox-texinfo: Fix spurious blank lines in detailed menu.

* lisp/ox-texinfo.el (org-texinfo--build-menu): Prevent spurious blank
  lines in detailed menu.

2 weeks agoFix `org-display-inline-images'
Nicolas Goaziou [Tue, 31 Oct 2017 18:33:55 +0000 (19:33 +0100)]
Fix `org-display-inline-images'

* lisp/org.el (org-display-inline-images): Fix regexp.

Reported-by: Leslie Watter <watter@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00455.html>

3 weeks agoFix Org corruption when `org-agenda-files' is invalid
Nicolas Goaziou [Sun, 29 Oct 2017 23:50:11 +0000 (00:50 +0100)]
Fix Org corruption when `org-agenda-files' is invalid

* lisp/org.el (org-install-agenda-files-menu): Prevent errors in
  `org-agenda-files' from corrupting Org initialization.

Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00424.html>

3 weeks agoox-texinfo: Remove TABs from output
Nicolas Goaziou [Tue, 24 Oct 2017 11:55:38 +0000 (13:55 +0200)]
ox-texinfo: Remove TABs from output

* lisp/ox-texinfo.el (org-texinfo--untabify): New function.
(texinfo): Use new function as a final output filter.

See (info "(texinfo) Conventions").

3 weeks agoFix comma escaping with multiple leading commas
Nicolas Goaziou [Tue, 24 Oct 2017 07:51:43 +0000 (09:51 +0200)]
Fix comma escaping with multiple leading commas

* lisp/org-src.el (org-escape-code-in-region):
(org-escape-code-in-string):
(org-unescape-code-in-region):
(org-unescape-code-in-string): Fix comma escaping with multiple
leading commas.

* testing/lisp/test-org-src.el (test-org-src/escape-code-in-string):
(test-org-src/unescape-code-in-string): New tests.

Reported-by: Michal Politowski <mpol@meep.pl>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00359.html>

4 weeks agoPrevent leaking fontification across table fields' borders
Nicolas Goaziou [Sun, 22 Oct 2017 12:39:36 +0000 (14:39 +0200)]
Prevent leaking fontification across table fields' borders

* lisp/org.el (org-do-emphasis-faces): Prevent leaking fontification
  across table fields' borders.

Reported-by: Ryan <rct@thompsonclan.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00321.html>

4 weeks agoFix tangling of org block with nested source block
thibault [Sat, 21 Oct 2017 03:20:35 +0000 (22:20 -0500)]
Fix tangling of org block with nested source block

* lisp/ob-tangle.el (org-babel-tangle-single-block): Prevent double unescaping
of source block by removing unnecessary call to `org-unescape-code-in-string'.

* testing/lisp/test-ob-tangle.el (ob-tangle/nested-block) New function.

4 weeks agoox-man: Fix org-man--protect-text
Marco Wahl [Fri, 20 Oct 2017 10:21:08 +0000 (12:21 +0200)]
ox-man: Fix org-man--protect-text

4 weeks agoox-man: Fix verbatim markup
Nicolas Goaziou [Thu, 19 Oct 2017 19:51:31 +0000 (21:51 +0200)]
ox-man: Fix verbatim markup

* lisp/ox-man.el (org-man--protect-text): New function.
(org-man-code): Use new function.
(org-man-verbatim): Use inline markup.

4 weeks agoox-man: Fix code and verbatim export
Nicolas Goaziou [Wed, 18 Oct 2017 20:54:40 +0000 (22:54 +0200)]
ox-man: Fix code and verbatim export

* lisp/ox-man.el (org-man-code):
(org-man-verbatim): Fix functions.

Reported-by: Anthony Agelastos <iqgrande@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00313.html>

4 weeks agoFix `org-insert-todo-heading'
Allen Li [Wed, 18 Oct 2017 20:48:16 +0000 (22:48 +0200)]
Fix `org-insert-todo-heading'

* lisp/org.el (org-insert-todo-heading): Insert TODO keyword relative
  to the original headline, not to the headline above.

* testing/lisp/test-org.el (test-org/insert-todo-heading-respect-content):
  Add test.

4 weeks agoUpdate documentation on org-protocol template placeholders
Allen Li [Tue, 17 Oct 2017 21:28:53 +0000 (23:28 +0200)]
Update documentation on org-protocol template placeholders

* doc/org.texi (@code{capture} protocol): Fix placeholder names
(Template expansion): Add org-protocol placeholders

* lisp/org.el (org-store-link-plist): Fix docstring grammar
(org-store-link-props): Fix docstring grammar

5 weeks agoSilence byte-compiler
Nicolas Goaziou [Sat, 14 Oct 2017 10:32:08 +0000 (12:32 +0200)]
Silence byte-compiler

5 weeks agoFix links without contents in table of contents' entries
Nicolas Goaziou [Sat, 14 Oct 2017 10:29:52 +0000 (12:29 +0200)]
Fix links without contents in table of contents' entries

* lisp/ox.el (org-export-toc-entry-backend): New function.

* lisp/ox-html.el (org-html--format-toc-headline):
* lisp/ox-md.el (org-md--build-toc):
* lisp/ox-odt.el (org-odt-toc): Use new function.

* lisp/ox-texinfo.el (org-texinfo--sanitize-title):
(org-texinfo--wrap-float): Handle links without contents.

* testing/lisp/test-ox.el (test-org-export/toc-entry-backend): New
  test.

Reported-by: ConcreteVitamin <concretevitamin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00235.html>

5 weeks agoox-koma-letter: Fix typo.
Nicolas Goaziou [Sat, 14 Oct 2017 09:03:41 +0000 (11:03 +0200)]
ox-koma-letter: Fix typo.

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Fix typo.

Reported-by: Alan Schmitt <alan.schmitt@polytechnique.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00238.html>

5 weeks ago`org-file-contents': Improve error message
Nicolas Goaziou [Sat, 14 Oct 2017 08:59:51 +0000 (10:59 +0200)]
`org-file-contents': Improve error message

* lisp/org.el (org-file-contents): Improve error message.

5 weeks agoBackport commit 5d51403ce from Emacs
Paul Eggert [Tue, 10 Oct 2017 05:53:19 +0000 (22:53 -0700)]
Backport commit 5d51403ce from Emacs

; Typo fixes, mostly repeated words
5d51403ceb9b86a1bfa66f00c7af39f1200e65f1
Paul Eggert
Mon Oct 9 22:55:06 2017 -0700

5 weeks agoBackport commit 0d004ed01 from Emacs
Paul Eggert [Tue, 10 Oct 2017 00:15:42 +0000 (17:15 -0700)]
Backport commit 0d004ed01 from Emacs

; Spelling fixes
0d004ed01abb5fa025bdc9d58fce2a3abff0b6a4
Paul Eggert
Mon Oct 9 22:55:05 2017 -0700

5 weeks agoorg.texi: Correct keys for subtree movement commands
Kyle Meyer [Thu, 12 Oct 2017 05:27:42 +0000 (01:27 -0400)]
org.texi: Correct keys for subtree movement commands

* doc/org.texi (Structure editing): Correct bindings for
org-move-subtree-up and org-move-subtree-down.

Reported-by: Johann Höchtl <<johann.hoechtl@gmail.com>>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00203.html>

5 weeks agoox-md: Export TODO keywords and priority cookies
Nicolas Goaziou [Wed, 11 Oct 2017 23:00:14 +0000 (01:00 +0200)]
ox-md: Export TODO keywords and priority cookies

* lisp/ox-md.el (org-md-headline): Export TODO keywords and priority
  cookies.

Reported-by: Ganesh Krishnan <gkrishnan.gt@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00171.html>

6 weeks agoox-s5: Don't use org-html-end-plain-list
Kyle Meyer [Sat, 7 Oct 2017 18:46:44 +0000 (14:46 -0400)]
ox-s5: Don't use org-html-end-plain-list

* contrib/lisp/ox-s5.el (org-s5-plain-list): Adjust for the removal of
org-html-end-plain-list.

The function org-html-end-plain-list was deleted in
8855c23c6 (ox-html: Plain list supports arbitrary attributes,
2017-02-13).

Reported-by: <dchechin92@gmail.com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00123.html>

6 weeks agoorg-clock: Fix clock report sometimes ignoring hours before :wstart
Georgiy Tugai [Sun, 8 Oct 2017 08:42:21 +0000 (10:42 +0200)]
org-clock: Fix clock report sometimes ignoring hours before :wstart

* lisp/org-clock (org-clocktable-steps): Fix weekly-step clock report
  ignoring hours between start of period and start of week, when start
  of period is on a day of week numerically less than start of week.

  Clock report now always inserts a "week" starting at the start of
  the period, if necessary; all following weeks start on the start of
  the week as expected.

TINYCHANGE

6 weeks agoConsider headlines as sentences by themselves
Nicolas Goaziou [Sun, 8 Oct 2017 08:35:22 +0000 (10:35 +0200)]
Consider headlines as sentences by themselves

* lisp/org.el (org-forward-sentence): Consider headlines as sentences
  by themselves.

* testing/lisp/test-org.el (test-org/forward-sentence): Add test.

Reported-by: Mat Vibrys <vibrysec@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00130.html>

6 weeks agoC-c C-c on a planning info timestamp fixes day
Nicolas Goaziou [Sun, 8 Oct 2017 08:07:36 +0000 (10:07 +0200)]
C-c C-c on a planning info timestamp fixes day

* lisp/org.el (org-ctrl-c-ctrl-c): On a timestamp in a planning line,
  fix day, like regular timestamps.

Reported-by: Aaron Jensen <aaronjensen@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00132.html>

6 weeks agoFix `org-backward-paragraph' on an empty heading
Nicolas Goaziou [Fri, 6 Oct 2017 17:34:28 +0000 (19:34 +0200)]
Fix `org-backward-paragraph' on an empty heading

* lisp/org.el (org-backward-paragraph): Fix behavior on greater
  elements without contents.

* testing/lisp/test-org.el (test-org/backward-paragraph): Add test.

Reported-by: Omar Antolin <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00099.html>

6 weeks agoFix interactive timestamp entry in capture templates
Matt Lundin [Fri, 6 Oct 2017 14:50:05 +0000 (09:50 -0500)]
Fix interactive timestamp entry in capture templates

* lisp/org-capture.el: (org-capture-fill-template) Fix interactive
  timestamp entry to match the behavior of org-time-stamp. This fixes
  a bug related to the %^t and %^u template escapes which resulted in
  incorrect timestamps (<2017-10-06 Fri-12:00>). The difference
  between %^t and %^T now corresponds to the difference between
  org-time-stamp called without and with a prefix argument.

6 weeks agoBackport commit 5172fa02c from Emacs
Paul Eggert [Mon, 2 Oct 2017 02:53:56 +0000 (19:53 -0700)]
Backport commit 5172fa02c from Emacs

Prefer HTTPS to HTTP for gnu.org
5172fa02cccaab2500ecf85aaf65b8deed54d42e
Paul Eggert
Sun Oct 1 19:59:01 2017 -0700

6 weeks agoFix `org-backward-paragraph' on block opening line release_9.1.2
Nicolas Goaziou [Wed, 4 Oct 2017 10:57:14 +0000 (12:57 +0200)]
Fix `org-backward-paragraph' on block opening line

* lisp/org.el (org-backward-paragraph): Do not error when called from
  a block opening line.
* testing/lisp/test-org.el (test-org/backward-paragraph): Add tests.

Reported-by: Omar Antolin <omar.antolin@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00051.html>

7 weeks agoBackport commit 07ea5ef99 from Emacs
Martin Rudalics [Sun, 1 Oct 2017 08:30:33 +0000 (10:30 +0200)]
Backport commit 07ea5ef99 from Emacs

* doc/org.texi (A Texinfo example): Fix reference style.

Fix reference style in org.texi
07ea5ef99a509622981a8ca69aadff15cbc0ef10
Martin Rudalics
Sun Oct 1 10:30:33 2017 +0200

<https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00019.html>

7 weeks agoBackport commit bd49b6f1b from Emacs
Charles A. Roelli [Sat, 30 Sep 2017 18:42:03 +0000 (20:42 +0200)]
Backport commit bd49b6f1b from Emacs

* lisp/org-clock.el (org-clock--oldest-date): Only execute
'decode-time' on times later than year -2**31 under macOS 10.6.
See Bug#27706.

Workaround for faulty localtime() under macOS 10.6
bd49b6f1b39cffeaf6098bc7b0182552683b1c07
Charles A. Roelli
Sun Oct 1 19:07:22 2017 +0200

7 weeks agoBackport commit bbda601d1 from Emacs
Paul Eggert [Fri, 29 Sep 2017 23:40:18 +0000 (16:40 -0700)]
Backport commit bbda601d1 from Emacs

; Spelling fixes
bbda601d1d4e125c9d3c374b56eee3e2e9623f1d
Paul Eggert
Fri Sep 29 16:41:50 2017 -0700

7 weeks agoBackport commit 26d58f0c5 from Emacs
Glenn Morris [Fri, 29 Sep 2017 16:49:19 +0000 (12:49 -0400)]
Backport commit 26d58f0c5 from Emacs

; Standardize license notices
26d58f0c5865c9132e2fc559e061ef704a086d30
Glenn Morris
Fri Sep 29 12:49:19 2017 -0400

7 weeks agoFix typo in comment
Nicolas Goaziou [Sun, 1 Oct 2017 20:56:57 +0000 (22:56 +0200)]
Fix typo in comment

* testing/lisp/test-org.el (test-org/buffer-property-keys): Remove
  spurious word.

7 weeks agoFix parsing properties with title or summary type
Nicolas Goaziou [Sun, 1 Oct 2017 16:57:50 +0000 (18:57 +0200)]
Fix parsing properties with title or summary type

* testing/lisp/test-org.el (test-org/buffer-property-keys): Ignore
  title and summary type when extracting name.

Reported-by: Adrian Bradd <adrian.bradd@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-10/msg00001.html>

7 weeks agoorg-clock: Fix compilation error
Nicolas Goaziou [Fri, 29 Sep 2017 20:01:29 +0000 (22:01 +0200)]
org-clock: Fix compilation error

Reported-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00623.html>

7 weeks agoob-lob: Expand blocks before ingesting them
Nicolas Goaziou [Thu, 28 Sep 2017 21:04:54 +0000 (23:04 +0200)]
ob-lob: Expand blocks before ingesting them

* lisp/ob-lob.el (org-babel-lob-ingest): Expand blocks before
  ingesting them.

Reported-by: edgar@openmail.cc
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00361.html>

7 weeks agoorg-table: Fix formula correction when removing a hline
Nicolas Goaziou [Thu, 28 Sep 2017 20:13:49 +0000 (22:13 +0200)]
org-table: Fix formula correction when removing a hline

* lisp/org-table.el (org-table-kill-row): Do not correct formula when
  removing a hline.

Reported-by: alan.wehmann@gmail.com
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00429.html>

7 weeks agoorg.texi: Add missing information about `org-cycle-global-at-bob'
Nicolas Goaziou [Thu, 28 Sep 2017 14:23:39 +0000 (16:23 +0200)]
org.texi: Add missing information about `org-cycle-global-at-bob'

* doc/org.texi (Global and local cycling): Document special situation
  when buffer begins with a headline.

Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00456.html>

7 weeks agoorg.texi: Remove reference to removed variable
Nicolas Goaziou [Thu, 28 Sep 2017 14:06:11 +0000 (16:06 +0200)]
org.texi: Remove reference to removed variable

* doc/org.texi (Plain lists): Remove reference to
  `org-list-empty-line-terminates-plain-lists'.

Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00603.html>

7 weeks agoorg-colview: Fix "wrong-type-argument markerp nil"
Nicolas Goaziou [Tue, 26 Sep 2017 18:03:03 +0000 (20:03 +0200)]
org-colview: Fix "wrong-type-argument markerp nil"

* lisp/org-colview.el (org-columns-remove-overlays): Fix
"wrong-type-argument markerp nil".

When calling `org-agenda-columns', `org-columns-top-level-marker' is
not set. Handle this situation.

Reported-by: Benjamin Beckwith <bnbeckwith@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00566.html>

8 weeks agoox-publish: Fix :base-extension any with :recursive t
Nicolas Goaziou [Sun, 24 Sep 2017 08:57:11 +0000 (10:57 +0200)]
ox-publish: Fix :base-extension any with :recursive t

* lisp/ox-publish.el (org-publish-get-base-files): Ensure MATCH regexp
  is always a string since `directory-files-recursively' requires it.
* testing/lisp/test-ox-publish.el (test-org-publish/get-project-from-filename):
  Add test.

Suggested-by: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00528.html>

8 weeks agoAdd publishing function to "Simple example"
Nick Dokos [Wed, 20 Sep 2017 12:03:49 +0000 (08:03 -0400)]
Add publishing function to "Simple example"

The simple example project definition is missing a publishing
function. Added org-html-publish-to-html as the publishing function.

2 months agoRephrase `org-cycle-global-at-bob' documantion
Nicolas Goaziou [Wed, 20 Sep 2017 10:52:43 +0000 (12:52 +0200)]
Rephrase `org-cycle-global-at-bob' documantion

* doc/org.texi (Global and local cycling): Rephrase
  `org-cycle-global-at-bob' documantion.

Reported-by: Alain.Cochard@unistra.fr
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00447.html>

2 months agoox-html.el: Partially revert d5bbf36553
N. Raghavendra [Tue, 19 Sep 2017 17:07:02 +0000 (22:37 +0530)]
ox-html.el: Partially revert d5bbf36553

* lisp/ox-html.el (org-html-src-block): Unless klipse is used, export
source code blocks as content of `pre' elements, and not as content of
`code' children of `pre' elements.  Restores the previous way of
exporting source code blocks, and fixes the display of language
indicators while hovering over the blocks in the exported HTML file,
when klipse is not used.
(org-html-keep-old-src): Remove it.  Not needed because it is now the
default, unless klipse is used.

2 months agoob-hledger.el: Correct file name in header
Kyle Meyer [Mon, 18 Sep 2017 17:09:56 +0000 (13:09 -0400)]
ob-hledger.el: Correct file name in header

2 months agoRemove useless binding
Nicolas Goaziou [Sun, 17 Sep 2017 10:48:17 +0000 (12:48 +0200)]
Remove useless binding

* lisp/org.el (org-mode-map): Remove [(meta return)] binding, handled
  by (kbd "M-RET").

Suggested-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00411.html>

2 months agoAdjust the license link in new lisp/*.el files release_9.1.1
Kyle Meyer [Sun, 17 Sep 2017 05:00:09 +0000 (01:00 -0400)]
Adjust the license link in new lisp/*.el files

Emacs's bc511a64f6d made tree-wide changes to prefer https to http.
For Org, this resulted in the header of every lisp/*.el file being
changed.  Make the same changes in lisp/*.el files that were added
since Org version 9.0.10 (the last version that was synced with
Emacs).

2 months agoBackport commit bc511a64f from Emacs
Paul Eggert [Wed, 13 Sep 2017 22:52:52 +0000 (15:52 -0700)]
Backport commit bc511a64f from Emacs

Prefer HTTPS to FTP and HTTP in documentation
bc511a64f6da9ab51acc7c8865e80c4a4cb655c2
Paul Eggert
Wed Sep 13 15:54:37 2017 -0700

2 months agoBackport commit 5da53a019 from Emacs
Paul Eggert [Wed, 13 Sep 2017 22:46:16 +0000 (15:46 -0700)]
Backport commit 5da53a019 from Emacs

* lisp/org-info.el (org-info-other-documents)
(org-info-map-html-url):
* lisp/ox-html.el (org-html-creator-string): Use HTTPS instead of
HTTP.

Prefer HTTPS to HTTP for gnu.org
5da53a01912c2f5d46f5df4ef8cc13a34b5017d4
Paul Eggert
Wed Sep 13 15:54:25 2017 -0700

2 months agoBackport commit 74b8615fc from Emacs
Paul Eggert [Mon, 11 Sep 2017 05:22:55 +0000 (22:22 -0700)]
Backport commit 74b8615fc from Emacs

* lisp/ob-tangle.el (org-babel-tangle-publish): Port to new copy-file
behavior.

Adjust ob-tangle to new copy-file behavior
74b8615fcceba7b92c4938e1bcc92015f10ae899
Paul Eggert
Sun Sep 10 22:31:23 2017 -0700

2 months agoAdd M-RET binding for terminal
Nicolas Goaziou [Sat, 16 Sep 2017 15:19:00 +0000 (17:19 +0200)]
Add M-RET binding for terminal

* lisp/org.el (org-mode-map): Add M-RET binding.

Reported-by: Allen Li <vianchielfaura@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00386.html>

2 months agoorg.texi: Update for library-of-babel.org move
Kyle Meyer [Fri, 15 Sep 2017 22:58:41 +0000 (18:58 -0400)]
org.texi: Update for library-of-babel.org move

* doc/org.texi (Library of Babel): Point to library-of-babel.org's new
location (as of 517637012).

2 months agoorgguide.texi: Fix Library of Babel link
Kyle Meyer [Fri, 15 Sep 2017 22:58:41 +0000 (18:58 -0400)]
orgguide.texi: Fix Library of Babel link

* doc/orgguide.texi (Working With Source Code): Fix typo in Library of
Babel link.

2 months agoox-texinfo: Add missing autoload cookies
Nicolas Goaziou [Fri, 15 Sep 2017 19:10:29 +0000 (21:10 +0200)]
ox-texinfo: Add missing autoload cookies

* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo):
(org-texinfo-export-to-info): Add autoload cookie.

2 months agoFix `org-auto-repeat-maybe'
Nicolas Goaziou [Thu, 14 Sep 2017 13:33:51 +0000 (15:33 +0200)]
Fix `org-auto-repeat-maybe'

* lisp/org.el (org-auto-repeat-maybe): Fix `org-auto-repeat-maybe'.

* testing/lisp/test-org.el (test-org/auto-repeat-maybe): Add test.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00298.html>

2 months agoob-scheme: Fix results error on unspecified and void values
Nicolas Goaziou [Thu, 14 Sep 2017 13:19:14 +0000 (15:19 +0200)]
ob-scheme: Fix results error on unspecified and void values

* lisp/ob-scheme.el (org-babel-scheme-execute-with-geiser): Return
  "#<void>" or "#<unspecified>" when the REPL says so.

* testing/lisp/test-ob-scheme.el (test-ob-scheme/unspecified): New
  test.
(test-ob-scheme/prologue): Fix tests.

Reported-by: Lawrence Bottorff <borgauf@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00346.html>

2 months agoox-html: Fix missing Mathjax config with maths elements in captions
Nicolas Goaziou [Thu, 14 Sep 2017 12:40:33 +0000 (14:40 +0200)]
ox-html: Fix missing Mathjax config with maths elements in captions

* lisp/ox-html.el (org-html--build-mathjax-config): Fix missing
  Mathjax config with maths elements in captions.

Reported-by: Lawrence Bottorff <borgauf@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00302.html>

2 months agoorg-table: Fix `org-table-copy-down' with timestamps
Nicolas Goaziou [Wed, 13 Sep 2017 11:03:11 +0000 (13:03 +0200)]
org-table: Fix `org-table-copy-down' with timestamps

* lisp/org-table.el (org-table-copy-down): Allow matching inactive
  timestamps.

Reported-by: Alan Schmitt <alan.schmitt@polytechnique.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00304.html>

2 months agoFix `org-forward-sentence' on a headline
Nicolas Goaziou [Tue, 12 Sep 2017 07:02:02 +0000 (09:02 +0200)]
Fix `org-forward-sentence' on a headline

* lisp/org.el (org-forward-sentence): Fix `org-forward-sentence' on a headline.

* testing/lisp/test-org.el (test-org/forward-sentence): Add tests.

Reported-by: Mat Vibrys <vibrysec@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00282.html>

2 months agoBackport commit cdef84fb6 from Emacs
Paul Eggert [Sun, 10 Sep 2017 16:20:27 +0000 (09:20 -0700)]
Backport commit cdef84fb6 from Emacs

Spelling fixes
cdef84fb6893f69ffee1a99fe82a262e02e59bf5
Paul Eggert
Sun Sep 10 09:24:37 2017 -0700

2 months agoorg-agenda: Fix `org-agenda-skip-if-todo'
Nicolas Goaziou [Sun, 10 Sep 2017 12:10:49 +0000 (14:10 +0200)]
org-agenda: Fix `org-agenda-skip-if-todo'

* lisp/org-agenda.el (org-agenda-skip-if-todo): Make sure TODO search
  is case sensitive.  Refactor function.

2 months agoorg-agenda: Fix `org-agenda-skip-if'
Nicolas Goaziou [Sun, 10 Sep 2017 12:08:16 +0000 (14:08 +0200)]
org-agenda: Fix `org-agenda-skip-if'

* lisp/org-agenda.el (org-agenda-skip-if): Prevent some checks from
  moving point, since this stops following checks from running
  properly.

Reported-by: "cro cefisso" <crocefisso@gmx.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00182.html>

2 months agoEnsure that top-level capture targets are pasted at level 1
Matt Lundin [Sat, 9 Sep 2017 16:08:06 +0000 (11:08 -0500)]
Ensure that top-level capture targets are pasted at level 1

* lisp/org-capture.el: (org-capture-place-entry) Ensure that level is
  set to 1 (i.e., the top level) if there is no headline target
  defined. Otherwise, captured items are improperly nested by context.

2 months agoorg-agenda: Fix typo
Nicolas Goaziou [Fri, 8 Sep 2017 20:35:54 +0000 (22:35 +0200)]
org-agenda: Fix typo

* lisp/org-agenda.el (org-search-view): Add missing :test keyword.

2 months agoorg-agenda: Better state change detection
Nicolas Goaziou [Fri, 8 Sep 2017 19:18:22 +0000 (21:18 +0200)]
org-agenda: Better state change detection

* lisp/org-agenda.el (org-agenda-get-progress): Use appropriate regexp
  as TODO keywords are not limited to alphanumeric characters.

Reported-by: email@edgar-kalkowski.de
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00206.html>

2 months agoFix duplicate tests
Nicolas Goaziou [Fri, 8 Sep 2017 11:20:48 +0000 (13:20 +0200)]
Fix duplicate tests

Reported-by: Stig Brautaset <stig@brautaset.org>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00187.html>

2 months agoFix logic of calling org-make-link-desciption-function
Reuben Thomas [Tue, 5 Sep 2017 16:00:25 +0000 (17:00 +0100)]
Fix logic of calling org-make-link-desciption-function

* lisp/org.el (org-insert-link): Simplify so that description is only
prompted for once, if auto-desc is not set, and takes as its default
value, in order, default-description, the return value of
org-make-link-description-function (if the variable is non-nil), and
the current desc. Update the docstring to reflect that
default-description takes precedence over
org-make-link-description-function.
(org-make-link-description-function): Remove from docstring the
statement that if the variable is nil, then the link will be used as
the default description. This is undesirable, and was not in any case
implemented.

2 months agoImprove Scheme code evaluation
Neil Jerram [Sun, 20 Aug 2017 16:25:58 +0000 (17:25 +0100)]
Improve Scheme code evaluation

* lisp/ob-scheme.el (org-babel-scheme-execute-with-geiser): Use
  Geiser's explicit 'retort' object, instead of catching and parsing
  an expected Emacs message (which for me is in any case overwritten
  by a following "Mark set" message); this also means we don't need
  the with-output-to-string approach for getting 'output' results.
  Also 'let' Geiser variables so as to avoid popping up the REPL
  and *Geiser dbg* buffers.

2 months agoUpdate customize-package-emacs-version-alist
Kyle Meyer [Thu, 7 Sep 2017 20:56:11 +0000 (16:56 -0400)]
Update customize-package-emacs-version-alist

* lisp/org.el (customize-package-emacs-version-alist): Add entries for
all existing ":package-version" values, and remove entries for
versions that aren't used as ":package-version" values.

Note that this alist has a limited effect because we specify
":version" in almost all of our defcustoms.  Two functions make use of
this alist: describe-variable-custom-version-info and
customize-changed-options.  The former only looks at the alist if
:version isn't specified, and the latter only looks at :version if an
entry for :package-version isn't found in the alist.

We should consider removing the defcustom :version specifications so
that the package-version->version mapping only needs to be maintained
in one place.

2 months agoCorrect defcustom version information
Kyle Meyer [Thu, 7 Sep 2017 20:56:11 +0000 (16:56 -0400)]
Correct defcustom version information

* lisp/ob-lilypond.el (org-babel-lilypond-commands):
* lisp/ob-lua.el (org-babel-lua-command):
(org-babel-lua-mode):
(org-babel-lua-hline-to):
(org-babel-lua-None-to):
* lisp/org-agenda.el (org-agenda-search-view-max-outline-level):
* lisp/org.el (org-mouse-1-follows-link):
(org-src-fontify-natively):
(orgstruct-heading-prefix-regexp):
* lisp/ox-ascii.el (org-ascii-format-inlinetask-function):
* lisp/ox-latex.el (org-latex-format-drawer-function):
(org-latex-listings-langs):
* lisp/ox-odt.el (org-odt-format-drawer-function):
* lisp/ox.el (org-export-with-properties): Correct ":version" value.

* lisp/org-attach.el (org-attach-annex-auto-get): Correct
":package-version" value.

2 months agoMake ob-sclang.el work on emacs 24.3
Kaushal Modi [Thu, 7 Sep 2017 18:08:31 +0000 (14:08 -0400)]
Make ob-sclang.el work on emacs 24.3

* contrib/lisp/ob-sclang.el: Use eval-after-load instead of
  with-eval-after-load.

2 months agoFix `org-confirm-babel-evaluate' with `org-sbe'
Nicolas Goaziou [Thu, 7 Sep 2017 15:43:32 +0000 (17:43 +0200)]
Fix `org-confirm-babel-evaluate' with `org-sbe'

* lisp/ob-core.el (org-babel-check-confirm-evaluate): Do not move
  point, as it is neither necessary nor expected by
  `org-babel-check-confirm-evaluate'.

Reported-by: Alex Bennée <alex.bennee@linaro.org>
http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00167.html

2 months agoorg-agenda: Remove duplicate files when building a search view
Nicolas Goaziou [Thu, 7 Sep 2017 13:52:56 +0000 (15:52 +0200)]
org-agenda: Remove duplicate files when building a search view

* lisp/org-agenda.el (org-search-view): Remove duplicate files when
  building a search view.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00112.html>

2 months agoRestriction lock means no extra files in agenda search view
Nicolas Goaziou [Thu, 7 Sep 2017 13:51:30 +0000 (15:51 +0200)]
Restriction lock means no extra files in agenda search view

* lisp/org-agenda.el (org-search-view): Restriction lock means no
  extra files in agenda search view.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00112.html>

2 months agoTolerate editing an export block without type
Nicolas Goaziou [Thu, 7 Sep 2017 13:27:55 +0000 (15:27 +0200)]
Tolerate editing an export block without type

* lisp/org-src.el (org-edit-export-block): Tolerate editing an export
  block without type.

2 months agoorg-duration: Fix `org-duration-to-minutes' with the empty string
Nicolas Goaziou [Thu, 7 Sep 2017 13:20:26 +0000 (15:20 +0200)]
org-duration: Fix `org-duration-to-minutes' with the empty string

* lisp/org-duration.el (org-duration-to-minutes): Accept the empty
  string.

* testing/lisp/test-org-duration.el (test-org-duration/to-minutes):
  Add test.

For backward compatibility with `org-duration-string-to-minutes'
accept the empty string as a duration.

2 months agoORG-NEWS: Add incompatible change about `org-split-string'
Nicolas Goaziou [Thu, 7 Sep 2017 12:37:49 +0000 (14:37 +0200)]
ORG-NEWS: Add incompatible change about `org-split-string'

2 months agoUse `split-string' instead of `org-split-string'
Nicolas Goaziou [Thu, 7 Sep 2017 12:34:25 +0000 (14:34 +0200)]
Use `split-string' instead of `org-split-string'

* contrib/lisp/org-depend.el (org-depend-trigger-todo):
(org-depend-block-todo):
* contrib/lisp/ox-bibtex.el (org-bibtex-get-arguments):
* contrib/lisp/ox-koma-letter.el (org-koma-letter-template):
* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-unique-id):
(org-taskjuggler-resolve-dependencies):
* lisp/ob-core.el (org-babel-insert-result):
* lisp/org-agenda.el (org-search-view):
* lisp/org-lint.el (org-lint-duplicate-target):
(org-lint-wrong-header-value):
* lisp/org.el (org--setup-collect-keywords):
(org-make-org-heading-search-string):
(org-search-radio-target):
(org-local-logging):
(org-entry-add-to-multivalued-property):
(org-entry-remove-from-multivalued-property):
(org-entry-member-in-multivalued-property):
(org-entry-get-multivalued-property):
(org-entry-put-multivalued-property):
(org-wrap):
* lisp/ox-beamer.el (org-beamer-allowed-property-values):
* lisp/ox.el (org-export--get-subtree-options):
(org-export--get-inbuffer-options): Use `split-string' instead of
`org-split-string'.

2 months agoFix table variable with commas in ob-sqlite
Eduardo Bellani [Tue, 5 Sep 2017 21:17:22 +0000 (18:17 -0300)]
Fix table variable with commas in ob-sqlite

* lisp/ob-sqlite.el (org-babel-sqlite-expand-vars): Stop interfering
  with the 'orgtbl-to-csv' default formatting.

* testing/lisp/test-ob-sqlite.el: New file.

The problem here was that ob-sqlite was providing a format to the
`orgtbl-to-csv' that actually overwrote the default format in that
function, and in the case where there were commas in the content of
the table, broke the table as argument mechanism.

TINYCHANGE

2 months agoFix org-duration-to-minutes call on ox-taskjuggler release_9.1
Nicolas Goaziou [Tue, 5 Sep 2017 21:54:29 +0000 (23:54 +0200)]
Fix org-duration-to-minutes call on ox-taskjuggler

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Fix
  typo.

TINYCHANGE

2 months agoMerge branch 'maint'
Nicolas Goaziou [Tue, 5 Sep 2017 20:34:38 +0000 (22:34 +0200)]
Merge branch 'maint'

2 months agoox-odt: Small fix
Nicolas Goaziou [Tue, 5 Sep 2017 20:33:29 +0000 (22:33 +0200)]
ox-odt: Small fix

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Ignore blank
  lines before link to parse.

Reported-by: Alastair Burt <alastair.burt@gmail.com>
2 months agoupdated org-index to version 5.5
U-IHM-NOTEBOOK\Olli [Mon, 4 Sep 2017 19:02:31 +0000 (21:02 +0200)]
updated org-index to version 5.5