org-mode.git
2 days agoox-html.el (org-html-scripts): Fix copyright years maint
Bastien [Thu, 23 Mar 2017 22:46:13 +0000 (23:46 +0100)]
ox-html.el (org-html-scripts): Fix copyright years

* lisp/ox-html.el (org-html-scripts): Fix copyright years.

2 days agoox: Fix "Fix :filter-options"
Nicolas Goaziou [Thu, 23 Mar 2017 15:41:26 +0000 (16:41 +0100)]
ox: Fix "Fix :filter-options"

* lisp/ox.el (org-export-as): Remove uninterpreted data from back-end
  specific parsed keywords.

* testing/lisp/test-ox.el (test-org-export/uninterpreted): Add test.

This fixes 6cd42b08f9347a8d6084ec23548b754f9e02b2a1.

2 days agoox: Clarify a docstring
Nicolas Goaziou [Thu, 23 Mar 2017 15:38:59 +0000 (16:38 +0100)]
ox: Clarify a docstring

* lisp/ox.el (org-export-get-all-options): Specify return value for
  unknown back-ends.
(org-export--parse-option-keyword):
(org-export--get-subtree-options):
(org-export--get-inbuffer-options):
(org-export--get-global-options): Remove useless check.

4 days agoorg-agenda: Fix agenda buffer name after reload sticky agenda
Marco Wahl [Tue, 21 Mar 2017 19:47:30 +0000 (20:47 +0100)]
org-agenda: Fix agenda buffer name after reload sticky agenda

* lisp/org-agenda.el (org-agenda-list): Don't rename the buffer when
  redoing sticky.

This fix has been proposed by Ian Dunn.

<http://permalink.gmane.org/gmane.emacs.orgmode/112833>

TINYCHANGE

4 days agotest-org-agenda: Test agenda buffername when reload sticky agenda
Marco Wahl [Tue, 21 Mar 2017 19:42:08 +0000 (20:42 +0100)]
test-org-agenda: Test agenda buffername when reload sticky agenda

* testing/lisp/test-org-agenda.el: One additional test to Check that
  buffer name remains the same after reload.  (BTW some cleanup.)

6 days agoorg-src: Fix fontification error
Aaron Jensen [Sun, 19 Mar 2017 22:55:51 +0000 (23:55 +0100)]
org-src: Fix fontification error

* lisp/org-src.el (org-src-font-lock-fontify-block): Fix fontification
error introduced in commit f2a5104e45b6f44a08960ae49ba20c124a8fa9d8.

TINYCHANGE

6 days agoBackport commit 265a5d979 from Emacs
Michael Albinus [Thu, 16 Mar 2017 15:23:07 +0000 (16:23 +0100)]
Backport commit 265a5d979 from Emacs

* doc/org.texi (dir): Change example to use a method.

Document remote file name syntax change
265a5d9791bf42da0bab7bdbef4352e8d734ef31
Michael Albinus
Thu Mar 16 16:23:07 2017 +0100

6 days agoorg-clock: Fix percent formula column in clock table
Yasushi SHOJI [Sun, 19 Mar 2017 09:55:44 +0000 (10:55 +0100)]
org-clock: Fix percent formula column in clock table

* lisp/org-clock.el (org-clocktable-write-default): Fix percent
  formula column in clock table.

7 days agoob-exp: Fix export of src blocks with pathological name
Nicolas Goaziou [Sat, 18 Mar 2017 09:28:15 +0000 (10:28 +0100)]
ob-exp: Fix export of src blocks with pathological name

* lisp/ob-exp.el (org-babel-exp-process-buffer): Discard false
  positives.
* testing/lisp/test-ob-exp.el (ob-exp/src-block-with-affiliated-keyword):
  New test.

Reported-by: Skip Collins <skip.collins@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112797>

8 days agoorg-agenda: Fix agenda standard name when going unsticky
Marco Wahl [Fri, 17 Mar 2017 18:44:56 +0000 (19:44 +0100)]
org-agenda: Fix agenda standard name when going unsticky

