org-mode.git
9 hours agoox-latex: Add polyglossia support master
Rasmus [Wed, 8 Jul 2015 12:12:21 +0000]
ox-latex: Add polyglossia support

* ox-latex.el (org-latex-guess-polyglossia-language): New function.
  (org-latex-polyglossia-language-alist): New defconst.
  (org-latex-template): Apply new function.
* ox-koma-letter.el (org-koma-letter-template): Apply new function.

Suggested-by: Suvayu Ali <fatkasuvayu+linux@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98921>

36 hours agolisp/org.el (org-set-tags): Simplify further
Oleh Krehel [Tue, 28 Jul 2015 13:16:49 +0000]
lisp/org.el (org-set-tags): Simplify further

* lisp/org.el (org-set-tags): Use let* for c0 p0 c1 rpl di tc;
Restructure so that no check on c0 is needed; Don't return a useless
tags var from cond; Change and into an equivalent when.

36 hours agolisp/org.el (org-set-tags): Simplify the code
Oleh Krehel [Tue, 28 Jul 2015 13:06:25 +0000]
lisp/org.el (org-set-tags): Simplify the code

* lisp/org.el (org-set-tags): Prefer let* to multi-variable setq,
move c0 p0 c1 rpl di tc variables to a narrower let scope.

2 days agoorg.texi: ob-languages and multiple sessions support
tsdye [Mon, 27 Jul 2015 00:39:23 +0000]
org.texi: ob-languages and multiple sessions support

4 days agoox.el: Remove docstring for nonexistent argument
Ruben Maher [Sat, 25 Jul 2015 07:43:21 +0000]
ox.el: Remove docstring for nonexistent argument

* lisp/ox.el (org-export-output-file-name): Remove docstring for
  nonexistent argument VISIBLE-ONLY.

5 days agoUpdated org-drill to version 2.4.7.
Paul Sexton [Fri, 24 Jul 2015 22:35:44 +0000]
Updated org-drill to version 2.4.7.

7 days agoorg-table: Do not trim output of radio tables
Nicolas Goaziou [Wed, 22 Jul 2015 22:34:02 +0000]
org-table: Do not trim output of radio tables

* lisp/org-table.el (orgtbl-to-generic): Leading and trailing spaces
  could be significant, so do not trim result.  However, remove the
  final newline character.

Reported-by: lom pik <lompikvoila@gmail.com> <>
<http://permalink.gmane.org/gmane.emacs.orgmode/99171>

7 days agoFix `org-beginning-of-line'
Nicolas Goaziou [Wed, 22 Jul 2015 07:39:07 +0000]
Fix `org-beginning-of-line'

* lisp/org.el (org-beginning-of-line): Prevent an error when buffer
  contains only a single star.

* testing/lisp/test-org.el (test-org/beginning-of-line): Add tests.

7 days agoorg-mime: Fix a docstring
Nicolas Goaziou [Wed, 22 Jul 2015 07:36:06 +0000]
org-mime: Fix a docstring

* contrib/lisp/org-mime.el (org-mime-htmlize): Fix docstring.

8 days agoorg-mime.el: Fix org-mime-htmlize
Matt Price [Sat, 18 Jul 2015 20:14:33 +0000]
org-mime.el: Fix org-mime-htmlize

* org-mime.el (org-mime-htmlize): Make argument optional.

9 days agoSpeed improvement for `org-goto'
Nicolas Goaziou [Mon, 20 Jul 2015 09:40:44 +0000]
Speed improvement for `org-goto'

