org-mode.git
20 hours agoox-html: Use correct "br" tag for subtitle maint
Rasmus [Tue, 4 Jul 2017 16:43:18 +0000 (18:43 +0200)]
ox-html: Use correct "br" tag for subtitle

* lisp/ox-html.el (org-html-template): Use correct "br" tag depending
  on :html-doctype.

Reported-by: Olivier Berger <olivier.berger@telecom-sudparis.eu>
<http://permalink.gmane.org/gmane.emacs.orgmode/114546>

4 days agoDocument STATE parameter for org-cycle-hide-* functions
Kyle Meyer [Tue, 18 Jul 2017 17:31:07 +0000 (13:31 -0400)]
Document STATE parameter for org-cycle-hide-* functions

* lisp/org.el (org-cycle-hide-archived-subtrees):
(org-cycle-hide-drawers): Mention STATE parameter in docstring.

4 days agoorg-cycle-hide-drawers: Remove an unnecessary state check
Kyle Meyer [Tue, 18 Jul 2017 17:24:32 +0000 (13:24 -0400)]
org-cycle-hide-drawers: Remove an unnecessary state check

* lisp/org.el (org-cycle-hide-drawers): Don't check whether STATE is
`contents' within the `when' body because the `when' condition will
not pass in this case.

6 days agoorg-agenda-filter-by-tag: Only accept existing tags
Nathaniel Flath [Thu, 13 Jul 2017 00:15:04 +0000 (17:15 -0700)]
org-agenda-filter-by-tag: Only accept existing tags

* org-agenda.el (org-agenda-filter-by-tag): Pass t for the
require-match argument of completing-read because the collection
includes all valid tags.

In addition to preventing a user from filtering on a value that
doesn't match any entries, this makes the default Emacs completion
more convenient because a tag can be selected by entering its unique
prefix.

9 days agoorg-capture: Fix last commit
Nicolas Goaziou [Fri, 14 Jul 2017 08:40:03 +0000 (10:40 +0200)]
org-capture: Fix last commit

* lisp/org-capture.el (org-capture-fill-template): %K link
  specifically targets a headline.  Also provide a description.

9 days agoorg-capture: Fix %k and %K in capture template
Nicolas Goaziou [Thu, 13 Jul 2017 12:08:20 +0000 (14:08 +0200)]
org-capture: Fix %k and %K in capture template

* lisp/org-capture.el (org-capture-fill-template): Fix link returned
  by %K.  Also, both %k and %K should be expanded as strings even when
  there is no clocking data.

Reported-by: Michal Politowski <mpol@meep.pl>
10 days agolibrary-of-babel: Fix typo
Chunyang Xu [Thu, 13 Jul 2017 07:40:13 +0000 (15:40 +0800)]
library-of-babel: Fix typo

* doc/library-of-babel.org: Replace non-existent with-temp-filebuffer.

TINYCHANGE

10 days agoorg-depend.el: Fix check for previous-sibling blocker
Yuri D. Lensky [Mon, 10 Jul 2017 23:21:52 +0000 (16:21 -0700)]
org-depend.el: Fix check for previous-sibling blocker

* contrib/lisp/org-depend.el (org-depend-block-todo): Fix check for
  previous-sibling blocker.

The "previous-sibling" blocker checked the previous visible heading,
instead of the true previous sibling.

12 days agoorg-clock: Fix :tstart :tend parsing with time zones
Nicolas Goaziou [Mon, 10 Jul 2017 08:56:05 +0000 (10:56 +0200)]
org-clock: Fix :tstart :tend parsing with time zones

* lisp/org-clock (org-clocktable-steps): Fix :tstart :tend parsing
  with time zones.

The regression was introduced in 112c5ba479d52c3c36de5c7aafd14ab6bc075005.

Reported-by: Dale Sedivec <dale@codefu.org>
13 days agoox-md.el: Fix export of irc and mailto links
Jay Kamat [Mon, 10 Jul 2017 00:50:09 +0000 (17:50 -0700)]
ox-md.el: Fix export of irc and mailto links

* lisp/ox-md.el (org-md-link): Add mailto and irc to links that pass
their types through to markdown export

See: https://github.com/larstvei/ox-gfm/issues/17  for an external
bug report

TINYCHANGE

13 days agoBackport commit 20e9a00fb from Emacs
Paul Eggert [Thu, 6 Jul 2017 07:23:30 +0000 (00:23 -0700)]
Backport commit 20e9a00fb from Emacs

* lisp/org-table.el (org-table-sort-lines): Fix misspelling in prompt.
* lisp/ox-ascii.el (org-ascii--describe-datum): Fix misspelling in
call to org-element-lineage.

Spelling fixes
20e9a00fb5d12ad408f9dd15adcfcd205783c1b0
Paul Eggert
Thu Jul 6 00:24:56 2017 -0700

13 days agoBackport commit 0fda6d53e from Emacs
Glenn Morris [Wed, 5 Jul 2017 18:08:35 +0000 (14:08 -0400)]
Backport commit 0fda6d53e from Emacs

; Standardize some copyright and license notices
0fda6d53e38cc7073186fed0bd862221d21500ab
Glenn Morris
Wed Jul 5 14:08:35 2017 -0400