* lisp/org-agenda.el (org-agenda-list): Reset `org-agenda-buffer-name'
  to the original name.
* testing/lisp/test-org-agenda.el: Pertaining unit test.  + 2 basic
  agenda tests.
* testing/examples/agenda-file.org: File to produce content for an
  agenda to test.

8 days agoorg-agenda: Fix off-by-one scheduled repeat
Nicolas Goaziou [Fri, 17 Mar 2017 07:35:47 +0000 (08:35 +0100)]
org-agenda: Fix off-by-one scheduled repeat

* lisp/org-agenda.el (org-agenda-get-scheduled): Make the second
  repeat appear as "Sched. 1x".

Reported-by: Eric S Fraga <e.fraga@ucl.ac.uk>
<http://permalink.gmane.org/gmane.emacs.orgmode/112755>

9 days agolisp/org-table.el: Bugfix: correctly handle increment of -/+ numbers
Bastien [Thu, 16 Mar 2017 21:15:11 +0000 (22:15 +0100)]
lisp/org-table.el: Bugfix: correctly handle increment of -/+ numbers

* lisp/org-table.el (org-table-copy-down): Bugfix: correctly
handle increment of numbers with a -/+ sign.

9 days agoFix custom timestamps during export (ox-groff)
Robert Klein [Mon, 13 Mar 2017 06:29:27 +0000 (07:29 +0100)]
Fix custom timestamps during export (ox-groff)

* contrib/lisp/ox-groff.el (org-groff-clock, org-groff-planning): Use
  org-translate-time'.

(propagate changes introduced to other export backends in commit
e1adb17ba509a43e9a03a5b367a98b8bc8de8b02.)

9 days agoorg.texi: Fix link
Nicolas Goaziou [Thu, 16 Mar 2017 12:00:39 +0000 (13:00 +0100)]
org.texi: Fix link

* doc/org.texi (Hooks): Fix link.

10 days agoox-org: Fix footnotes export, part 2
Nicolas Goaziou [Wed, 15 Mar 2017 13:30:52 +0000 (14:30 +0100)]
ox-org: Fix footnotes export, part 2

* lisp/ox-org.el (org-org--add-missing-sections): New function.
(org-org-section): Small refactoring.

Since footnote definitions are inserted in the section of the
headline, make sure those are not being skipped.

10 days agoox-org: Correctly export footnote references in headlines
Nicolas Goaziou [Wed, 15 Mar 2017 10:51:16 +0000 (11:51 +0100)]
ox-org: Correctly export footnote references in headlines

* lisp/ox-org.el (org-org-section): Also include references found in
  headlines when inserting footnote definitions at the end of
  a section.

Reported-by: WY H <jcjuly@outlook.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112678>

11 days agoox: Fix :filter-options
Nicolas Goaziou [Tue, 14 Mar 2017 17:10:07 +0000 (18:10 +0100)]
ox: Fix :filter-options

* lisp/ox.el (org-export--remove-uninterpreted-data): Do not modify
  communication channel.  Change "blob" to "datum".
(org-export--remove-uninterpreted-data-1): Remove function.
(org-export-as): Remove uninterpreted data from parsed keyword before
applying filters.

* testing/lisp/test-ox.el (test-org-export/uninterpreted): Add test.

Reported-by: Rasmus <rasmus@gmx.us>
<http://permalink.gmane.org/gmane.emacs.orgmode/112730>

11 days agoorg-capture: Fix escaping characters in template embedded S-exps
Nicolas Goaziou [Mon, 13 Mar 2017 21:45:54 +0000 (22:45 +0100)]
org-capture: Fix escaping characters in template embedded S-exps

* lisp/org-capture.el (org-capture-fill-template): Escape backslash
  characters in %i contents when those are inserted within a S-exp.
  Also prevent adding any prefix to %i contents spanning over multiple
  lines when they are inserted within a S-exp.

* testing/lisp/test-org-capture.el (test-org-capture/fill-template):
  Add tests.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112232>

2 weeks agoRevert "ox-ascii: Remove useless brackets in sub/super script"
Nicolas Goaziou [Sat, 11 Mar 2017 10:21:26 +0000 (11:21 +0100)]
Revert "ox-ascii: Remove useless brackets in sub/super script"

This reverts commit 5b4215eb166554a2a358be457318c4dab5a5b55d.

2 weeks agoorg-agenda: Fix infloop in `org-find-top-headline'
Nicolas Goaziou [Sat, 11 Mar 2017 10:17:52 +0000 (11:17 +0100)]
org-agenda: Fix infloop in `org-find-top-headline'

* lisp/org-agenda.el (org-find-top-headline): Prevent infloop when top
  headline has not level 1.

Reported-by: Adrian Bradd <adrian.bradd@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112623>

2 weeks agoox-md: Fix internal links
Nicolas Goaziou [Fri, 10 Mar 2017 17:52:06 +0000 (18:52 +0100)]
ox-md: Fix internal links

* lisp/ox-md.el (org-md-headline): Add an anchor when a link is
  referring to the headline.
(org-md--headline-referred-p): New function.

2 weeks agoox-ascii: Remove useless brackets in sub/super script
Nicolas Goaziou [Wed, 8 Mar 2017 11:28:28 +0000 (12:28 +0100)]
ox-ascii: Remove useless brackets in sub/super script

* lisp/ox-ascii.el (org-ascii-subscript):
(org-ascii-superscript): Only use brackets when there are multiple
words.

2 weeks agoFix LaTeX and Beamer publishing processes
Nicolas Goaziou [Wed, 8 Mar 2017 08:33:09 +0000 (09:33 +0100)]
Fix LaTeX and Beamer publishing processes

* lisp/ox-beamer.el (org-beamer-publish-to-pdf):
* lisp/ox-latex.el (org-latex-publish-to-pdf): Set default directory
  prior to compiling the generated tex file.

Reported-by: Robert Klein <roklein@roklein.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/112388>

2 weeks agoox-html: Fix verse blocks
Nicolas Goaziou [Tue, 7 Mar 2017 23:12:55 +0000 (00:12 +0100)]
ox-html: Fix verse blocks

* lisp/ox-html.el (org-html-verse-block): Add missing line break at
  the end of each line in verse environments.

Reported-by: Skip Collins <skip.collins@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112537>

2 weeks agotest-org-list.el: Fix visibility tests
Marco Wahl [Tue, 7 Mar 2017 15:37:25 +0000 (16:37 +0100)]
test-org-list.el: Fix visibility tests

* testing/lisp/test-org-list.el (test-org-list/move-item-down):
  Replace several calls of `org-invisible-p2' with calls on a lower
  level.

2 weeks agoox-confluence: Handle checkboxes and inactive timestamps correctly
Marc Ihm [Sun, 5 Mar 2017 17:36:30 +0000 (18:36 +0100)]
ox-confluence: Handle checkboxes and inactive timestamps correctly

* contrib/lisp/ox-confluence.el (org-confluence-timestamp): New
  function.
(org-confluence-headline): Use new function.
(org-confluence-table-cell): Add missing space.

Fix handling of square brackets from timestamps and checkboxes; avoid
invalid confluence markup for empty table headers.

2 weeks agoFix failing tests
Nicolas Goaziou [Sun, 5 Mar 2017 17:05:02 +0000 (18:05 +0100)]
Fix failing tests