* lisp/org.el (org-goto-local-search-headings): Do not rely on
  `org-context' just to check if point is on a headline but not on its
  tags.

Reported-by: Gregor Zattler <telegraph@gmx.net> <w>
<http://permalink.gmane.org/gmane.emacs.orgmode/99111>

9 days agoox-html: Better customize for org-html-viewport
Rasmus [Mon, 20 Jul 2015 08:36:32 +0000]
ox-html: Better customize for org-html-viewport

* ox-html.el (org-html-viewport): Allow disabling via customize.

11 days agotest-org-clock: Fix failing test (again)
Nicolas Goaziou [Sat, 18 Jul 2015 16:58:12 +0000]
test-org-clock: Fix failing test (again)

* testing/lisp/test-org-clock.el (test-org-clock/clocktable): Update
  test.
(test-org-clock/clocktable1, test-org-clock/clocktable2,
test-org-clock/clocktable-until-now): Merge tests into the previous one.

11 days agoorg-colview: Do not silently modify buffer
Nicolas Goaziou [Sat, 18 Jul 2015 07:39:23 +0000]
org-colview: Do not silently modify buffer

* lisp/org-colview.el (org-columns-display-here): Do not modify buffer
  silently.  Small refactoring.

Reported-by: Nicolas Richard <youngfrog@members.fsf.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/98992>

12 days agotest-org-clock: Fix failing test
Nicolas Goaziou [Fri, 17 Jul 2015 22:39:43 +0000]
test-org-clock: Fix failing test

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

(test-org-clock/clocktable1):
(test-org-clock/clocktable2):
(test-org-clock/clocktable-until-now): Update tests.

13 days agoox-koma-letter: Add closing special heading
Rasmus [Wed, 15 Jul 2015 22:38:06 +0000]
ox-koma-letter: Add closing special heading

* ox-koma-letter.el (org-koma-letter-special-tags-in-letter):
  Add closing.
  (org-koma-letter-template): Potentially take closing value
  from closing spcical heading.
  (org-koma-letter--build-settings): Potentially take signature
  value from closing special heading.
  (org-koma-letter-closing):
  (org-koma-letter-signature): Update docstring.

Suggested-by: Suvayu Ali <fatkasuvayu+linux@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/99028>

13 days agoorg-closest-date: Don't accept canceled repeater
Kyle Meyer [Sat, 11 Jul 2015 02:34:24 +0000]
org-closest-date: Don't accept canceled repeater

* lisp/org.el (org-time-string-to-absolute): Don't pass a canceled
  repeater to org-closest-date.
  (org-closest-date): Raise an error when passed a canceled repeater.

Prevent arith-error from occurring when a canceled repeater is passed to
org-closest-date.

2 weeks agoorg-entities: Add frowny
Rasmus [Tue, 7 Jul 2015 14:45:05 +0000]
org-entities: Add frowny

* org-entities.el (org-entities): Add frowny.

2 weeks agoorg-entities: Change smile and frown
Rasmus [Tue, 7 Jul 2015 14:40:15 +0000]
org-entities: Change smile and frown

* org-entities.el (org-entities): Reinterpret smile and frown entities.

See: https://en.wikipedia.org/wiki/Cap_product,
     https://en.wikipedia.org/wiki/Cup_product

2 weeks agoUpdate ORG-NEWS wrt. ox-latex package removals
Rasmus [Tue, 7 Jul 2015 14:26:02 +0000]
Update ORG-NEWS wrt. ox-latex package removals

2 weeks agoorg.el: Remove wasysym LaTeX dependency
Rasmus [Tue, 7 Jul 2015 14:19:54 +0000]
org.el: Remove wasysym LaTeX dependency

2 weeks agoorg.el: Remove marvosym LaTeX dependency
Rasmus [Tue, 7 Jul 2015 14:14:39 +0000]
org.el: Remove marvosym LaTeX dependency

* org.el (org-latex-default-packages-alist): Remove marvosym.
* org-entities.el (org-entities): \EUR is now replaced with
  \texteuro.  Remove EURdig, EURhv, EURcr, EURtm.

2 weeks agoorg.el: Remove default LaTeX tolerance
Rasmus [Tue, 7 Jul 2015 14:08:13 +0000]
org.el: Remove default LaTeX tolerance

* org.el (org-latex-default-packages-alist): Remove fixed tolerance.

2 weeks agoox-html: Change footpara wrapper
Rasmus [Mon, 13 Jul 2015 09:10:57 +0000]
ox-html: Change footpara wrapper

* ox-html.el (org-html-footnote-section): Wrap footnote definitions
  content in a div rather than a p.  p is a bad element to use for a
  wrapper as it can neither contain other p elements nor tables.
  (org-html-style-default): Change .footpara to inline display style.

Reported-by: OSiUX <xuiso@osiux.com.ar>
<http://permalink.gmane.org/gmane.emacs.orgmode/98984>

2 weeks agocontrib/lisp/org-eww: Update copyright years
Marco Wahl [Sat, 11 Jul 2015 10:11:22 +0000]
contrib/lisp/org-eww: Update copyright years

2 weeks agocontrib/org-eww: Quote leading stars at kill
Marco Wahl [Sat, 11 Jul 2015 10:01:02 +0000]
contrib/org-eww: Quote leading stars at kill

* contrib/lisp/org-eww.el (org-eww-copy-for-org-mode): Lines starting
  with '*' get quoted at special kill.

This allows yanking content containing lines starting with a '*' without
changing the outline structure.

2 weeks agoorg-table: Fix table alignment
Nicolas Goaziou [Thu, 9 Jul 2015 15:53:33 +0000]
org-table: Fix table alignment

* lisp/org-table.el (org-table-align): Refactor function fix wrong
  alignment bug.
* lisp/org-compat.el (org-format-transports-properties-p): Remove
  variable.
* testing/lisp/test-org.el (test-org/fill-paragraph): Fix test

Reported-by: William Denton <wtd@pobox.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98901>

3 weeks agoox-deck: parse checkboxes properly
Matt Price [Tue, 7 Jul 2015 21:53:03 +0000]
ox-deck: parse checkboxes properly

*ox-deck.el
Previously, list items with checkboxes would not build properly. This
trivial and clumsy patch fixes that.

3 weeks agoAutoload orgtbl-exp-regexp
Rasmus [Tue, 7 Jul 2015 12:40:17 +0000]
Autoload orgtbl-exp-regexp

* org-table.el (orgtbl-exp-regexp): Add autoload cookie.

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

3 weeks agoorg-clock: Add `untilnow' time block
Nicolas Goaziou [Fri, 20 Feb 2015 10:35:16 +0000]
org-clock: Add `untilnow' time block

* lisp/org-clock.el (org-clock-special-range): Handle `untilnow'
  range.