13 days agoBackport commit 26a308ea1 from Emacs
Glenn Morris [Wed, 5 Jul 2017 18:07:14 +0000 (14:07 -0400)]
Backport commit 26a308ea1 from Emacs

* lisp/ox-html.el (org-html-infojs-template): Update copyright.

26a308ea112637911fd3870139ba0e2d98e58aa0
Glenn Morris
Wed Jul 5 14:07:14 2017 -0400

2 weeks agodoc/org.texi (Easy templates): unified the notation.
Marco Wahl [Sat, 8 Jul 2017 21:29:49 +0000 (23:29 +0200)]
doc/org.texi (Easy templates): unified the notation.

2 weeks agoFix curved quotes in error message
Kaushal Modi [Fri, 7 Jul 2017 21:18:22 +0000 (17:18 -0400)]
Fix curved quotes in error message

* lisp/org.el (org-create-formula-image): Use back-quote + single
  quote to get the correct rendering of curved quotes.

Message displayed before this fix: "Please adjust ’imagemagick’ .."

Message displayed after this fix:  "Please adjust ‘imagemagick’ .."

The effect of this fix is visible on emacs 25.1 and newer (See Emacs
NEWS).

2 weeks agoorg.el: Fix custom timestamps for date ranges
Jan Seeger [Thu, 6 Jul 2017 15:19:10 +0000 (17:19 +0200)]
org.el: Fix custom timestamps for date ranges

* org.el (org-activate-dates): Change `org-activate-dates' to activate
custom timestamps for both dates in date ranges. Formerly, only the
second date would be activated. The reason was a misplaced
`if'. Replaced it with `when'. Also added doc comments.

TINYCHANGE