* testing/lisp/test-ob.el (test-ob/org-babel-insert-result): Fix
  failing tests.

Reported-by: "Charles C. Berry" <ccberry@ucsd.edu>
<http://permalink.gmane.org/gmane.emacs.orgmode/112475>

3 weeks agoorg.texi: Document alternatives to M-TAB
Th. Rikl [Tue, 28 Feb 2017 15:11:43 +0000 (16:11 +0100)]
org.texi: Document alternatives to M-TAB

* doc/org.texi (Drawers):
(Editing and debugging formulas):
(Export settings):
(Completion): Document alternatives to M-TAB

(Built-in table editor): Change <TAB> into TAB.

TINYCHANGE

3 weeks agoob-core: Properly escape Org syntax when inserting results
Nicolas Goaziou [Wed, 1 Mar 2017 21:19:04 +0000 (22:19 +0100)]
ob-core: Properly escape Org syntax when inserting results

* lisp/ob-core.el (org-babel-examplify-region): Escape Org syntax
  before wrapping it.

* testing/lisp/test-ob.el (test-ob/org-babel-insert-result): Add test.
  Renamed from `test-ob/org-babel-insert-result--improper-lists'.

Reported-by: D M German <dmg@turingmachine.org>
3 weeks agoorg-protocol: Fix library name
Nicolas Goaziou [Tue, 28 Feb 2017 12:37:48 +0000 (13:37 +0100)]
org-protocol: Fix library name

* lisp/org-protocol.el (org-protocol-create-for-org): Use `ox-publish'
  instead of outdated `org-publish'.  Improve warning message.

Reported-by: Jonas Bernoulli <jonasbernoulli@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112386>

3 weeks agoorg-agenda-menu: Correct key for fortnight view
Kyle Meyer [Mon, 27 Feb 2017 16:10:02 +0000 (11:10 -0500)]
org-agenda-menu: Correct key for fortnight view

* lisp/org-agenda.el (org-agenda-menu): Correct key for fortnight
  view.

Reported-by: J. David Boyd <dboyd2@mmm.com>
4 weeks agoorg.texi: Fix example
Nicolas Goaziou [Thu, 23 Feb 2017 18:15:22 +0000 (19:15 +0100)]
org.texi: Fix example

* doc/org.texi (noweb-ref): Update Babel parameter syntax in example.

4 weeks agoorg.el: Make faces org-quote and org-verse be appended
Anders Johansson [Thu, 23 Feb 2017 13:14:50 +0000 (14:14 +0100)]
org.el: Make faces org-quote and org-verse be appended

* lisp/org.el (org-fontify-quote-and-verse-blocks): Append faces.  Use
  `add-face-text-property'.

This means fontification of emphasis, links etc. is kept in quote and
verse blocks even with org-fontify-quote-and-verse-blocks non-nil.

TINYCHANGE

4 weeks agoorg-capture: Tiny refactoring
Nicolas Goaziou [Thu, 23 Feb 2017 11:59:24 +0000 (12:59 +0100)]
org-capture: Tiny refactoring

* lisp/org-capture.el (org-capture-refile): Tiny refactoring.

4 weeks agoorg-capture: Fix commit 7d7c38
Bastien [Tue, 21 Feb 2017 14:41:15 +0000 (15:41 +0100)]
org-capture: Fix commit 7d7c38

4 weeks agoorg-capture: Fix `org-capture-refile'
Nicolas Goaziou [Sun, 19 Feb 2017 14:27:09 +0000 (15:27 +0100)]
org-capture: Fix `org-capture-refile'

* lisp/org-capture.el (org-capture-refile): Preserve location of point
  when refiling.

* testing/lisp/test-org-capture.el (test-org-capture/refile): New
  test.

Reported-by: Liu Hui <liuhui1610@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112202>

4 weeks agoorg-clock: Add german translation.
Axel Kielhorn [Sun, 19 Feb 2017 06:25:01 +0000 (07:25 +0100)]
org-clock: Add german translation.

* lisp/org-clocl.el (org-clock-clocktable-language-setup): German
  translations added.

Axel Kielhorn <org-mode@axelkielhorn.de>
TINYCHANGE

5 weeks agoorg-src: Fix typo in code comment
Nicolas Goaziou [Sat, 18 Feb 2017 13:56:41 +0000 (14:56 +0100)]
org-src: Fix typo in code comment

* lisp/org-src.el (org-edit-src-save): Fix typo.

5 weeks agoorg-clock: Fix number of columns with :compact parameter
Nicolas Goaziou [Sat, 18 Feb 2017 13:20:18 +0000 (14:20 +0100)]
org-clock: Fix number of columns with :compact parameter

* lisp/org-clock.el (org-clocktable-write-default): Fix number of
  columns with :compact parameter.

Reported-by: Stefan Nobis <stefan-ml@snobis.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/112217>

5 weeks agoProperly save source blocks with `save-some-buffers'
Nicolas Goaziou [Fri, 17 Feb 2017 21:29:06 +0000 (22:29 +0100)]
Properly save source blocks with `save-some-buffers'

* lisp/org-src.el (org-src-mode-configure-edit-buffer): Set
  `write-contents-functions' so that saving a remote editing buffer
  always call `org-edit-src-save'.
(org-edit-src-save): Return a non-nil value explicitly.

Reported-by: Thibault Polge <thibault@thb.lt>
<http://permalink.gmane.org/gmane.emacs.orgmode/112201>

5 weeks agoorg-clock: Fix error when using unknown language
Nicolas Goaziou [Fri, 17 Feb 2017 13:34:19 +0000 (14:34 +0100)]
org-clock: Fix error when using unknown language