(org-clock--oldest-date): New variable.
(org-clock-display-default-range): Add `untilnow' as valid range.  Use
new variable.
(org-clock-display): Offer `untilnow' as a possible range.

* doc/org.texi (The clock table): Document `untilnow'

* testing/lisp/test-org-clock.el (test-org-clock-clocktable-contents-at-point): Fix test
when called interactively.
(test-org-clock/clocktable):
(test-org-clock/clocktable1): Update tests.
(test-org-clock/clocktable-until-now): New test.

* etc/ORG-NEWS (title): Document new feature.

Suggested-by: Sébastien Vauban

3 weeks agoFix message text in `org-toggle-sticky-agenda'
Marco Wahl [Sat, 4 Jul 2015 07:37:16 +0000]
Fix message text in `org-toggle-sticky-agenda'

* org-agenda.el (org-toggle-sticky-agenda): Dropped the irritating 'was'
  from the message.

3 weeks agoUpdate keywords for defcustom `org-latex-default-packages-alist'
Nicolas Goaziou [Fri, 3 Jul 2015 19:20:53 +0000]
Update keywords for defcustom `org-latex-default-packages-alist'

* lisp/org.el (org-latex-default-packages-alist): Update keywords to
  reflect changes to default value in
  5e03133c478881a7e27f1bdb4777a09e303702be.

3 weeks agoob-shell: Add missing "sh" to "shell" conversions
Nicolas Goaziou [Fri, 3 Jul 2015 14:14:25 +0000]
ob-shell: Add missing "sh" to "shell" conversions

* lisp/ob-shell.el (org-babel-default-header-args:shell): Renamed from
`org-babel-default-header-args:sh'.
(org-babel-variable-assignments:shell): Renamed from
`org-babel-variable-assignments:sh'.
(org-babel-prep-session:shell): Renamed from
`org-babel-prep-session:sh'.  Apply renaming.
(org-babel-load-session:shell): Renamed from
`org-babel-load-session:sh'.  Apply renaming.

(org-babel-execute:shell): Apply renaming.

Reported-by: Sebastien Vauban
<http://permalink.gmane.org/gmane.emacs.orgmode/98859>

3 weeks agoFix property inheritance with extended values
Nicolas Goaziou [Fri, 3 Jul 2015 13:34:47 +0000]
Fix property inheritance with extended values

* lisp/org.el (org-property--local-values): New function.
(org-entry-get): Use new function.  Ignore global values when there is
no inheritance.
(org-entry-get-with-inheritance): Fix extended values, which do not
stop anymore inheritance search.

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

3 weeks agoRemove float from org-latex-default-packages-alist
Rasmus [Thu, 2 Jul 2015 11:49:30 +0000]
Remove float from org-latex-default-packages-alist

3 weeks agoUpdate minted documentation.
Rasmus [Thu, 2 Jul 2015 11:10:30 +0000]
Update minted documentation.

* ox-latex.el (org-latex-listings):
* org.texi (Literal examples): Update minted documentation.

3 weeks agoox-latex: Support captions for none-floats
Rasmus [Tue, 30 Jun 2015 23:12:42 +0000]
ox-latex: Support captions for none-floats

* ox-latex.el (org-latex--caption/label-string): Format
  nonfloating captions using the capt-of package.
  (org-latex--inline-image, org-latex-src-block)
  (org-latex--org-table): Allow none-float and caption.

3 weeks agoorg-element: Fix parsing recursive babel calls
Nicolas Goaziou [Thu, 2 Jul 2015 22:33:45 +0000]
org-element: Fix parsing recursive babel calls

* lisp/org-element.el (org-element-babel-call-parser): Fix parsing
  recursive babel calls.

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

3 weeks agoorg.texi: Fix un-exportable table
Nicolas Goaziou [Thu, 2 Jul 2015 07:20:42 +0000]
org.texi: Fix un-exportable table

* doc/org.texi (Column groups): Prevent "[4]" from being interpreted
  as a footnote reference so as to make table exportable.

Reported-by: Nicolas Richard <youngfrog@members.fsf.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/98816>

4 weeks agoox-html: Prefer custom ID for links in table of contents
Nicolas Goaziou [Wed, 1 Jul 2015 12:49:42 +0000]
ox-html: Prefer custom ID  for links in table of contents

* lisp/ox-html.el (org-html--format-toc-headline): Use custom ID when
  available.

Reported-by: Mitchel Humpherys <mitch.special@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98797>

4 weeks agoMerge branch 'maint'
Nicolas Goaziou [Wed, 1 Jul 2015 12:44:48 +0000]
Merge branch 'maint'

4 weeks agoorg-wikinodes: Fix fontification maint
Nicolas Goaziou [Sat, 7 Feb 2015 21:01:38 +0000]
org-wikinodes: Fix fontification

* contrib/lisp/org-wikinodes.el (org-wikinodes-add-to-font-lock-keywords):
  Properly install fontification mechanism.  Small refactoring.

Suggested-by: Scott Campbell <scott.campbell@uwaterloo.ca>
<http://permalink.gmane.org/gmane.emacs.orgmode/94683>

4 weeks agoUse inactive timestamps when re-scheduling or re-deadlining
Nicolas Goaziou [Mon, 29 Jun 2015 20:19:38 +0000]
Use inactive timestamps when re-scheduling or re-deadlining

* lisp/org.el (org-log-note-headings): Improve docstring.
(org-store-log-note): When re-scheduling or re-deadlining, convert old
or new timestamp to an inactive one so as to not clutter the agenda.

Reported-by:  Karl Voit <devnull@Karl-Voit.at>
<http://permalink.gmane.org/gmane.emacs.orgmode/93498>

4 weeks agoorg-element: Minimize false positives when matching a table.el table
Nicolas Goaziou [Mon, 29 Jun 2015 12:49:00 +0000]
org-element: Minimize false positives when matching a table.el table

* lisp/org-element.el (org-element--set-regexps): Improve regexp for
  table.el tables.

4 weeks agoBe more strict when matching an Org table
Nicolas Goaziou [Sun, 28 Jun 2015 21:32:38 +0000]
Be more strict when matching an Org table

* lisp/org.el (org-at-table-p): Do not allow "+" character at the
  beginning of a table row.

4 weeks agoFix `org-decrease-number-at-point'
Nicolas Goaziou [Sun, 28 Jun 2015 19:09:59 +0000]
Fix `org-decrease-number-at-point'

* lisp/org.el (org-decrease-number-at-point): Handle the case when INC
  is nil.

4 weeks agoorg-element: Fix table and table.el mix
Nicolas Goaziou [Sun, 28 Jun 2015 19:09:16 +0000]
org-element: Fix table and table.el mix

* lisp/org-element.el (org-element-table-parser): Properly parse an
  Org table followed by a line starting with a "+".

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

4 weeks agoSilence byte-compiler
Nicolas Goaziou [Sun, 28 Jun 2015 14:50:08 +0000]
Silence byte-compiler

4 weeks agoorg-table: Do not modify buffer needlessly when aligning table
Nicolas Goaziou [Sun, 28 Jun 2015 13:45:31 +0000]
org-table: Do not modify buffer needlessly when aligning table

* lisp/org-table.el (org-table-align): Compare new table with old one
  before replacing it.  Only replace modified lines.

4 weeks agoUse parser for `org-at-table-p' and al.
Nicolas Goaziou [Sun, 28 Jun 2015 12:42:07 +0000]
Use parser for `org-at-table-p' and al.

* lisp/org-table.el (org-table-begin):
(org-table-end): Refactor using parser.

* lisp/org.el (org-at-table-p):
(org-at-table.el-p): Refactor using parser.

(org-meta-return): Use `org-at-table-p'.