2 weeks agoob-comint: Remove unnecessary (require 'tramp)
Nicolas Goaziou [Thu, 6 Jul 2017 17:10:28 +0000 (19:10 +0200)]
ob-comint: Remove unnecessary (require 'tramp)

* lisp/ob-comint.el (org-babel-comint-eval-invisibly-and-wait-for-file):
  Remove unnecessary cache flush.

2 weeks agoDo not cancel note when `org-add-log-note' is called with a prefix argument
Nicolas Goaziou [Mon, 3 Jul 2017 23:10:03 +0000 (01:10 +0200)]
Do not cancel note when `org-add-log-note' is called with a prefix argument

* lisp/org.el (org-add-log-note):
(org-store-log-note): Ignore prefix argument.

The behaviour is undocumented and can lead to data loss.

Reported-by: Kyle Meyer <kyle@kyleam.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-07/msg00024.html>

2 weeks agoFix wrong data in clock table using :block
Nicolas Goaziou [Mon, 3 Jul 2017 22:18:05 +0000 (00:18 +0200)]
Fix wrong data in clock table using :block

* lisp/org.el (org-2ft): Use new signature for
  `org-parse-time-string'.

2 weeks agoFix bug in org-inside-LaTeX-fragment-p
Rasmus [Mon, 3 Jul 2017 09:57:05 +0000 (11:57 +0200)]
Fix bug in org-inside-LaTeX-fragment-p

* lisp/org.el (org-inside-LaTeX-fragment-p): Also work correctly in
  first paragraph.

3 weeks agoMove an obsolete declaration in "org-compat.el"
Nicolas Goaziou [Sun, 2 Jul 2017 07:19:09 +0000 (09:19 +0200)]
Move an obsolete declaration in "org-compat.el"

* lisp/org-compat.el (org-capture-import-remember-templates): Moved
  from "org-capture.el".

3 weeks agoorg.texi: Fixes missing space after dot.
Mario Martelli [Sat, 1 Jul 2017 12:44:45 +0000 (14:44 +0200)]
org.texi: Fixes missing space after dot.

* doc/org.texi (Summary):
(Weekly/daily agenda): Fixes missing space after dot.

3 weeks agoorg.texi: Small change to Copying example in Texinfo export
Nicolas Goaziou [Sat, 1 Jul 2017 12:32:54 +0000 (14:32 +0200)]
org.texi: Small change to Copying example in Texinfo export

* doc/org.texi (Texinfo title and copyright page): Clarify that the
  headline needs to be named Copying, as pointed out above.

3 weeks agoFix `org-check-before-invisible-edit', part 2
Nicolas Goaziou [Sat, 1 Jul 2017 12:23:41 +0000 (14:23 +0200)]
Fix `org-check-before-invisible-edit', part 2

* lisp/org.el (org-check-before-invisible-edit): Fix error before
  first headline.  Handle nested overlays.

3 weeks agoorg-table: Add tests
Nicolas Goaziou [Sat, 1 Jul 2017 08:17:51 +0000 (10:17 +0200)]
org-table: Add tests

* testing/lisp/test-org-table.el (test-org-table/move-row-down):
(test-org-table/move-row-up): New tests.

3 weeks agoorg-table: Fix `org-table-move-row-down' without final newline
Nicolas Goaziou [Sat, 1 Jul 2017 08:07:29 +0000 (10:07 +0200)]
org-table: Fix `org-table-move-row-down' without final newline

* lisp/org-table.el (org-table-move-row): Fix
  `org-table-move-row-down' without final newline.

3 weeks agoorg-table: Fix checks for impossible row moves
Nicolas Goaziou [Sat, 1 Jul 2017 07:57:45 +0000 (09:57 +0200)]
org-table: Fix checks for impossible row moves

* lisp/org-table.el (org-table-move-row): Fix checks.

3 weeks agoorg-table: Fix infloop
Nicolas Goaziou [Sat, 1 Jul 2017 07:57:20 +0000 (09:57 +0200)]
org-table: Fix infloop

* lisp/org-table.el (org-table-current-dline): Fix infloop when point
  is at the end of of buffer.

3 weeks agodoc/Makefile: Use printf to generate org-version.tex
Kyle Meyer [Fri, 30 Jun 2017 17:06:18 +0000 (13:06 -0400)]
doc/Makefile: Use printf to generate org-version.tex

* doc/Makefile (org-version.tex): Use printf instead of echo to
increase portability.

By default GNU coreutil's echo disables the interpretation of
backslash escapes (-E option), but this isn't the case for some echo
variants.

Reported-by: Dale <dale@codefu.org>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00619.html>

3 weeks agoorg-capture: Fix blank lines in `item' target type
Nicolas Goaziou [Fri, 30 Jun 2017 11:50:39 +0000 (13:50 +0200)]
org-capture: Fix blank lines in `item' target type

* lisp/org-capture.el (org-capture-place-item): Fix blank lines in
  `item' target type.

3 weeks agoorg-capture: Fix regression in item templates
Nicolas Goaziou [Fri, 30 Jun 2017 11:27:38 +0000 (13:27 +0200)]
org-capture: Fix regression in item templates

* lisp/org-capture.el (org-capture-place-item):

Fix regression introduced in d6f096546.

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

Reported-by: Florian Lindner <mailinglists@xgm.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00606.html>

3 weeks agoFix `org-check-before-invisible-edit' before first headline
Nicolas Goaziou [Thu, 29 Jun 2017 14:29:20 +0000 (16:29 +0200)]
Fix `org-check-before-invisible-edit' before first headline

* lisp/org.el (org-check-before-invisible-edit): Fix "Before first
  heading" error.

Invisible characters can come from overlays and text properties.  The
current implementation tries to remove outline overlays, even though
it may be something else.

Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00365.html>

3 weeks agoorg-agenda: Prevent icon from leaking on white space after TODO
Nicolas Goaziou [Wed, 28 Jun 2017 13:54:20 +0000 (15:54 +0200)]
org-agenda: Prevent icon from leaking on white space after TODO

* lisp/org-agenda.el (org-agenda-highlight-todo): Prevent icon from
  leaking on white space after TODO.

Reported-by: Keith David Bershatsky
3 weeks agoorg-irc: Fix port handling
Nicolas Goaziou [Wed, 28 Jun 2017 12:44:21 +0000 (14:44 +0200)]
org-irc: Fix port handling

* lisp/org-irc.el (org-irc-visit-erc): Fix "stringp, nil".

Reported-by: "numbchild@gmail.com" <numbchild@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00541.html>

3 weeks agoorg-protocol: Fix for silently failing open-source subprotocol
Mario Martelli [Sat, 24 Jun 2017 14:01:20 +0000 (16:01 +0200)]
org-protocol: Fix for silently failing open-source subprotocol

* (org-protocol-open-source): Tests URL against base-url and not the
  filename.

TINYCHANGE

3 weeks agoorg-protocol: Fix for failing open-source subprotocol
Mario Martelli [Fri, 23 Jun 2017 16:32:49 +0000 (18:32 +0200)]
org-protocol: Fix for failing open-source subprotocol

* (org-protocol-open-source): Make sure url is sanitised before
   processing.

TINYCHANGE

3 weeks agodoc/Makefile: Auto-generate org-version.tex for orgcard
Kyle Meyer [Fri, 23 Jun 2017 18:54:02 +0000 (14:54 -0400)]
doc/Makefile: Auto-generate org-version.tex for orgcard

* doc/Makefile: Add rule to generate org-version.tex.
* doc/orgcard.tex: Include org-version.tex rather than explicitly
setting version and year.

This removes the only instance in the repo where the Org version is
hardcoded.

3 weeks agoForbid empty string as org-ellipsis value
Nicolas Goaziou [Mon, 26 Jun 2017 21:38:23 +0000 (23:38 +0200)]
Forbid empty string as org-ellipsis value

* lisp/org.el (org-ellipsis): Harden :safe value.
(org-display-table): Fix typo.
(org-mode): Only change ellipsis if `org-ellipsis' is a non-empty
string.  Remove obsolete checks.

Reported-by: Michael Ax <michaelax@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/114283>

3 weeks agoorg-element: Fix $...$ parser error
Nicolas Goaziou [Mon, 26 Jun 2017 20:07:05 +0000 (22:07 +0200)]
org-element: Fix $...$ parser error

* lisp/org-element.el (org-element-latex-fragment-parser): Also check
  border character right after opening "$" sign.
* testing/lisp/test-org-element.el (test-org-element/latex-fragment-parser):
Add tests.

Reported-by: thomas <thomas@friendlyvillagers.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/114285>

3 weeks agoox-odt: Include #+latex_header when converting LaTeX to PNG
Nicolas Goaziou [Sun, 25 Jun 2017 21:06:37 +0000 (23:06 +0200)]
ox-odt: Include #+latex_header when converting LaTeX to PNG

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Include
  #+latex_header when converting LaTeX to PNG.

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

4 weeks agodoc/org.texi (HTML doctypes): Fix formatting
Kitamoto Tsuyoshi [Sun, 25 Jun 2017 08:38:46 +0000 (10:38 +0200)]
doc/org.texi (HTML doctypes): Fix formatting

* doc/org.texi (HTML doctypes): Fix formatting.

TINYCHANGE

4 weeks agoox-latex: Fix LATEX_HEADER_EXTRA keyword
Nicolas Goaziou [Sun, 25 Jun 2017 07:39:32 +0000 (09:39 +0200)]
ox-latex: Fix LATEX_HEADER_EXTRA keyword

* lisp/ox-latex.el (org-latex-make-preamble): Do not include
  LATEX_HEADER_EXTRA keywords' contents when previewing a LaTeX
  fragment.

Reported-by: Mario Román <mromang08@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00477.html>

4 weeks agoorg-indent: Fix indentation of inline tasks
Nicolas Goaziou [Fri, 23 Jun 2017 11:52:16 +0000 (13:52 +0200)]
org-indent: Fix indentation of inline tasks

* lisp/org-indent.el (org-indent--compute-prefixes): Fix indentation
  of inline tasks when `org-inlinetask-show-first-star is non-nil.

Reported-by: Rasmus <rasmus@gmx.us>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00452.html>

4 weeks agoImprove Noweb documentation
Kaushal Modi [Thu, 22 Jun 2017 20:18:48 +0000 (16:18 -0400)]
Improve Noweb documentation

* doc/org.texi (noweb, noweb-ref, Noweb reference syntax): Add
examples and improve wording.  Clarify how to use Noweb style
references with code block arguments.  Replace occurrences of
``noweb'' and ``Noweb'' with Noweb for consistency.

4 weeks agoorg-todo: Display state change message when headline is not visible
Kyle Meyer [Fri, 23 Jun 2017 01:28:21 +0000 (21:28 -0400)]
org-todo: Display state change message when headline is not visible

* lisp/org.el (org-todo): Display state change message when headline
is not visible, reversing unintentional modification from dd17e9d29.

Prior to dd17e9d29 (2014-05-31), a message was displayed when changing
the state of a headline that was *not* visible, helping the user know
what the new state was even though the headline was off the screen.
While extending this code, dd17e9d29 unintentionally reversed the
visibility check, resulting in the message only being shown when the
headline is visible.

Reported-by: Russell Adams <RLAdams@AdamsInfoServ.Com>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00442.html>

4 weeks agoetc/styles/README: Update copyright year
Kyle Meyer [Thu, 22 Jun 2017 17:30:54 +0000 (13:30 -0400)]
etc/styles/README: Update copyright year

This has not been getting updated during the bulk copyright year
updates.

4 weeks agoClean up spacing to pass Emacs's pre-commit check
Kyle Meyer [Thu, 22 Jun 2017 17:31:00 +0000 (13:31 -0400)]
Clean up spacing to pass Emacs's pre-commit check

This is in preparation for syncing with the Emacs repo.

4 weeks agoORG-NEWS: Backport commit dc152c54f from Emacs
Paul Eggert [Sun, 6 Nov 2016 07:33:43 +0000 (00:33 -0700)]
ORG-NEWS: Backport commit dc152c54f from Emacs

Modernize usage of 'macOS' in doc and comments
dc152c54f4e44f5f2040883b03f71ff6aa66c893
Paul Eggert
Sun Nov 6 00:42:03 2016 -0700

4 weeks agoORG-NEWS: Backport commit 62803a2ef from Emacs
Paul Eggert [Sat, 24 May 2014 22:23:47 +0000 (15:23 -0700)]
ORG-NEWS: Backport commit 62803a2ef from Emacs

Specify coding if Latin-1 Emacs would misinterpret.
62803a2ef134e37f1ba2c404dda15bf5e2a2a036
Paul Eggert
Sat May 24 15:23:47 2014 -0700

4 weeks agoFix open-at-point in example blocks and diary-sexps
Nicolas Goaziou [Thu, 22 Jun 2017 08:32:40 +0000 (10:32 +0200)]
Fix open-at-point in example blocks and diary-sexps

* lisp/org.el (org-open-at-point): Also open links in example blocks
  and diary-sexps.

* testing/lisp/test-org.el (test-org/open-at-point/keyword):
(test-org/open-at-point/property):
(test-org/open-at-point/comment): Add tests.

Reported-by: Dieter Faulbaum <Dieter.Faulbaum@helmholtz-berlin.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00277.html>

4 weeks agoFix link fontification release_9.0.9
Nicolas Goaziou [Wed, 21 Jun 2017 20:55:10 +0000 (22:55 +0200)]
Fix link fontification

* lisp/org.el (org-activate-links): Fix link fontification.

Reported-by: John Kitchin <jkitchin@andrew.cmu.edu>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00381.html>

4 weeks agoorg-clock: Remove daylight saving time offset in duration
Nicolas Goaziou [Wed, 21 Jun 2017 20:29:52 +0000 (22:29 +0200)]
org-clock: Remove daylight saving time offset in duration

* lisp/org-clock.el (org-clock-out):
(org-clock-sum):
(org-clocktable-steps):
(org-clock-update-time-maybe): Use UTC to compute time differences.

* testing/lisp/test-org-clock.el (test-org-clock/clocktable/scope):
  Update test.

4 weeks agodoc/org.texi (External links): Tiny formatting fix
Tsuyoshi Kitamoto [Wed, 21 Jun 2017 13:23:23 +0000 (15:23 +0200)]
doc/org.texi (External links): Tiny formatting fix

* doc/org.texi (External links): Tiny formatting fix.

TINYCHANGE

4 weeks agoorg-element: Fix babel call parser
Nicolas Goaziou [Tue, 20 Jun 2017 19:20:30 +0000 (21:20 +0200)]
org-element: Fix babel call parser

* lisp/org-element.el (org-element-babel-call-parser): Handle complex
  arguments.
* testing/lisp/test-org-element.el (test-org-element/babel-call-parser):
Add test.

Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00366.html>

4 weeks agoorg-indent: Fix "Fix line and wrap prefixes"
Nicolas Goaziou [Tue, 20 Jun 2017 07:53:26 +0000 (09:53 +0200)]
org-indent: Fix "Fix line and wrap prefixes"

* lisp/org-indent.el (org-indent-set-line-properties): Fix
  wrap-prefix.

Reported-by: William Denton <wtd@pobox.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00360.html>

4 weeks agoorg.texi: Fix menus
Nicolas Goaziou [Tue, 20 Jun 2017 07:32:10 +0000 (09:32 +0200)]
org.texi: Fix menus

* doc/org.texi (Top):
(Texinfo export): Fix menus.

4 weeks agoox-texinfo: Remove spurious "@insertcopying"
Nicolas Goaziou [Tue, 20 Jun 2017 07:28:40 +0000 (09:28 +0200)]
ox-texinfo: Remove spurious "@insertcopying"

* lisp/ox-texinfo.el (org-texinfo-template): Remove "@insertcopying"
  command outside title page.

See (info "(texinfo) Copyright") for details.

4 weeks agoox-texinfo: Fix location of text before first headline
Nicolas Goaziou [Tue, 20 Jun 2017 07:17:37 +0000 (09:17 +0200)]
ox-texinfo: Fix location of text before first headline

* doc/org.texi (Info directory file): Fix node name.
(Headings and sectioning structure): Document location of text before
  first headline.
(A Texinfo example): Update example.

* lisp/ox-texinfo.el (org-texinfo-template): Handle contents of very
  first section.
(org-texinfo-section): Ignore very first section.

According to Texinfo specifications, Top node contents should not
appear in printed output.  Move it near "@top" command, within
"@ifnottex".

4 weeks agoorg.texi: Clean up spacing to pass Emacs's pre-commit check
Kyle Meyer [Tue, 20 Jun 2017 03:23:07 +0000 (23:23 -0400)]
org.texi: Clean up spacing to pass Emacs's pre-commit check

Like c1822e556 (2017-01-25), this is in preparation for syncing with
the Emacs repo.

4 weeks agoorg-indent: Fix line and wrap prefixes
Nicolas Goaziou [Mon, 19 Jun 2017 10:24:16 +0000 (12:24 +0200)]
org-indent: Fix line and wrap prefixes

* lisp/org-indent.el (org-indent--text-line-prefixes):
(org-indent--heading-line-prefixes):
(org-indent--inlinetask-line-prefixes): New variables.
(org-indent--compute-prefixes): New function.
(org-indent-mode): Use new function.
(org-indent-set-line-properties): Use new variables.  Also prevent
regular lines from being prefixed with stars.

Reported-by: Forrest Sedgwick <fgsedgwick@gmail.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00341.html>

4 weeks agoorg.texi: Small update
Nicolas Goaziou [Sun, 18 Jun 2017 09:03:13 +0000 (11:03 +0200)]
org.texi: Small update

* doc/org.texi (A Texinfo example): Update according to latest
  ox-texinfo fixes.

4 weeks agoRevert "ox-texinfo: Escape @ { } in index"
Nicolas Goaziou [Sun, 18 Jun 2017 09:00:56 +0000 (11:00 +0200)]
Revert "ox-texinfo: Escape @ { } in index"

* lisp/ox-texinfo.el (org-texinfo-keyword): Index keywords are
  specific to Texinfo back-end, so they expect regular Texinfo code.
* doc/org.texi (Indices): Update documentation.

5 weeks agoorg-attach: Respect org-attach-commit everywhere
Allen Li [Sat, 17 Jun 2017 09:34:02 +0000 (02:34 -0700)]
org-attach: Respect org-attach-commit everywhere

* lisp/org-attach.el (org-attach-delete-one): Respect org-attach-commit
(org-attach-delete-all): Respect org-attach-commit
(org-attach-sync): Respect org-attach-commit

TINYCHANGE

5 weeks agoox-texinfo: Add missing entities
Nicolas Goaziou [Sat, 17 Jun 2017 10:04:36 +0000 (12:04 +0200)]
ox-texinfo: Add missing entities

* lisp/ox-texinfo.el (org-texinfo-entity): Add "@textdegree{}" and
  "@registeredsymbol".

5 weeks agoFix compilation warning
Nicolas Goaziou [Fri, 16 Jun 2017 05:58:18 +0000 (07:58 +0200)]
Fix compilation warning

* lisp/org.el (org-parse-time-string): Fix compilation warning.

5 weeks agodoc/org.texi: Fix typos
Tsuyoshi Kitamoto [Thu, 15 Jun 2017 14:48:21 +0000 (16:48 +0200)]
doc/org.texi: Fix typos

* doc/org.texi (Include files)
(Special blocks in Texinfo export, Translator functions): Fix typos.

TINYCHANGE

5 weeks agoFix breakage due to outline-invisible-p defn change in emacs 26+
Kaushal Modi [Wed, 14 Jun 2017 15:20:05 +0000 (11:20 -0400)]
Fix breakage due to outline-invisible-p defn change in emacs 26+

* lisp/org.el (org-invisible-p): New function.  Restore the behavior
of outline-invisible-p prior to the following commint on emacs master
<http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9cc59ffbbb2f20fbbf1c72d2e0c9dc47c7906a99>.

* lisp/org.el (org-cycle-internal-local)
(org-clean-visibility-after-subtree-move, org-goto)
(org-get-location, org-move-subtree-down, org-copy-subtree)
(org-paste-subtree, org-next-link, org-mark-ring-goto)
(org-todo, org-deadline, org-schedule, org-set-tags)
(org-truely-invisible-p, org-invisible-p2)
(org-forward-heading-same-level, org-forward-paragraph)
(org-backward-paragraph, org-down-element)
(org-bookmark-jump-unhide, org-mark-jump-unhide):
* lisp/org-list.el (org-insert-item):
* lisp/org-crypt.el (org-encrypt-entry, org-decrypt-entry):
* lisp/org-clock.el (org-clock-load):
* lisp/org-archive.el (org-archive-subtree)
(org-archive-to-archive-sibling, org-toggle-archive-tag)
(org-archive-set-tag):
* contrib/lisp/org-drill.el (org-drill-hide-subheadings-if): Use
org-invisible-p instead of outline-invisible-p.

Reference:
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00230.html>

5 weeks agoox-texinfo: Fix last commit
Nicolas Goaziou [Wed, 14 Jun 2017 21:07:04 +0000 (23:07 +0200)]
ox-texinfo: Fix last commit

* lisp/ox-texinfo.el (org-texinfo-keyword): Fix last commit.

Do not escape raw #+TEXINFO value.

5 weeks agoox-texinfo: Escape @ { } in index
Nicolas Goaziou [Wed, 14 Jun 2017 19:27:02 +0000 (21:27 +0200)]
ox-texinfo: Escape @ { } in index

* lisp/ox-texinfo.el (org-texinfo-keyword): Escape @ { } in index.

5 weeks agoorg-colview: Fix failing test
Nicolas Goaziou [Wed, 14 Jun 2017 09:00:01 +0000 (11:00 +0200)]
org-colview: Fix failing test

* lisp/org.el (org-parse-time-string): Allow to specify zone as an
  optional argument.
* lisp/org-colview.el (org-columns--age-to-seconds): Apply change
  above.
* testing/lisp/test-org-colview.el (test-org-colview/columns-summary):
  Update tests.

5 weeks agoorg-element: Remove outdated comments
Nicolas Goaziou [Tue, 13 Jun 2017 08:41:13 +0000 (10:41 +0200)]
org-element: Remove outdated comments

5 weeks agoox-texinfo: Fix spurious "nil" in "special block export
Nicolas Goaziou [Sun, 11 Jun 2017 09:38:45 +0000 (11:38 +0200)]
ox-texinfo: Fix spurious "nil" in "special block export

* lisp/ox-texinfo.el (org-texinfo-special-block): Remove spurious
  "nil" when no option is defined.

6 weeks agoob-shell: Fix handling list variables
Nicolas Goaziou [Fri, 9 Jun 2017 22:06:24 +0000 (00:06 +0200)]
ob-shell: Fix handling list variables

* lisp/ob-shell.el (org-babel--variable-assignments:bash): Do not
  error when value is a list.

* testing/lisp/test-ob-shell.el (ob-shell/simple-list): New test.

Reported-by: Keith Amidon <camalot@picnicpark.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/113920>

6 weeks agoUpdate remote file syntax for Tramp
Kaushal Modi [Fri, 9 Jun 2017 19:28:49 +0000 (15:28 -0400)]
Update remote file syntax for Tramp

* testing/lisp/test-ox.el (test-org-export/file-uri):
* doc/org.texi (External links): The method part of remote file names
is mandatory now in the emacs master (26+).  A valid remote file name
starts with "/method:host:" or "/method:user@host:".  ssh is used as
an example method here.

This change in the examples is backward compatible with emacs 25, 24, ..

Suggested by: Michael Albinus <michael.albinus@gmx.de>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00151.html>

Relevant commit in emacs master causing this change:
<http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ed33337c3e0d0b1a8b140e23168421ea43d79324>

6 weeks agoorg-macro: Silence byte-compiler
Nicolas Goaziou [Fri, 9 Jun 2017 19:22:53 +0000 (21:22 +0200)]
org-macro: Silence byte-compiler

6 weeks agoorg-footnote: Fix footnote deletion
Nicolas Goaziou [Fri, 9 Jun 2017 07:43:49 +0000 (09:43 +0200)]
org-footnote: Fix footnote deletion

* lisp/org-footnote.el (org-footnote-delete-definitions): Preserve
  blank lines after the definition.
* testing/lisp/test-org-footnote.el (test-org-footnote/delete): Add
  test.

6 weeks agoox-texinfo: Improve entities handling
Nicolas Goaziou [Thu, 8 Jun 2017 21:26:26 +0000 (23:26 +0200)]
ox-texinfo: Improve entities handling

* lisp/ox-texinfo.el (org-texinfo-entity): Use Texinfo specific
  commands whenever possible.

6 weeks agoox-texinfo: Use UTF-8 instead of LaTeX for entities
Nicolas Goaziou [Thu, 8 Jun 2017 19:16:43 +0000 (21:16 +0200)]
ox-texinfo: Use UTF-8 instead of LaTeX for entities

* lisp/ox-texinfo.el (org-texinfo-entity): Use UTF-8 instead of LaTeX
  for entities.

6 weeks agoox: Fix search cell error on footnote sections
Nicolas Goaziou [Thu, 8 Jun 2017 18:59:29 +0000 (20:59 +0200)]
ox: Fix search cell error on footnote sections

* lisp/ox.el (org-export--install-footnote-definitions):
  Provide :raw-value property when building a virtual footnote
  section, as `org-export-search-cells' expects it.

6 weeks agoox-texinfo: Fix special characters in plain text
Nicolas Goaziou [Thu, 8 Jun 2017 13:14:48 +0000 (15:14 +0200)]
ox-texinfo: Fix special characters in plain text

* lisp/ox-texinfo.el (org-texinfo-plain-text): Add missing
  discretionary hyphenation point.  Tiny refactoring.

6 weeks agoorg-macro: Fix macro expansion in commented trees
Nicolas Goaziou [Thu, 8 Jun 2017 12:59:34 +0000 (14:59 +0200)]
org-macro: Fix macro expansion in commented trees

* lisp/org-macro.el (org-macro-replace-all): Prevent macro expansion
  in commented trees.
* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Add
  tests.
* testing/lisp/test-ox.el (test-org-export/expand-macro): Remove
  tests.

6 weeks agoorg-compat: Add obsolete aliases for link fontification functions
Nicolas Goaziou [Thu, 8 Jun 2017 11:01:44 +0000 (13:01 +0200)]
org-compat: Add obsolete aliases for link fontification functions

* lisp/org-compat.el (org-activate-bracket-links):
(org-activate-plain-links):
(org-activate-angle-links): Define aliases for backward compatibility.

6 weeks agoorg-src: Fix footnote reference remote editing
Nicolas Goaziou [Wed, 7 Jun 2017 22:57:38 +0000 (00:57 +0200)]
org-src: Fix footnote reference remote editing

* lisp/org-src.el (org-edit-footnote-reference): Do not collapse
  footnote definitions after editing remotely one of them.

* testing/lisp/test-org-src.el (test-org-src/footnote-references): New
  test.

6 weeks agoorg-src: Raise an error when source buffer is unreachable
Nicolas Goaziou [Wed, 7 Jun 2017 22:56:24 +0000 (00:56 +0200)]
org-src: Raise an error when source buffer is unreachable

* lisp/org-src.el (org-edit-src-exit): Raise an error when source
  buffer is unreachable.

6 weeks agoMention org-speed-command-help in Speed Keys info node
Kaushal Modi [Wed, 7 Jun 2017 15:34:39 +0000 (11:34 -0400)]
Mention org-speed-command-help in Speed Keys info node

* doc/org.texi (Speed keys): Mention org-speed-command-help.

6 weeks agoorg-element: Fix footnote definition parser
Nicolas Goaziou [Wed, 7 Jun 2017 21:45:17 +0000 (23:45 +0200)]
org-element: Fix footnote definition parser

* lisp/org-element.el (org-element-footnote-definition-parser):
* testing/lisp/test-org-element.el (test-org-element/footnote-definition-parser):
  Add tests.

6 weeks agoox-texinfo: Tolerate indicating commands without @-sign
Nicolas Goaziou [Wed, 7 Jun 2017 20:38:02 +0000 (22:38 +0200)]
ox-texinfo: Tolerate indicating commands without @-sign

* lisp/ox-texinfo.el (org-texinfo-def-table-markup): Improve
  docstring.
(org-texinfo-plain-list): Tolerate indicating commands without @-sign.

6 weeks agoox-texinfo: Remove spurious blank line in fixed width areas
Nicolas Goaziou [Wed, 7 Jun 2017 10:23:20 +0000 (12:23 +0200)]
ox-texinfo: Remove spurious blank line in fixed width areas

* lisp/ox-texinfo.el (org-texinfo-fixed-width): Remove spurious blank
  line.

6 weeks agoox-texinfo: More fixes to cross-referencing
Nicolas Goaziou [Tue, 6 Jun 2017 21:48:33 +0000 (23:48 +0200)]
ox-texinfo: More fixes to cross-referencing

* lisp/ox-texinfo.el (org-texinfo--sanitize-title): New function.
(org-texinfo--get-node): Use new function.  Tiny improvement over
aesthetics of duplicate node names.
(org-texinfo--sanitize-node): Fix docstring.
(org-texinfo-headline): Use new function
(org-texinfo--@ref): Remove colons and protect commas in description.
(org-texinfo-link): Use new function.  Better handling of targets
within headings.
(org-texinfo--format-entries): Use new function.  Remove colons from
menu entries.

6 weeks agoox-texinfo: Improve algorithm to make node names unique release_9.0.8
Nicolas Goaziou [Tue, 6 Jun 2017 00:14:36 +0000 (02:14 +0200)]
ox-texinfo: Improve algorithm to make node names unique

* lisp/ox-texinfo.el (org-texinfo--get-node): Use numbers to
  differentiate between common base node names instead of "x".

6 weeks agoox-texinfo: Fix conflicts between @node and @anchor names
Nicolas Goaziou [Tue, 6 Jun 2017 00:05:09 +0000 (02:05 +0200)]
ox-texinfo: Fix conflicts between @node and @anchor names

* lisp/ox-texinfo.el (org-texinfo--get-node): Prevent using reserved
  "Top" node.
(org-texinfo-radio-target):
(org-texinfo-src-block):
(org-texinfo-table):
(org-texinfo-target): Use `org-texinfo--get-node' instead of
`org-export-get-reference'.

6 weeks agoox-texinfo: Additional fix to @ref commands
Nicolas Goaziou [Mon, 5 Jun 2017 23:25:14 +0000 (01:25 +0200)]
ox-texinfo: Additional fix to @ref commands

* lisp/ox-texinfo.el (org-texinfo--@ref): New function.
(org-texinfo-link): Use new function.

When node name doesn't correspond to actual title, use the third @ref
argument to ensure the node name is not printed nor displayed.

6 weeks agoox-texinfo: Fix @ref{...} handling
Nicolas Goaziou [Mon, 5 Jun 2017 22:21:53 +0000 (00:21 +0200)]
ox-texinfo: Fix @ref{...} handling

* lisp/ox-texinfo.el (org-texinfo-link): Fix @ref{...} handling.  Use
  third argument as description.  Without description, use
  one-argument @ref.

6 weeks agoFix link fontification
Nicolas Goaziou [Mon, 5 Jun 2017 21:39:42 +0000 (23:39 +0200)]
Fix link fontification

* lisp/org.el (org-activate-links): Delegate to
  `org-element-link-parser' to handle blanks and link expansion.

6 weeks agoorg-macro: Expand macros only within narrowed part of buffer
Nicolas Goaziou [Mon, 5 Jun 2017 15:05:58 +0000 (17:05 +0200)]
org-macro: Expand macros only within narrowed part of buffer

* lisp/org-macro.el (org-macro-replace-all): Expand macros only within
  narrowed part of buffer.
* testing/lisp/test-org-macro.el (test-org/macro-replace-all): Update
  test.

Expanding macros outside in the whole buffer could make sense, e.g.,
if a macro expands to some Babel code, which, in turn, is evaluated
prior to export.  However, by principle of least surprise, it is
better to limit expansion to current accessible part of the buffer.

6 weeks agoorg-wikinodes: Fix export
Nicolas Goaziou [Mon, 5 Jun 2017 07:38:46 +0000 (09:38 +0200)]
org-wikinodes: Fix export

* contrib/lisp/org-wikinodes.el (org-wikinodes-set-wiki-targets-during-export): Fix signature.
(org-wikinodes-process-links-for-export): Fix signature.  Fix produced
Org link.

6 weeks agoorg-wikinodes: Update to Org 8 export process
Nicolas Goaziou [Mon, 5 Jun 2017 07:30:44 +0000 (09:30 +0200)]
org-wikinodes: Update to Org 8 export process

7 weeks agoorg-wikinodes: Update code to new link fontification
Nicolas Goaziou [Sun, 4 Jun 2017 07:30:54 +0000 (09:30 +0200)]
org-wikinodes: Update code to new link fontification

* contrib/lisp/org-wikinodes.el (org-wikinodes-add-to-font-lock-keywords):
  Update to change introduced in 2d29269bb1b9af08011e091913798b6598e4b156.

7 weeks agoFix last commit
Nicolas Goaziou [Sun, 4 Jun 2017 07:17:07 +0000 (09:17 +0200)]
Fix last commit

* lisp/org-agenda.el (org-agenda-mode):
* lisp/org.el (org-clone-local-variables): Fix match pattern.

7 weeks agoFix local variable handling
Nicolas Goaziou [Sat, 3 Jun 2017 20:43:35 +0000 (22:43 +0200)]
Fix local variable handling

* lisp/org.el (org-clone-local-variables):
* lisp/org-agenda.el (org-agenda-mode): Do not assume
  `buffer-local-variables' returns only cons cells.

Reported-by: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/113793>