* lisp/org-clock.el (org-clocktable-write-default): Be careful
  that (nth 4 lwords) and (nth 5 lwords) can be nil, if :lang as an
  unknown value.

5 weeks agoorg-lint: Add checker for empty headlines with tags
Nicolas Goaziou [Fri, 17 Feb 2017 12:23:26 +0000 (13:23 +0100)]
org-lint: Add checker for empty headlines with tags

* lisp/org-lint.el (org-lint--checkers): Add checker.
(org-lint-empty-headline-with-tags): New function.

* testing/lisp/test-org-lint.el (test-org-lint/empty-headline-with-tags):
  New test.

5 weeks agoFix file:// uri handling for windows-nt and cygwin
Fabrice Popineau [Thu, 16 Feb 2017 21:42:59 +0000 (22:42 +0100)]
Fix file:// uri handling for windows-nt and cygwin

* lisp/org-element.el (org-element-link-parser):
  Handle drive names in uri like file:///c:/dir/file

* lisp/ox.el (org-export-file-uri):
  Handle drive names in uri like file:///c:/dir/file

* testing/lisp/test-ox.el (test-org-export/file-uri):
  Generate the right uri to be tested against link exporter.

5 weeks agoorg-clock: Fix regression in Clock table
Nicolas Goaziou [Mon, 13 Feb 2017 20:24:40 +0000 (21:24 +0100)]
org-clock: Fix regression in Clock table

* lisp/org-clock.el (org-clocktable-write-default): Do not raise an
  error when :maxlevel is 0.  Small refactoring.

* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Split
into ...
(test-org-clock/clocktable/ranges):
(test-org-clock/clocktable/tags):
(test-org-clock/clocktable/scope):
(test-org-clock/clocktable/maxlevel):
(test-org-clock/clocktable/formula): ... these.  Add tests.

This fixes regression introduced in ccf832e83.

Reported-by: Christoph LANGE <math.semantic.web@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112091>

5 weeks agoFix some tests
Nicolas Goaziou [Mon, 13 Feb 2017 16:14:38 +0000 (17:14 +0100)]
Fix some tests

* testing/lisp/test-org-element (test-org-element/link-parser): Remove
  a test.
* testing/lisp/test-org-pcomplete (test-org-pcomplete/keyword):
* testing/lisp/test-ox.el (test-org-export/file-uri): Fix tests.

5 weeks agoorg-element: Fix `org-element-insert-before'
Nicolas Goaziou [Mon, 13 Feb 2017 15:29:54 +0000 (16:29 +0100)]
org-element: Fix `org-element-insert-before'

* lisp/org-element.el (org-element-insert-before): Do not call
  `reverse' as contents might use `eq' objects.

* testing/lisp/test-ox.el (test-org-export/uninterpreted): Add test

Reported-by: Justin Kirby <justinkirby@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/112065>

5 weeks agoorg-table: Move table column with leaving text-properties untouched
Stefan-W. Hahn [Sun, 12 Feb 2017 11:41:19 +0000 (12:41 +0100)]
org-table: Move table column with leaving text-properties untouched