(org-at-table-hline-p):
(org-table-recognize-table.el): Small refactoring.

4 weeks agoorg-element: Remove dependency on `org-at-table-p'
Nicolas Goaziou [Sun, 28 Jun 2015 09:37:13 +0000]
org-element: Remove dependency on `org-at-table-p'

* lisp/org-element.el (org-element-table-parser): Do not call
  `org-at-table.el-p'.
(org-element--current-element): Do not call `org-at-table-p'.

4 weeks agoORG-NEWS: Fix wrong variable name
Nicolas Goaziou [Sun, 28 Jun 2015 08:37:07 +0000]
ORG-NEWS: Fix wrong variable name

4 weeks agoorg-table: Remove `org-table-relative-ref-may-cross-hline'
Nicolas Goaziou [Sun, 28 Jun 2015 08:28:53 +0000]
org-table: Remove `org-table-relative-ref-may-cross-hline'

* lisp/org-table.el (org-table-relative-ref-may-cross-hline): Remove
  variable.

* etc/ORG-NEWS: Document removal.

This variable was declared obsolete in August 2009.  See
2cc99fbb0a1c067235d7425031d8ffddc0668a53.

4 weeks agoorg-mobile: Tiny fix in creating index.org file
Sergey Gordienko [Fri, 26 Jun 2015 14:44:20 +0000]
org-mobile: Tiny fix in creating index.org file