* lisp/org-table.el (org-table-move-column): Use `transpose-regions'.

Moving org-table rows is implemented with delete-region and insert which
preserve text-properties. Moving org-table columns is implemented
with replace-string, which removes text-properties.

My proposal is to use transpose-regions in org-table-move-column which
will preserve text-properties when moving columns in org-tables.

5 weeks agoMerge branch 'improve-org-eww' into maint
Marco Wahl [Sun, 12 Feb 2017 08:08:52 +0000 (09:08 +0100)]
Merge branch 'improve-org-eww' into maint

5 weeks agoorg-eww: Fix copy of form-elements
Marco Wahl [Sun, 12 Feb 2017 08:00:56 +0000 (09:00 +0100)]
org-eww: Fix copy of form-elements

* lisp/org-eww.el (org-eww-copy-for-org-mode): New behavior: Just add
  link-title when link-location is not a string.  This fixes copying
  from www.indeed.co.uk.

Reported and a suggestion of a fix by Andrea.
<http://permalink.gmane.org/gmane.emacs.orgmode/112052>.

6 weeks agoorgcard: Update export section
Kyle Meyer [Sat, 11 Feb 2017 22:33:18 +0000 (17:33 -0500)]
orgcard: Update export section

* doc/orgcard.tex (Export and Publishing): Correct stale bindings.
  Add asynchronous, body, and subtree bindings.

This section now includes all bindings listed in
(info "(org)The Export Dispatcher").

Reported-by: Charles C. Berry <ccberry@ucsd.edu>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00200.html>

6 weeks agoSilence byte-compiler
Nicolas Goaziou [Sat, 11 Feb 2017 17:37:32 +0000 (18:37 +0100)]
Silence byte-compiler

6 weeks agoFix header in LaTeX snippets
Nicolas Goaziou [Sat, 11 Feb 2017 01:35:00 +0000 (02:35 +0100)]
Fix header in LaTeX snippets

* lisp/ox-latex.el (org-latex-make-preamble): Add optional argument.
* lisp/org.el (org-create-formula-image): Use it.

Reported-by: plus <ctre@users.sourceforge.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/112015>

6 weeks agoorgcard: Remove another timeline entry release_9.0.5
Kyle Meyer [Thu, 9 Feb 2017 17:55:27 +0000 (12:55 -0500)]
orgcard: Remove another timeline entry

* doc/orgcard.tex (Filtering and Sparse Trees): Don't mention timeline
  because this feature will be removed in version 9.1.

90f87cb98 removed the org-timeline reference in the "Agenda Views"
section but missed this one.

As a bonus, this fixes a column formatting issue in the
orgcard_letter.pdf output (orgcard.pdf was not affected) that was
caused by an extra line added in 4340cc78f.

Reported-by: David Talmage <david.talmage@shoutpoint.com>
<http://lists.gnu.org/archive/html/emacs-orgmode/2017-02/msg00193.html>

6 weeks agoorgcard.tex: Remove timeline reference
Kyle Meyer [Thu, 9 Feb 2017 02:41:57 +0000 (21:41 -0500)]
orgcard.tex: Remove timeline reference

* doc/orgcard.tex: Don't mention timeline because this feature will be
  removed in version 9.1.

6 weeks agoUpdate few bindings' descriptions based on org 9.0.4
Kaushal Modi [Sun, 5 Feb 2017 20:05:19 +0000 (15:05 -0500)]
Update few bindings' descriptions based on org 9.0.4

* doc/orgcard.tex: Update descriptions for M-UP/DOWN and M-S-UP/DOWN
  bindings for structural editing.  Removed the C-c C-q binding
  description in the Tables/Regions section as it sets org tags as
  usual, does not fill paragraph.

6 weeks agoorg-clock: Fix clock percent
Nicolas Goaziou [Tue, 7 Feb 2017 15:48:14 +0000 (16:48 +0100)]
org-clock: Fix clock percent

* lisp/org-clock.el (org-clocktable-write-default): Fix percent computation.
(org-clock-time%): Remove function.

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

As a consequence of this patch, a ":formula %" doesn't generate
a TBLFM line anymore.

6 weeks agoox-bibtex: Take key with spaces or non-alphabetic characters into account
Sebastien Le Maguer [Sun, 5 Feb 2017 07:11:16 +0000 (08:11 +0100)]
ox-bibtex: Take key with spaces or non-alphabetic characters into account

* ox-bibtex.el (org-bibtex-process-bib-files): Solve a bug in which
ox-bibtex was not considering enterily keys like "Author et&bsp; al.,
1999" as valid.

TINYCHANGE

7 weeks agoorg-clock: Do not associate a note to removed zero time CLOCKs
Nicolas Goaziou [Fri, 3 Feb 2017 21:51:56 +0000 (22:51 +0100)]
org-clock: Do not associate a note to removed zero time CLOCKs

* lisp/org-clock.el (org-clock-out): When a zero time CLOCK is
  removed, do not offer to add a note for it.

7 weeks agoNotes associated to CLOCKs are located after the clock
Nicolas Goaziou [Fri, 3 Feb 2017 21:46:15 +0000 (22:46 +0100)]
Notes associated to CLOCKs are located after the clock

* lisp/org.el (org-store-log-note): Make sure a note added after
  clocking out is inserted right after the CLOCK line.

Reported-by: Jorge Morais Neto <jorge13515@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111795>

7 weeks agoFix indentation of some elements
Nicolas Goaziou [Fri, 3 Feb 2017 20:59:08 +0000 (21:59 +0100)]
Fix indentation of some elements

* lisp/org.el (org--get-expected-indentation): Tiny refactoring.
(org-indent-line): Ignore LaTex environments.
(org-indent-region): Better handling for export blocks, LaTeX
environments and example blocks.

* testing/lisp/test-org.el (test-org/indent-line):
(test-org/indent-region): Add tests.

7 weeks agoFix repeating entries without a TODO keyword
Nicolas Goaziou [Thu, 2 Feb 2017 13:17:04 +0000 (14:17 +0100)]
Fix repeating entries without a TODO keyword

* lisp/org.el (org-auto-repeat-maybe): Allow repeating entries without
  a TODO keyword.

7 weeks agoorg-agenda: Fix scheduled and deadline S-exp entries display
Nicolas Goaziou [Wed, 1 Feb 2017 21:36:29 +0000 (22:36 +0100)]
org-agenda: Fix scheduled and deadline S-exp entries display

* lisp/org-agenda.el (org-agenda-get-deadlines):
(org-agenda-get-scheduled): Properly handle S-exp entries.

Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111805>

7 weeks agoorg-table: Fix error with `org-table-get-field' at bob
Nicolas Goaziou [Wed, 1 Feb 2017 19:56:38 +0000 (20:56 +0100)]
org-table: Fix error with `org-table-get-field' at bob

* lisp/org-table.el (org-table-get-field): Do not return
  `beginning-of-buffer' error when called at beginning of buffer.

* testing/lisp/test-org-table.el (test-org-table/get-field): New test.

7 weeks agoReplace org-set-local by setq-local in the documentation
Nicolas Goaziou [Wed, 1 Feb 2017 14:42:04 +0000 (15:42 +0100)]
Replace org-set-local by setq-local in the documentation

* contrib/orgmanual.org (Conflicts): Update yasnippet instructions.

* doc/org.texi (Packages that conflict with Org mode): Update
  yasnippet instructions

TINYCHANGE

7 weeks agoorg-capture: Small fix
Nicolas Goaziou [Tue, 31 Jan 2017 21:50:09 +0000 (22:50 +0100)]
org-capture: Small fix

* lisp/org-capture.el (org-mks): Find entries with full prefix, not
last pressed key.

This fixes a bug introduced in 8194e7b09.

Reported-by: Charles Millar <millarc@verizon.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/111779>

7 weeks agoox-latex.el: Wrap 'minted' src blocks in a 'listing' environment
Lixin Chin [Tue, 31 Jan 2017 06:15:40 +0000 (14:15 +0800)]
ox-latex.el: Wrap 'minted' src blocks in a 'listing' environment