* lisp/org-mobile.el (org-mobile-create-index-file):
Eliminate cloning of `#+READONLY' property in the `index.org' file.
A sublists of `org-todo-keywords' don't need to contain the `|'.

TINYCHANGE

4 weeks agoorg-add-planning-info: Improve deletion handling
Kyle Meyer [Sat, 27 Jun 2015 01:33:34 +0000]
org-add-planning-info: Improve deletion handling

* lisp/org.el (org-add-planning-info): Reset point before each
  planning entry search.  Clean up extra spaces.

* testing/lisp/test-org.el (test-org/add-planning-info): Add tests.

- Reposition save-excursion call to reset point every dolist
  iteration.  Otherwise, the order of the entries to be removed
  matters, and a call like

      (org-add-planning-info nil nil 'scheduled 'deadline)

  on

      DEADLINE: <2015-06-26 Fri> SCHEDULED: <2015-06-26 Fri>

  will fail to remove the deadline entry.

- Delete leading white space even when at the beginning of the line so
  that, when org-adapt-indentation is nil, a space is not inserted
  when removing the leading planning info entry.

  This prevents headings with repeating entries like

      SCHEDULED: <2015-06-26 Fri +1w>

  from being closed and recycled with an extra space in front of
  SCHEDULED.

- Add leading white space to the planning info entry regexp to prevent
  leftover white space when removing entries other than the first
  entry.

4 weeks agoox-latex: Fix backslash escaping in plain text
Nicolas Goaziou [Fri, 26 Jun 2015 07:50:22 +0000]
ox-latex: Fix backslash escaping in plain text

* lisp/ox-latex.el (org-latex-plain-text): Fix backslash escaping.

4 weeks agoox: Properly fix internal regexps after each buffer change
Nicolas Goaziou [Tue, 23 Jun 2015 21:41:30 +0000]
ox: Properly fix internal regexps after each buffer change

* lisp/ox.el (org-export-as): Refresh regexps before executing Babel
  code, running last hook and parsing buffer so precomputed regular
  expressions are correct at each of these steps.

This is not necessary before macros since those are not expected to
rely on computed expression.  Actually, advanced macros, i.e. with
"(eval ...)" syntax, could make use of them, but a Babel snippet is
more likely in this situation.

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

4 weeks agoorg-capture: Place capture buffer in other window
Eric S Fraga [Thu, 25 Jun 2015 07:58:34 +0000]
org-capture: Place capture buffer in other window

* org-capture.el (org-capture-fill-template): The capture template
  buffer will be displayed in another window, keeping original window
  visible if appropriate.

5 weeks agolisp/org-agenda.el: Fix non-persistent category filters in sticky agenda
Grégoire Jadi [Wed, 24 Jun 2015 07:50:36 +0000]
lisp/org-agenda.el: Fix non-persistent category filters in sticky agenda

* lisp/org-agenda.el (org-agenda-prepare): Use the correct key for
  category filter.

`org-agenda-prepare-window' uses 'cat whereas `org-agenda-prepare' used 'car.

5 weeks agolisp/org-agenda.el: Fix non-persistent filters when refreshing sticky agenda
Grégoire Jadi [Wed, 24 Jun 2015 07:51:34 +0000]
lisp/org-agenda.el: Fix non-persistent filters when refreshing sticky agenda

* lisp/org-agenda.el (org-agenda-prepare): Fix non-persistent filters when refreshing sticky agenda

When a sticky agenda is buried, then reviving and refreshing, existing
filters are ignored even when org-agenda-persistent-filter is `t'.

Reported and fixed by Daniel Borchmann

5 weeks agoorg-contacts.el: Catch `nextfile' in `org-contacts-db'
Philippe Crama [Wed, 10 Jun 2015 09:25:46 +0000]
org-contacts.el: Catch `nextfile' in `org-contacts-db'

* org-contacts.el (org-contacts-db): Catch `nextfile'.

When a file in the list returned by the `org-contacts-files' function
doesn't exist and the user selects the option to attempt to remove it
from the `org-agenda-files' list, 'nextfile is thrown.  Catch it and
skip processing that file instead of failing.

TINYCHANGE

5 weeks agoorg.texi: Fix the :post example
Alan Schmitt [Tue, 23 Jun 2015 20:36:26 +0000]
org.texi: Fix the :post example

* doc/org.texi (post): Add a missing colon in the example.

5 weeks agoox: Handle subtree properties referring to multiple options
Nicolas Goaziou [Tue, 23 Jun 2015 20:09:43 +0000]
ox: Handle subtree properties referring to multiple options

* lisp/ox.el (org-export--get-subtree-options): When multiple options
  refer to the same keyword, and, as a consequence, to the same export
  property, make sure all of them get updated.
* testing/lisp/test-ox.el (test-org-export/get-subtree-options): Add
  test.

Reported-by: Myles English <mylesenglish@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98583>

5 weeks agoox-koma-letter: Parse more keywords
Rasmus [Thu, 18 Jun 2015 08:34:17 +0000]
ox-koma-letter: Parse more keywords

* ox-koma-letter.el (koma-letter): Parse author, phone-number,
  opening, closing and signature.
  (org-koma-letter-template): parse closing.

5 weeks agoox-latex: Remove useless call to `org-latex--wrap-latex-math-block'
Nicolas Goaziou [Tue, 23 Jun 2015 13:31:09 +0000]
ox-latex: Remove useless call to `org-latex--wrap-latex-math-block'

* lisp/ox-latex.el (org-latex-footnote-reference): Remove call to
  `org-latex--wrap-latex-math-block' since definitions are already
  taken care of at the filter parse tree level, since
  47265b31cab8d7c019cbd144a0a46657ab33bf1d.

5 weeks agoox: Add external footnotes definitions in parse tree
Nicolas Goaziou [Tue, 23 Jun 2015 13:28:01 +0000]
ox: Add external footnotes definitions in parse tree

* lisp/ox.el (org-export-get-environment):
(org-export-collect-tree-properties):
Remove :footnote-definition-alist property.
(org-export-get-footnote-definition): Apply removal of property.

(org-export--merge-external-footnote-definitions): New function.
(org-export-as): Use new function.

* testing/lisp/test-ox.el (test-org-export/footnotes): Update tests.

This change allows to have all footnote definitions within the parse
tree, so they can be reached with, e.g., a parse tree filter.

5 weeks agoorg-element: Implement `org-element-create'
Nicolas Goaziou [Tue, 23 Jun 2015 09:18:36 +0000]
org-element: Implement `org-element-create'

* lisp/org-element.el (org-element-create): New function.
(org-element-adopt-elements): Small refactoring.

5 weeks agoorg.texi: Remove reference to unexistent filter
Nicolas Goaziou [Tue, 23 Jun 2015 06:50:45 +0000]
org.texi: Remove reference to unexistent filter

* doc/org.texi (Advanced configuration): Remove reference to
  quote-section filter.

5 weeks agoox-latex: Introduce :environment attribute for example blocks
Nicolas Goaziou [Tue, 23 Jun 2015 06:43:07 +0000]
ox-latex: Introduce :environment attribute for example blocks

* lisp/ox-latex.el (org-latex-example-block): Implement :environment
  attribute, which allows to override "verbatim" environment.
* doc/org.texi (@LaTeX{} specific attributes): Document change.

5 weeks agoorg-clone-subtree-with-time-shift: Accept 0 clones
Kyle Meyer [Mon, 22 Jun 2015 01:46:54 +0000]
org-clone-subtree-with-time-shift: Accept 0 clones

* lisp/org.el (org-clone-subtree-with-time-shift): Allow argument
  specifying number of clones to be 0.

* testing/lisp/test-org.el (test-org/clone-with-time-shift): Add
  tests.

This makes it possible to clone a subtree with a repeating timestamp
so that the repeater is removed from the original subtree and a single
shifted, repeating clone is created.  If the original subtree does not
have a repeating timestamp, no clones will be made.

5 weeks agoTiny speed-up for `org-entry-properties'
Nicolas Goaziou [Mon, 22 Jun 2015 08:01:51 +0000]
Tiny speed-up for `org-entry-properties'

* lisp/org.el (org-entry-properties): Tiny speed-up.
* testing/lisp/test-org.el (test-org/entry-properties): Add test.

5 weeks agoorg.texi: Fix typo
myq larson [Sat, 20 Jun 2015 22:00:04 +0000]
org.texi: Fix typo

* doc/org.texi (Timestamps): Fix typo.

TINYCHANGE

5 weeks agoox-koma-letter: Fix a docstring
Nicolas Goaziou [Thu, 18 Jun 2015 13:31:09 +0000]
ox-koma-letter: Fix a docstring

* contrib/lisp/ox-koma-letter.el (org-koma-letter--special-contents-as-macro):
  Fix docstring.  Tiny refactoring.

5 weeks agoox: Tiny refactoring
Nicolas Goaziou [Thu, 18 Jun 2015 13:21:02 +0000]
ox: Tiny refactoring

* lisp/ox.el (org-export-replace-region-by): Refactor.

6 weeks agoob-core: Small refactoring
Nicolas Goaziou [Wed, 17 Jun 2015 09:55:57 +0000]
ob-core: Small refactoring

* lisp/ob-core.el (org-babel-params-from-properties): Refactor code to
  avoid nesting `mapcar' calls.

6 weeks agoox: Simplify fuzzy link matching
Nicolas Goaziou [Tue, 16 Jun 2015 21:05:29 +0000]
ox: Simplify fuzzy link matching

* lisp/ox.el (org-export-resolve-fuzzy-link): When a fuzzy link
  matches more than one headline, prefer the first one in the parse
  tree.

* testing/lisp/test-ox.el (test-org-export/fuzzy-link): Remove a test.

This behaviour is consistent with `org-open-at-point'.  Also, it
allows to cache destinations.