* lisp/ox-latex.el (org-latex-src-block): Make source highlighting
  using the 'minted' syntax highlighting package behave the same as
  using the 'listings' syntax highlighting package.

The source block should be floating if a caption is provided, or if
':float t' is provided in an '#+ATTR_LATEX:' block.  Previously, the
source block would only be floating if ':float multicolumn' was
provided.  This now matches the Org mode documentation for source
blocks.

TINYCHANGE

7 weeks agoorg-capture: Fix freeze when capture templates are ill-defined
Nicolas Goaziou [Mon, 30 Jan 2017 22:36:52 +0000 (23:36 +0100)]
org-capture: Fix freeze when capture templates are ill-defined

* lisp/org-capture.el (org-mks): Do not freeze when there is a missing
  step in the key hierarchy.  Fix docstring.  Refactor code for clarity.

Reported-by: Roland Everaert <reveatwork@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111716>

7 weeks agoBackport commit ae8264c5cc from Emacs
Noam Postavsky [Sat, 7 Jan 2017 21:05:19 +0000 (16:05 -0500)]
Backport commit ae8264c5cc from Emacs

* lisp/org-src.el (org-src-font-lock-fontify-block): Let-bind
`inhibit-modification-hooks' to nil, since this function can be called
from jit-lock-function which binds that variable to t (Bug#25132).

Call modification hooks in org-src fontify buffers
ae8264c5cccf19d5b25a340a605bf2f07de1577e
Noam Postavsky
Sun Jan 29 11:01:32 2017 -0500

7 weeks agoFix: keep repeaters at rescheduling
Marco Wahl [Sun, 29 Jan 2017 15:04:03 +0000 (16:04 +0100)]
Fix: keep repeaters at rescheduling

* lisp/org.el (org--deadline-or-schedule): Removed a blank in a regexp.
* testing/lisp/test-org.el (test-org/schedule): New test.

8 weeks agoAllow C-c C-c on blank lines within src blocks
Nicolas Goaziou [Fri, 27 Jan 2017 22:56:30 +0000 (23:56 +0100)]
Allow C-c C-c on blank lines within src blocks

* lisp/org.el (org-ctrl-c-ctrl-c): Act on blank lines if they are
  located within a src block.

Reported-by: John Hendy <jw.hendy@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111720>

8 weeks agoFix `org-refresh-property'
Marco Wahl [Fri, 27 Jan 2017 18:35:16 +0000 (19:35 +0100)]
Fix `org-refresh-property'

* lisp/org.el(org-refresh-property): Fixed by comparison to the code
  before the refactoring.

With commit 126a1cd7c the "Effort" property broke the agenda.

8 weeks agoFix internal function name
Nicolas Goaziou [Thu, 26 Jan 2017 23:24:15 +0000 (00:24 +0100)]
Fix internal function name

* lisp/org.el (org-property--local-values): Rename to...
(org--property-local-values): ... this.
(org-entry-get):
(org-entry-get-with-inheritance): Apply renaming.

8 weeks agoFix "APPT_WARNTIME" inheritance
Nicolas Goaziou [Thu, 26 Jan 2017 23:21:42 +0000 (00:21 +0100)]
Fix "APPT_WARNTIME" inheritance

* lisp/org.el (org-refresh-properties): Handle inheritance from global
  values (e.g., from "#+PROPERTY:" keyword).
(org-refresh-property): Handle property inheritance with a new
optional argument.

* testing/lisp/test-org.el (test-org/refresh-properties): New test.

8 weeks agoSmall refactoring
Nicolas Goaziou [Thu, 26 Jan 2017 23:10:10 +0000 (00:10 +0100)]
Small refactoring

* lisp/org.el (org--property-global-value): New function.
(org-entry-get-with-inheritance): Use new function.

8 weeks agoFix `org-property-inherit-p'
Nicolas Goaziou [Thu, 26 Jan 2017 22:10:53 +0000 (23:10 +0100)]
Fix `org-property-inherit-p'

* lisp/org.el (org-property-inherit-p): Properties are case insensitive.

8 weeks agoChange :version in defcustoms from "25.2" to "26.1"
Kyle Meyer [Thu, 26 Jan 2017 04:39:18 +0000 (23:39 -0500)]
Change :version in defcustoms from "25.2" to "26.1"

* lisp/ob-J.el (org-babel-J-command):
* lisp/ob-core.el (org-babel-hash-show-time):
* lisp/ob-exp.el (org-babel-exp-inline-code-template):
* lisp/ob-lisp.el (org-babel-lisp-eval-fn):
* lisp/org-agenda.el (org-agenda-view-columns-initially):
* lisp/org-attach.el (org-attach-commit):
(org-attach-archive-delete):
(org-attach-annex-auto-get):
* lisp/org-bibtex.el (org-bibtex-inherit-tags):
* lisp/org-clock.el (org-clock-into-drawer):
* lisp/org-colview.el (org-columns-summary-types):
* lisp/org-faces.el (org-block):
* lisp/org-src.el (org-src-block-faces):
* lisp/org-table.el (org-table-copy-increment):
(org-table-formula-create-columns):
(org-table-convert-region-max-lines):
* lisp/org-timer.el (org-timer-default-timer):
* lisp/org.el (org-export-backends):
(org-show-context-detail):
(org-cycle-hook):
(org-occur-case-fold-search):
(org-preview-latex-default-process):
(org-preview-latex-process-alist):
(org-preview-latex-image-directory):
(org-latex-default-packages-alist):
(org-sparse-tree-default-date-type):
(org-structure-template-alist):
(org-effort-durations):
(org-agenda-ignore-properties): Change :version from "25.2" to "26.1".
(customize-package-emacs-version-alist): Fix associations between Org
and Emacs releases.
* lisp/ox-ascii.el (org-ascii-list-margin):
* lisp/ox-beamer.el (org-beamer-subtitle-format):
* lisp/ox-html.el (org-html-format-headline-function):
(org-html-format-inlinetask-function):
(org-html-viewport):
* lisp/ox-latex.el (org-latex-caption-above):
(org-latex-prefer-user-labels):
(org-latex-subtitle-format):
(org-latex-hyperref-template):
(org-latex-footnote-defined-format):
(org-latex-images-centered):
(org-latex-default-figure-position):
(org-latex-text-markup-alist):
(org-latex-format-inlinetask-function):
(org-latex-custom-lang-environments):
(org-latex-compiler-file-string):
(org-latex-compiler):
(org-latex-bib-compiler):
(org-latex-logfiles-extensions):
(org-latex-known-warnings):
* lisp/ox-md.el (org-md-footnotes-section):
(org-md-footnote-format):
* lisp/ox-odt.el (org-odt-format-headline-function):
(org-odt-format-inlinetask-function):
(org-odt-inline-image-rules):
* lisp/ox-texinfo.el (org-texinfo-format-headline-function):
* lisp/ox.el (org-export-with-creator):
(org-export-with-title):
(org-export-with-broken-links):
(org-export-copy-to-kill-ring): Change :version from "25.2" to "26.1".

It looks like the goal is to sync Org 9.0.* (maint) with the Emacs
master branch (what will be version 26.1):
https://lists.gnu.org/archive/html/emacs-orgmode/2017-01/msg00558.html

8 weeks agoClean up spacing to pass Emacs's pre-commit check
Kyle Meyer [Thu, 26 Jan 2017 03:21:00 +0000 (22:21 -0500)]
Clean up spacing to pass Emacs's pre-commit check

Like 00dacdcc5 (2015-08-10), this is in preparation for syncing with
the Emacs repo.

8 weeks agoob-core: Move org-babel-local-file-name to org-compat.el
Kyle Meyer [Thu, 26 Jan 2017 02:34:58 +0000 (21:34 -0500)]
ob-core: Move org-babel-local-file-name to org-compat.el

* lisp/ob-core.el (org-babel-process-file-name): Move to
org-compat.el.
* lisp/org-compat.el (org-babel-local-file-name): Add compatibility
alias.

8 weeks agoBackport commit 22946702b from Emacs
Michael Albinus [Sun, 20 Nov 2016 15:29:47 +0000 (16:29 +0100)]
Backport commit 22946702b from Emacs

* lisp/ob-core.el (org-babel-local-file-name): Use `file-local-name'
when available.