6 weeks agoSanitize link encoding
Nicolas Goaziou [Tue, 16 Jun 2015 20:11:16 +0000]
Sanitize link encoding

* lisp/org.el (org-store-link): Improve docstring.
(org-make-link-string): Escape internal links only when absolutely
necessary.
(org-link-escape-chars): Add percent character.
(org-link-escape-chars-browser): Make space character more visible.
(org-link-escape): Refactor code.
(org-display-inline-images): Properly unescape path before creating
the link.
(org-extract-attributes): Remove function.

* lisp/ox.el (org-export-resolve-fuzzy-link): Decode path before
  resolving link.

* testing/lisp/test-ox.el (test-org-export/resolve-fuzzy-link): Add
  test.

6 weeks agoox-beamer: Wrap labels in braces
Suvayu Ali [Tue, 16 Jun 2015 19:04:21 +0000]
ox-beamer: Wrap labels in braces

* ox-beamer.el (org-beamer--get-label): Wrap labels in braces.

The colon in the label name causes an argument parsing problem, for
more see <http://tex.stackexchange.com/q/250640/4416>.

6 weeks agoSmall refactoring
Nicolas Goaziou [Tue, 16 Jun 2015 14:51:53 +0000]
Small refactoring

* lisp/org.el (org-link-unescape): Refactor code.

6 weeks agoox-beamer: Add %R and %O placeholders for extra environments
Nicolas Goaziou [Tue, 16 Jun 2015 13:26:47 +0000]
ox-beamer: Add %R and %O placeholders for extra environments

* lisp/ox-beamer.el (org-beamer-environments-extra): Handle "%R" and
  "%O" placeholders.
(org-beamer--format-block): Fill template with appropriate values for
placeholders above.

Suggested-by: Suvayu Ali <fatkasuvayu+linux@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98361>

6 weeks agoox-beamer: Fix labels to headlines
Nicolas Goaziou [Tue, 16 Jun 2015 12:00:36 +0000]
ox-beamer: Fix labels to headlines

* lisp/ox-beamer.el (org-beamer--get-label): Use headline's internal
  reference instead of using numbers.

6 weeks agoob-tangle: Silence byte-compiler
Nicolas Goaziou [Mon, 15 Jun 2015 22:09:20 +0000]
ob-tangle: Silence byte-compiler

6 weeks agoob-tangle: Small refactoring
Nicolas Goaziou [Mon, 15 Jun 2015 19:38:14 +0000]
ob-tangle: Small refactoring

* lisp/ob-tangle.el (org-babel-tangle-collect-blocks): Refactor.

6 weeks agoox-koma-letter: Fix void `with-title' variable
Nicolas Goaziou [Mon, 15 Jun 2015 16:49:24 +0000]
ox-koma-letter: Fix void `with-title' variable

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Let-bind
  `with-title'.

Reported-by: Thomas Holst <Thomas_Holst@gmx.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/98349>

6 weeks agoorg-element: Fix cache bug for orphaned elements
Nicolas Goaziou [Sun, 14 Jun 2015 12:52:04 +0000]
org-element: Fix cache bug for orphaned elements

* lisp/org-element.el (org-element--cache-sync-requests): Remove a now
  useless element from requests
(org-element--cache-submit-request): Apply change to sync request.
(org-element--cache-process-request): Apply change to sync requests.
Fix removal of orphaned elements, i.e., elements not affected by
a change, but with an ancestor that was.

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

Reported-by: Suvayu Ali <fatkasuvayu+linux@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98260>

6 weeks agoox-koma-letter: Fix missing \begin{document}
Nicolas Goaziou [Thu, 11 Jun 2015 20:44:39 +0000]
ox-koma-letter: Fix missing \begin{document}

* contrib/lisp/ox-koma-letter.el (org-koma-letter-template): Insert
  "\begin{document}" even if :with-title and :with-subject are both
  nil.

Reported-by: Dieter Faulbaum <mail@faulbaum.in-berlin.de>

6 weeks agoox-koma-letter: Fix typo in docstring
Nicolas Goaziou [Thu, 11 Jun 2015 20:44:15 +0000]
ox-koma-letter: Fix typo in docstring

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

7 weeks agoox-html: Prefer custom ID over internal references for links to headlines
Nicolas Goaziou [Wed, 10 Jun 2015 11:31:16 +0000]
ox-html: Prefer custom ID over internal references for links to headlines

* lisp/ox-html.el (org-html-link): Use custom ID if present instead of
  internal reference.

Reported-by: Oleh Krehel <ohwoeowho@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98259>

7 weeks agoorg-mac-link.el: Reduce Outlook App confusion
Mike McLean [Tue, 9 Jun 2015 20:09:35 +0000]
org-mac-link.el: Reduce Outlook App confusion

* org-mac-link.el (org-mac-outlook-message-open, org-as-get-selected-outlook-mail): Specify Microsoft Outlook.app non-ambiguously

If the user has:
- a virtual solution (Parallels, etc.)
- with Office for PC installed
- and configured to expose WinTel applications to the Macintosh Finder

The AppleScript commands may try to select the WinTel version of
"Microsoft Outlook". This—obviously—doesn’t work. By adding the Mac
~.app~ file extension and path, we reduce this confusion and more
reliably call the Macintosh version of Outlook.

TINYCHANGE

Signed-off-by: Alan Schmitt <alan.schmitt@polytechnique.org>

7 weeks agoox-html: Reorder output of meta data in head
Arun Persaud [Tue, 9 Jun 2015 04:48:26 +0000]
ox-html: Reorder output of meta data in head

* lisp/ox-html.el (org-html--build-meta-info): Charset and viewport
  meta data should come first in `head'.  Only reordered output, no
  other code changes.

See, for example:
  - https://code.google.com/p/doctype-mirror/wiki/MetaCharsetAttribute
  - http://getbootstrap.com/getting-started/#template

TINYCHANGE

7 weeks agoorg-list: Silence byte-compiler
Nicolas Goaziou [Tue, 9 Jun 2015 15:14:13 +0000]
org-list: Silence byte-compiler

7 weeks agoorg-list: Fix checkbox update with inlinetasks
Nicolas Goaziou [Tue, 9 Jun 2015 15:06:17 +0000]
org-list: Fix checkbox update with inlinetasks

* lisp/org-list.el (org-update-checkbox-count): Change algorithm.  Use
  Element parser.

* testing/lisp/test-org-list.el (test-org-list/update-checkbox-count):
  New test.

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

7 weeks agoorg-element: Fix structure for list elements containing a drawer
Nicolas Goaziou [Tue, 9 Jun 2015 15:05:21 +0000]
org-element: Fix structure for list elements containing a drawer

* lisp/org-element.el (org-element--list-struct): Fix return value
  when a drawer is found within an item.

7 weeks agoorg-table: Fix formulas with relative ranges in current row
Nicolas Goaziou [Tue, 9 Jun 2015 12:53:18 +0000]
org-table: Fix formulas with relative ranges in current row

* lisp/org-table.el (org-table-eval-formula): Fix formulas with
  relative ranges in current row.

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

7 weeks agoox-latex: Fix b8ade2e79e92dad10f2b045bc55fbeaf133e5598
Nicolas Goaziou [Sun, 7 Jun 2015 13:17:52 +0000]
ox-latex: Fix b8ade2e79e92dad10f2b045bc55fbeaf133e5598

* lisp/ox-latex.el (org-latex-inline-src-block): Fix
  b8ade2e79e92dad10f2b045bc55fbeaf133e5598.

7 weeks agoox-latex: Do not use \verb command anymore
Nicolas Goaziou [Sat, 6 Jun 2015 23:13:51 +0000]
ox-latex: Do not use \verb command anymore

* lisp/ox-latex.el (org-latex-text-markup-alist): Remove \verb from
  default value.
(org-latex--protect-text): New function.
(org-latex--text-markup):
(org-latex-inline-src-block): Use new function.

Suggested-by: Titus von der Malsburg <malsburg@posteo.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/98000>

7 weeks agoFix 1a7364177046b8a57ade0aeb9f52bacfc0b8b088
Nicolas Goaziou [Sat, 6 Jun 2015 22:38:58 +0000]
Fix 1a7364177046b8a57ade0aeb9f52bacfc0b8b088

* lisp/org.el (org-icompleting-read): Let `completing-read' or
  equivalent sort out type of completion.
(org-olpath-completing-read): Revert partially
1a7364177046b8a57ade0aeb9f52bacfc0b8b088.

7 weeks agoORG-NEWS: Document changes to `org-timer-default-timer'
Nicolas Goaziou [Sat, 6 Jun 2015 07:30:07 +0000]
ORG-NEWS: Document changes to `org-timer-default-timer'

7 weeks agoFix logging in indirect buffers
Nicolas Goaziou [Sat, 6 Jun 2015 07:06:21 +0000]
Fix logging in indirect buffers

* lisp/org.el (org-store-log-note): Ensure insertion point is
  available in the narrowed part of the current buffer.

Reported-by: Mark Edgington <edgimar@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98152>

7 weeks agoRevert "ox-html.el (org-html-fontify-code): Possibly deactivate fci-mode"
Nicolas Goaziou [Fri, 5 Jun 2015 07:00:39 +0000]
Revert "ox-html.el (org-html-fontify-code): Possibly deactivate fci-mode"

This reverts commit 44aaaad8c0e347fdfd724090d598ad3a9153058c.

See <http://permalink.gmane.org/gmane.emacs.orgmode/98153>.