22946702b4296c0e42e4baf6221e205b52d05cbf
Michael Albinus
Sun Nov 20 16:29:47 2016 +0100

8 weeks agoorg-clock: Correct file name in header
Kyle Meyer [Thu, 26 Jan 2017 02:20:14 +0000 (21:20 -0500)]
org-clock: Correct file name in header

* lisp/org-clock.el (org-clock-save): Use the variable
org-clock-persist-file as the file name in the header rather than
hardcoding it to "org-persist.el".

From the introduction of org-clock-save in 6ca205398 (Add clock
persistence., 2008-10-23), the hardcoded file name did not match the
value of org-clock-persist-file.

8 weeks agoorg-agenda: Fix docstring typo
Kyle Meyer [Thu, 26 Jan 2017 01:48:41 +0000 (20:48 -0500)]
org-agenda: Fix docstring typo

* lisp/org-agenda.el (org-agenda-custom-commands): Fix docstring typo.

8 weeks agoFix `org-schedule' with repeater
Nicolas Goaziou [Wed, 25 Jan 2017 22:27:33 +0000 (23:27 +0100)]
Fix `org-schedule' with repeater

* lisp/org.el (org--deadline-or-schedule): New function.
(org-schedule):
(org-deadline): Use new function.

* testing/lisp/test-org.el (test-org/deadline):
(test-org/schedule): New tests.

Reported-by: Michael Welle <mwe012008@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/111569>

8 weeks agoox-html: Remove <p> tag around block images when using HTML5
Nicolas Goaziou [Tue, 24 Jan 2017 21:22:47 +0000 (22:22 +0100)]
ox-html: Remove <p> tag around block images when using HTML5

* lisp/ox-html.el (org-html--wrap-image): Do not add a spurious <p>
  tag when using <figure> to mark images.

Reported-by: Matt Price <moptop99@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111568>

8 weeks agoFix `org-entry-get' with "TIMESTAMP" or "TIMESTAMP_IA" release_9.0.4
Nicolas Goaziou [Tue, 24 Jan 2017 21:01:19 +0000 (22:01 +0100)]
Fix `org-entry-get' with "TIMESTAMP" or "TIMESTAMP_IA"

* lisp/org.el (org-entry-properties): Fix special property value in
  current entry, do not leak into next entry.
* testing/lisp/test-org.el (test-org/entry-properties): Add test.

Reported-by: Samuel Wales <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111648>

8 weeks agoox-html: Fix missing space in coderef links
Nicolas Goaziou [Tue, 24 Jan 2017 17:19:23 +0000 (18:19 +0100)]
ox-html: Fix missing space in coderef links

* lisp/ox-html.el (org-html-link): Add missing space.

Reported-by: dmg <dmg@turingmachine.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/111625>

8 weeks agoorg-agenda: Fix `org-agenda-list-stuck-projects'
Nicolas Goaziou [Tue, 24 Jan 2017 17:14:39 +0000 (18:14 +0100)]
org-agenda: Fix `org-agenda-list-stuck-projects'

* lisp/org-agenda.el (org-agenda-list-stuck-projects): Fix thinko
  introduced in 7c3e0b0fd.

Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/111633>

2 months ago`org-entry-delete' can remove erroneous special properties
Nicolas Goaziou [Sun, 22 Jan 2017 13:28:02 +0000 (14:28 +0100)]
`org-entry-delete' can remove erroneous special properties

* lisp/org.el (org-entry-delete): Also remove erroneously inserted
  special properties in properties drawer.  Small refactoring.

* testing/lisp/test-org.el (test-org/entry-delete): Add test.

Reported-by: Michael Welle <mwe012008@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/111564>

2 months agoorg-agenda: TODO keywords are case sensitive in stuck projects
Nicolas Goaziou [Sun, 22 Jan 2017 12:53:20 +0000 (13:53 +0100)]
org-agenda: TODO keywords are case sensitive in stuck projects

* lisp/org-agenda.el (org-agenda-list-stuck-projects): Search for
  stuck projects is case sensitive since TODO keywords are.

Reported-by: Guy Mayraz <guy.mayraz@unimelb.edu.au>
<http://permalink.gmane.org/gmane.emacs.orgmode/111529>

2 months agoorg-info: Add tests
Nicolas Goaziou [Sat, 21 Jan 2017 12:56:58 +0000 (13:56 +0100)]
org-info: Add tests

* testing/lisp/test-org-info.el: New file.

2 months agoorg-info: Fix HTML export of info link
Chunyang Xu [Thu, 19 Jan 2017 17:51:38 +0000 (01:51 +0800)]
org-info: Fix HTML export of info link

* org-info.el (org-info--map-node-url): New function.
(org-info-export): Use the new function.

TINYCHANGE

2 months agoorg-element: Fix failing test
Nicolas Goaziou [Sat, 21 Jan 2017 10:58:42 +0000 (11:58 +0100)]
org-element: Fix failing test

* testing/lisp/test-org-element.el (test-org-element/cache): Fix
  failing test.

2 months agoox: Add some autoload cookies
Nicolas Goaziou [Sat, 21 Jan 2017 10:44:29 +0000 (11:44 +0100)]
ox: Add some autoload cookies

* lisp/ox.el (org-export-get-backend): Autoload.  Small refactoring.
(org-export-get-environment): Autoload.

2 months agoRename `org-latex--make-preamble' into `org-latex-make-preamble'
Nicolas Goaziou [Sat, 21 Jan 2017 10:31:25 +0000 (11:31 +0100)]
Rename `org-latex--make-preamble' into `org-latex-make-preamble'

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template):
* lisp/org.el (org-create-formula-image):
* lisp/ox-beamer.el (org-beamer-template):
* lisp/ox-latex.el (org-latex-make-preamble): Renamed from
  `org-latex--make-preamble'.  Add an optional argument.  Autoload
  function.
(org-latex-template): Use new function name.

2 months agoorg-element: Disable cache by default
Nicolas Goaziou [Sat, 21 Jan 2017 09:40:39 +0000 (10:40 +0100)]
org-element: Disable cache by default

* lisp/org-element.el (org-element-use-cache): Set default value to
  nil.

Using cache introduces Emacs' freezes under not well known
circumstances.  Until this is sorted out, this variable should be nil,
at least on "maint" branch.

2 months agoox-latex: Fix insertion of line breaks at invalid locations
Nicolas Goaziou [Wed, 18 Jan 2017 22:30:01 +0000 (23:30 +0100)]
ox-latex: Fix insertion of line breaks at invalid locations

* lisp/ox-latex.el (org-latex-clean-invalid-line-breaks): New function.

Reported-by: Takeshi Teshima <takeshi.diadochos@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/111313>

2 months agoorg-clone-subtree-with-time-shift: Fix SHIFT check
Kyle Meyer [Wed, 18 Jan 2017 01:46:06 +0000 (20:46 -0500)]
org-clone-subtree-with-time-shift: Fix SHIFT check

* lisp/org.el (org-clone-subtree-with-time-shift): Don't choke on a
  blank SHIFT argument.
* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add
  test.

This fixes a regression introduced by c31462f33.

2 months agoCorrect an org-clone-subtree-with-time-shift test
Kyle Meyer [Wed, 18 Jan 2017 01:59:49 +0000 (20:59 -0500)]
Correct an org-clone-subtree-with-time-shift test

* testing/lisp/test-org.el (test-org/clone-with-time-shift): Remove
  the SHIFT argument from a test case to match the intention of the
  test.

2 months agoorg-colview: Fix summary computation in agenda
Nicolas Goaziou [Tue, 17 Jan 2017 11:00:49 +0000 (12:00 +0100)]
org-colview: Fix summary computation in agenda

* lisp/org-colview.el (org-agenda-colview-summarize): Do not include
  already summarized values in current summary.

2 months agoorg-colview: Fix missing agenda summary if org-agenda-overriding-header is set
Nicolas Goaziou [Tue, 17 Jan 2017 10:35:05 +0000 (11:35 +0100)]
org-colview: Fix missing agenda summary if org-agenda-overriding-header is set

* lisp/org-colview.el (org-agenda-colview-summarize): Do not ignore
  first agenda line when displaying summaries.

This fixes a regression introduced in
279902ca4da4fe5f0ceff801a3aab51b942b42b7.

Reported-by: Matt Lundin <mdl@imapmail.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/111473>

2 months agoSmall fix
Nicolas Goaziou [Tue, 17 Jan 2017 08:59:53 +0000 (09:59 +0100)]
Small fix

* lisp/org.el (org-clone-subtree-with-time-shift): Handle nil shift
  case.