org-mode.git
3 hours agoorg-element: Elements can accept multiple secondary strings master
Nicolas Goaziou [Sun, 1 Mar 2015 16:03:02 +0000]
org-element: Elements can accept multiple secondary strings

* lisp/org-element.el (org-element-secondary-value-alist): Turn
  secondary properties into a list.
(org-element-secondary-p, org-element-map): Apply changes to variable
above.

43 hours agoorg-agenda: Nicer error message when accessing killed buffer
Nicolas Richard [Fri, 27 Feb 2015 12:16:36 +0000]
org-agenda: Nicer error message when accessing killed buffer

* lisp/org-agenda.el (org-agenda-switch-to): Throw an error if marker
  points to no buffer.

43 hours agoorg-clock: Fix ignored integer values for `org-clock-into-drawer'
Nicolas Goaziou [Fri, 27 Feb 2015 23:43:37 +0000]
org-clock: Fix ignored integer values for `org-clock-into-drawer'

* lisp/org-clock.el (org-clock-into-drawer): Fix ignored integer
  values.

Reported-by: Rainer Stengele <rainer.stengele@online.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/95504>

45 hours agoorg-index.el version 4.1.0
Marc-Oliver Ihm [Fri, 27 Feb 2015 22:00:51 +0000]
org-index.el version 4.1.0

2 days agoFix void `orgtbl-line-start-regexp' in orgstruct++ mode
Nicolas Goaziou [Fri, 27 Feb 2015 17:25:03 +0000]
Fix void `orgtbl-line-start-regexp' in orgstruct++ mode

* lisp/org.el (org-adaptive-fill-function): Use
  `org-table-line-regexp' instead of `orgtbl-line-start-regexp', which
  may not be defined.

Reported-by: Eric Abrahamsen <eric@ericabrahamsen.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/95500>

2 days agoox-html: Use upstream MathJax CDN
Rasmus [Mon, 16 Feb 2015 01:04:02 +0000]
ox-html: Use upstream MathJax CDN

* ox-html.el (org-html-mathjax-options): Add multlinewidth,
  autonumber, tagindent, font, linebreaks and tagside.  Remove MathML.
  Change default indent to correspond to upstream default.  Change
  default MathJax path to point to upstream CDN.
  (org-html--build-mathjax-config): Remove MathML-related parts.
  (org-html-mathjax-template): Simplifiy template.
* org.texi (@LaTeX{} fragments), (Math formatting in HTML export):
  Reflect change in default CDN.
* ORG-NEWS: Document changes.

2 days agoox: Small refactoring
Nicolas Goaziou [Fri, 27 Feb 2015 11:06:37 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-collect-footnote-definitions): Small
  refactoring.

2 days agoox: Small refactoring
Nicolas Goaziou [Fri, 27 Feb 2015 10:53:24 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-prune-tree): Small refactoring.

2 days agoorg-element: Fix docstring
Nicolas Goaziou [Fri, 27 Feb 2015 10:53:00 +0000]
org-element: Fix docstring

* lisp/org-element.el (org-element-set-contents): Fix docstring.

2 days agoox-odt: Small refactoring
Nicolas Goaziou [Thu, 26 Feb 2015 20:39:05 +0000]
ox-odt: Small refactoring

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Small
  refactoring.

2 days agoorg-index.el: release 4.0.0
Marc-Oliver Ihm [Thu, 26 Feb 2015 19:59:26 +0000]
org-index.el: release 4.0.0

3 days agoox-odt: Small fix
Rasmus [Thu, 26 Feb 2015 15:29:59 +0000]
ox-odt: Small fix

* ox-odt.el (org-odt--translate-latex-fragments): Fix small
  bug in cebdec663d63d6971c20cb99e5502e646ee12187.

3 days agoorg.el: More general TeX to MathML convert support
Rasmus [Wed, 25 Feb 2015 12:31:52 +0000]
org.el: More general TeX to MathML convert support

* org.el (org-latex-to-mathml-convert-command): Work with
  other converters than mathtoweb.
  (org-latex-to-mathml-convert-command): Add possibility of
  passing latex-fragment.
* org.texi (Working with @LaTeX{} math snippets): Show LaTeXML config.

3 days agoox-odt: Remove unnecessary space when no date
Rasmus [Tue, 24 Feb 2015 14:13:36 +0000]
ox-odt: Remove unnecessary space when no date

* ox-odt.el (org-odt-template): Remove unnecessary space in header
  when no date.

3 days agoox-odt: Small fix
Nicolas Goaziou [Thu, 26 Feb 2015 14:45:24 +0000]
ox-odt: Small fix

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Fix bug
  introduced in cebdec663d63d6971c20cb99e5502e646ee12187.

3 days agoox-odt: Preserve white space when converting LaTeX code
Nicolas Goaziou [Thu, 26 Feb 2015 14:41:35 +0000]
ox-odt: Preserve white space when converting LaTeX code

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Preserve white
  space when converting LaTeX code.

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

3 days agoorg-macs: Fix `org-string-nw-p'
Nicolas Goaziou [Thu, 26 Feb 2015 14:14:40 +0000]
org-macs: Fix `org-string-nw-p'

* lisp/org-macs.el (org-string-nw-p): Return value doesn't depend
  anymore on the current syntax table.

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

3 days agoSmall fix
Nicolas Goaziou [Thu, 26 Feb 2015 08:06:13 +0000]
Small fix

* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Return a non-nil
  value in any case.  This fixes
  37d2a2d1cfa58c5334eec4f7fbabc4a2f313ab33.

3 days agoPrevent invisible characters in keywords
Nicolas Goaziou [Wed, 25 Feb 2015 23:21:53 +0000]
Prevent invisible characters in keywords

* lisp/org.el (org-fontify-meta-lines-and-blocks-1): Forbid invisible
  characters (e.g. bracket links) in all keywords but TITLE, DATE,
  AUTHOR, CAPTION and EMAIL.  Also remove back-end specific keywords,
  which are treated just like any other regular keyword.

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

3 days agoox-odt: Fix handling math snippets in captions
Nicolas Goaziou [Wed, 25 Feb 2015 22:45:15 +0000]
ox-odt: Fix handling math snippets in captions

* lisp/ox-odt.el (org-odt--translate-latex-fragments): Fix handling
  math snippets in captions.

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

4 days agoob-core: Improper lists are returned in fixed-width areas
Nicolas Goaziou [Wed, 25 Feb 2015 13:41:13 +0000]
ob-core: Improper lists are returned in fixed-width areas

* lisp/ob-core.el (org-babel-insert-result): Improper lists are
  removeable.

When a list cannot be turned into a table, return it in a fixed-width
area so that it can be removed.

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

5 days agoox: Fix custom link handling in anonymous back-end
Nicolas Goaziou [Tue, 24 Feb 2015 14:54:01 +0000]
ox: Fix custom link handling in anonymous back-end

* lisp/ox.el (org-export-custom-protocol-maybe): Change signature.
* contrib/lisp/ox-groff.el (org-groff-link):
* lisp/ox-ascii.el (org-ascii-link):
* lisp/ox-beamer.el (org-beamer-link):
* lisp/ox-html.el (org-html-link):
* lisp/ox-latex.el (org-latex-link):
* lisp/ox-man.el (org-man-link):
* lisp/ox-md.el (org-md-link):
* lisp/ox-odt.el (org-odt-link):
* lisp/ox-org.el (org-org-link):
* lisp/ox-texinfo.el (org-texinfo-link): Apply signature change.

* testing/lisp/test-ox.el (test-org-export/custom-protocol-maybe):
  Update test.

Provide explicitly back-end used instead of guessing it from INFO
channel as an anonymous back-end could be used, masquerading the real
one.

Reported-by: Christian Moe <mail@christianmoe.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/95402>

6 days agoob-core: Fix inserting improper lists
Nicolas Goaziou [Mon, 23 Feb 2015 17:37:37 +0000]
ob-core: Fix inserting improper lists

* lisp/ob-core.el (org-babel-insert-result): Fix output when result is
  an improper list, which cannot be turned into a table.

* testing/lisp/test-ob.el (test-ob/org-babel-insert-result--improper-lists):
  New test.

Reported-by: Daniele Pizzolli <dan@toel.it>
<http://permalink.gmane.org/gmane.emacs.orgmode/95348>

7 days agoorg-habit: Fix 6652baa39db26df8a8ac5dbbe40f3de91bf1a6b1
Nicolas Goaziou [Sun, 22 Feb 2015 16:26:21 +0000]
org-habit: Fix 6652baa39db26df8a8ac5dbbe40f3de91bf1a6b1

* lisp/org-habit.el (org-habit-parse-todo): Fix regexp introduced in
  6652baa39db26df8a8ac5dbbe40f3de91bf1a6b1.

7 days agoorg-habit: Small refactoring
Nicolas Goaziou [Sun, 22 Feb 2015 16:12:56 +0000]
org-habit: Small refactoring

* lisp/org-habit.el (org-habit-parse-todo): Small refactoring.

7 days agoSimplify `org-show-context' configuration
Nicolas Goaziou [Mon, 16 Feb 2015 20:43:35 +0000]
Simplify `org-show-context' configuration

* lisp/org.el (org-show-context-detail): New variable.
(org-context-choice, org-show-following-heading, org-show-siblings,
org-show-entry-below, org-show-hierarchy-above): Remove variables.
(org-show-set-visibility): New function.
(org-convert-to-oddeven-levels, org-get-location, org-show-context,
org-reveal): Use new function.
(org-link-search): Update docstring.

* lisp/org-agenda.el (org-agenda-cycle-show): Use new function.
(org-agenda-show): Replace missing variable.

* testing/lisp/test-org.el (test-org/show-set-visibility): New test.

* doc/org.texi (Sparse trees):
* doc/orgguide.texi (Sparse trees): Document changes.

* etc/ORG-NEWS: Signal changes.

Configuration of `org-show-context' is done with a single variable
offering six different views, instead of four variables for a total
of 16 configurations.

7 days agoSmall fix
Nicolas Goaziou [Sun, 22 Feb 2015 10:41:01 +0000]
Small fix

* lisp/org.el (org-mode-flyspell-verify): Small fix.

8 days agoAdd documentation regarding reserved keywords in @node Headlines
Arni Magnusson [Sat, 21 Feb 2015 16:08:43 +0000]
Add documentation regarding reserved keywords in @node Headlines

8 days agoox: Allow to narrow scope in footnotes API
Nicolas Goaziou [Sat, 21 Feb 2015 08:34:15 +0000]
ox: Allow to narrow scope in footnotes API

* lisp/ox.el (org-export--footnote-reference-map,
  org-export-collect-footnote-definitions,
  org-export-footnote-first-reference-p,
  org-export-get-footnote-number): Allow to specify scope, through
  a new optional argument.

* lisp/ox-odt.el (org-odt-footnote-reference): Apply API change.

* testing/lisp/test-ox.el (test-org-export/footnote-first-reference-p,
  test-org-export/get-footnote-number,
  test-org-export/collect-footnote-definitions): Update tests.

9 days agoox: Small refactoring
Nicolas Goaziou [Fri, 20 Feb 2015 17:50:27 +0000]
ox: Small refactoring

* lisp/ox.el (org-export-document-properties): New variable.
(org-export-prune-tree, org-export-remove-uninterpreted-data): Use new variable.

9 days agoox: Change `org-export-collect-footnote-definitions' signature
Nicolas Goaziou [Fri, 20 Feb 2015 17:06:23 +0000]
ox: Change `org-export-collect-footnote-definitions' signature

* lisp/ox.el (org-export-collect-footnote-definitions): Refactor
  code.  Change signature.

* testing/lisp/test-ox.el (test-org-export/collect-footnote-definitions):
  New test.
(test-org-export/footnotes): Update test.

* lisp/ox-ascii.el (org-ascii-inner-template):
* lisp/ox-html.el (org-html-footnote-section): Apply signature change.

* etc/ORG-NEWS: Document signature change.

This change makes `org-export-collect-footnote-definitions' compatible
with `org-export-get-footnote-number' and
`org-export-footnote-first-reference-p'.

9 days agoorg-habit: Update copyright year
Nicolas Goaziou [Fri, 20 Feb 2015 15:25:08 +0000]
org-habit: Update copyright year

9 days agoorg-habit: Extend tracking to done notes
Nicolas Goaziou [Fri, 20 Feb 2015 09:45:59 +0000]
org-habit: Extend tracking to done notes

* lisp/org-habit.el (org-habit-parse-todo): Also find timestamps when
  `org-log-done' is `note'.

Reported-by: Andrew Francis Swann <swann@math.au.dk>

9 days agoorg.el: Backwards compatibility
Rasmus [Fri, 20 Feb 2015 00:35:34 +0000]
org.el: Backwards compatibility

* org.el (org-cdlatex-environment-indent): Remove cl-prefixes for
  compatibility.

9 days agoFix bug introduced in 438d75c
Rasmus [Thu, 19 Feb 2015 23:05:56 +0000]
Fix bug introduced in 438d75c

* ox-latex.el (org-latex--format-spec): Fix bug.

9 days agoox-latex: Format-spec for hyperref and title
Rasmus [Wed, 11 Feb 2015 01:18:09 +0000]
ox-latex: Format-spec for hyperref and title

* ox-latex.el (org-latex--format-spec): New function with format-specs.
  (org-latex-template): Use org-latex--format-spec.
  (org-latex-hyperref-template): New defaults and use
  org-latex--format-spec.
  (org-latex-title-command): Use org-latex--format-spec.
* ORG-NEWS: Mention change.

9 days agoorg.el: Change indention for cdlatex environments
Rasmus [Tue, 10 Feb 2015 11:02:59 +0000]
org.el: Change indention for cdlatex environments

* org.el (org-cdlatex-environment-indent): Use different indent
  algorithm based on content above the new latex-environment.

10 days agoFix `org-time-stamp'
Nicolas Goaziou [Thu, 19 Feb 2015 09:33:26 +0000]
Fix `org-time-stamp'

* lisp/org.el (org-time-stamp): Properly insert time when specified.

This fixes e50baa4cf7b97cc2e9b6991560be2bd970106e1e.

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

11 days agoob-core: Allow spaces in NAME
Nicolas Goaziou [Wed, 18 Feb 2015 14:02:22 +0000]
ob-core: Allow spaces in NAME

* lisp/ob-core.el (org-babel-src-name-w-name-regexp): Allow spaces as
  NAME value.

Suggested-by: Joost Helberg <joost@snow.nl>
<http://permalink.gmane.org/gmane.emacs.orgmode/95175>

11 days agoorg-src: Update copyright year
Nicolas Goaziou [Wed, 18 Feb 2015 13:58:36 +0000]
org-src: Update copyright year

11 days agoorg-src: Small refactoring
Nicolas Goaziou [Wed, 18 Feb 2015 01:05:57 +0000]
org-src: Small refactoring

* lisp/org-src.el (org-src--remove-overlay): New function.
(org-src--edit-element, org-src-mode-configure-edit-buffer): Use new
function.

11 days agoMerge branch 'maint'
Nicolas Goaziou [Wed, 18 Feb 2015 01:04:39 +0000]
Merge branch 'maint'

11 days agoFix "Wrong type argument: overlayp" maint
Nicolas Goaziou [Wed, 18 Feb 2015 00:59:51 +0000]
Fix "Wrong type argument: overlayp"

* lisp/org-src.el (org-src-mode-configure-edit-buffer): Fix "Wrong
  type argument: overlayp".

Changing major mode in a source edit buffer resets local variables
used to link it to source buffer.  As a consequence, overlay in source
buffer can no longer be found nor deleted.

13 days agoFix documentation-function for elisp-mode in emacs24
Łukasz Gruner [Mon, 16 Feb 2015 05:05:30 +0000]
Fix documentation-function for elisp-mode in emacs24

13 days agoUpdated org-drill to version 2.4.5.
Paul Sexton [Mon, 16 Feb 2015 02:12:10 +0000]
Updated org-drill to version 2.4.5.

13 days agoUpdate some copyright years
Nicolas Goaziou [Mon, 16 Feb 2015 00:40:07 +0000]
Update some copyright years

13 days agoorg-element: Forbid footnote references in parsed keywords
Nicolas Goaziou [Sun, 15 Feb 2015 20:37:26 +0000]
org-element: Forbid footnote references in parsed keywords

* lisp/org-element.el (org-element-object-restrictions): Forbid
  footnote references in parsed keywords.

Inserting footnote references in parsed keywords (e.g., TITLE or
CAPTION) can lead to subtle bugs.  Indeed, it is impossible to know in
time if that particular footnote is going to be used in the output,
and, therefore, if it should count, e.g., in
`org-export-get-footnote-number'.

13 days agoorg-footnote: Be more strict about location for new footnotes
Nicolas Goaziou [Sun, 15 Feb 2015 20:30:29 +0000]
org-footnote: Be more strict about location for new footnotes

* lisp/org-footnote.el (org-footnote--allow-reference-p): New
  function.
(org-footnote-new): Use new function.

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

In particular, Org now refuses to add a footnote reference in
a keyword, e.g., TITLE.

2 weeks agoorg-element: Faster inline footnotes parsing
Nicolas Goaziou [Sun, 15 Feb 2015 12:33:25 +0000]
org-element: Faster inline footnotes parsing

* lisp/org-element.el (org-element--pair-square-table): New variable.
(org-element-footnote-reference-parser): Use new variable.

2 weeks agoorg-list: Fix continuated items repair
Nicolas Goaziou [Sat, 14 Feb 2015 11:37:41 +0000]
org-list: Fix continuated items repair

* lisp/org-list.el (org-list-struct-apply-struct): Preserve disparate
  indentation in contuated contents, i.e., contents after a plain list
  still within an item.

* testing/lisp/test-org-list.el (test-org-list/repair): Add test.

This fixes the following case:

  - item
     - child
     item contents
       with different indentation

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

2 weeks agoFix `org-return' on list items
Nicolas Goaziou [Sat, 14 Feb 2015 01:07:18 +0000]
Fix `org-return' on list items

* lisp/org.el (org-return): Properly preserve list structure when
  calling `org-return-indent' on an item.

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

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

2 weeks agoFix `org-time-stamp'
Nicolas Goaziou [Fri, 13 Feb 2015 20:54:21 +0000]
Fix `org-time-stamp'

* lisp/org.el (org-time-stamp): Correctly match repeater, if any.
  Refactor code.

* testing/lisp/test-org.el (test-org/time-stamp): New test.

Reported-by: Nicolas Richard <theonewiththeevillook@yahoo.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/94974>

2 weeks agoox-odt: Fix nested footnotes export
Nicolas Goaziou [Fri, 13 Feb 2015 13:14:39 +0000]
ox-odt: Fix nested footnotes export

* lisp/ox-odt.el (org-odt-footnote-reference): Fix nested footnotes
  export.

Reported-by: Vaidheeswaran <vaidheeswaran.chinnaraju@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94900>

2 weeks agoox: Add optional order argument to some footnotes related functions
Nicolas Goaziou [Fri, 13 Feb 2015 13:10:51 +0000]
ox: Add optional order argument to some footnotes related functions

* lisp/ox.el (org-export--footnote-reference-map): New function.
(org-export-footnote-first-reference-p,
org-export-get-footnote-number): Allow to change order when footnotes
references are contained within footnote definitions.

* testing/lisp/test-ox.el (test-org-export/footnote-first-reference-p):
(test-org-export/get-footnote-number):  New tests.
(test-org-export/footnotes): Update test.

2 weeks agoob-core.el: Fix numeric error and add header-args
Rainer M. Krug [Tue, 10 Feb 2015 08:32:46 +0000]
ob-core.el: Fix numeric error and add header-args

* lisp/ob-core.el (org-babel-view-src-block-info): when a property
  value was numeric, an error was raised. Fixed by converting property
  value to string before evauation.

* lisp/ob-core.el (org-babel-view-src-block-info): Add property string
  "header args" to output of org-babel-view-src-block-info to make
  debugging of header-args setting problems easier.

* lisp/ob-core.el (org-babel-view-src-block-info): Add property string
  for language specific "header args:LANG" to output of org-babel-view-src-block-info to make
  debugging of header-args setting problems easier.

2 weeks agoox-publish: Clean-up `org-publish-find-date'
Nicolas Goaziou [Thu, 12 Feb 2015 23:33:17 +0000]
ox-publish: Clean-up `org-publish-find-date'

* lisp/ox-publish.el (org-publish-find-date): Remove useless cond
branch.

:date property is never a single timestamp, so the first branch is
always false.

Reported-by: Rasmus <rasmus@gmx.us>

2 weeks agoorg.texi: Add missing `org-export-with-date'
Nicolas Goaziou [Thu, 12 Feb 2015 23:28:04 +0000]
org.texi: Add missing `org-export-with-date'

* doc/org.texi (Export settings): Add `org-export-with-date'.
(Publishing options): Add `org-export-with-date' and
`org-export-with-title'.

2 weeks agoorg.texi: Fix typo
Rasmus [Thu, 12 Feb 2015 10:56:21 +0000]
org.texi: Fix typo

* org.texi (Export settings): Fix typo in vindex.

2 weeks agoFix bugs introduced in b39dd5a
Rasmus [Thu, 12 Feb 2015 09:59:30 +0000]
Fix bugs introduced in b39dd5a

* ox-man.el (org-man-template),
  ox-texinfo.el (org-texinfo-template): Fix bug.

2 weeks agoorg.texi: Fix bug
Rasmus [Thu, 12 Feb 2015 09:41:21 +0000]
org.texi: Fix bug

* org.texi: Fix bug introduced in e6fcc853c.

2 weeks agoox: Optional export of title
Rasmus [Tue, 10 Feb 2015 23:09:39 +0000]
ox: Optional export of title

* ox.el (org-export-with-title): New variable.
* ox (org-export-options-alist),
  ox-ascii.el (org-ascii-template--document-title),
  ox-beamer.el (org-beamer-template), ox-html.el (org-html-template),
  ox-latex.el (org-latex-template), ox-man.el (org-man-template),
  ox-odt.el (org-odt-template), ox-org.el (org-org-template),
  ox-publish.el (org-publish-project-alist),
  ox-texinfo.el (org-texinfo-template),
  ox-groff.el (org-groff--mt-head): Use new variable.
* ox-koma-letter.el (org-koma-letter-use-title): Mark obsolete.
* test-ox.el (test-org-export/parse-option-keyword): Add :with-title.
* ORG-NEWS, org.texi: Mention org-export-with-title.

This is useful in e.g. ox-html where title can be set via
`org-html-preamble-template' or when using the {{{title}}}-macro.

2 weeks agoTurn momentarily planning keywords into defvar
Nicolas Goaziou [Wed, 11 Feb 2015 23:42:59 +0000]
Turn momentarily planning keywords into defvar

* lisp/org.el (org-closed-string, org-deadline-string,
  org-scheduled-string): Use a defvar.

DEADLINE, SCHEDULED and CLOSED are now meant to be constants. However,
we preserve backward-compatibility during obsolencence phase.

2 weeks agoorg-agenda: Ignore sticky feature when picking date from calendar
Nicolas Goaziou [Wed, 11 Feb 2015 22:42:52 +0000]
org-agenda: Ignore sticky feature when picking date from calendar

* lisp/org-agenda.el (org-calendar-goto-agenda): Ignore sticky
  feature.

Reported-by: Tory S. Anderson <torys.anderson@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94865>

2 weeks agoorg-agenda: Fix small bug
Nicolas Goaziou [Tue, 10 Feb 2015 22:13:56 +0000]
org-agenda: Fix small bug

* lisp/org-agenda.el (org-todo-list): `org-last-args' property
  contains a list, not an atom.

2 weeks agoMerge branch 'maint'
Nicolas Goaziou [Tue, 10 Feb 2015 21:27:12 +0000]
Merge branch 'maint'

2 weeks agoox-odt: Fix exporting target link without a description
Nicolas Goaziou [Tue, 10 Feb 2015 21:23:40 +0000]
ox-odt: Fix exporting target link without a description

* lisp/ox-odt.el (org-odt-link--infer-description): Fix comment.
(org-odt-link): When link to target has no description, use a number.

Reported-by: Christian Moe <mail@christianmoe.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94815>

2 weeks agoFix typo
Nicolas Goaziou [Tue, 10 Feb 2015 16:41:54 +0000]
Fix typo

* lisp/org.el (org-read-date-analyze): Fix typo.

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

2 weeks agoorg.texi: New example on babel :post header
rasmus [Mon, 26 Jan 2015 17:24:39 +0000]
org.texi: New example on babel :post header

* org.texi (post): Clarification and new example.

2 weeks agoorg-element: Interpret pseudo objects without declaration
Nicolas Goaziou [Mon, 9 Feb 2015 11:02:16 +0000]
org-element: Interpret pseudo objects without declaration

* lisp/org-element.el (org-element-object-containers): New variable
(org-element-interpret-data): Remove optional argument.
(org-element--interpret-data-1): Remove optional argument.  Guess when
a given element or object has a pseudo type.

* lisp/ox-latex.el (org-latex-pseudo-objects): Remove variable.
(org-latex-table, org-latex--math-table): Apply signature change above.

* testing/lisp/test-org-element.el (test-org-element/interpret-data):
  Update test.

2 weeks agoORG-NEWS: Document `org-element-copy'
Nicolas Goaziou [Mon, 9 Feb 2015 09:58:57 +0000]
ORG-NEWS: Document `org-element-copy'

2 weeks agoorg-element: Fix docstring
Nicolas Goaziou [Mon, 9 Feb 2015 09:57:39 +0000]
org-element: Fix docstring

* lisp/org-element.el (org-element-copy): Fix docstring.

2 weeks agoUse `org-element-copy'
Nicolas Goaziou [Mon, 9 Feb 2015 09:13:50 +0000]
Use `org-element-copy'

* lisp/org.el (org-timestamp-split-range): Use `org-element-copy'.  Do
  not preserve :parent property anymore.

* lisp/ox.el (org-export-as): Use `org-element-copy'.

* testing/lisp/test-org.el (test-org/timestamp-split-range): Update test.

2 weeks agoorg-element: Implement `org-element-copy'
Nicolas Goaziou [Mon, 9 Feb 2015 09:07:34 +0000]
org-element: Implement `org-element-copy'

* lisp/org-element.el (org-element-copy): New function.
* testing/lisp/test-org-element.el (test-org-element/copy): New test.

2 weeks agoox.el: {{{date}}} formatting argument
Rasmus [Sun, 8 Feb 2015 20:34:43 +0000]
ox.el: {{{date}}} formatting argument

* ox.el (org-export-as): Allow {{{date}}} to take formatting-argument.
* org.texi (Macro replacement): Document {{{date}}} formatting.
* test-ox.el (test-org-export/expand-macro): Test {{{data(format)}}}
* org-NEWS: Mention optional {{{data}}} argument.

Optional argument to {{{date}}} like {{{date(FMT)}}} are treated
similar to {{{time(FMT)}}} if \#+DATE is a timestamp.

2 weeks agoFix timestamp-based sorting of tags-based entries in agenda
Yuri D. Lensky [Sat, 7 Feb 2015 18:37:46 +0000]
Fix timestamp-based sorting of tags-based entries in agenda

* lisp/org.el (org-scan-tags): Fix agenda org tags scans to properly
  add timestamp property, completely analogously to
  org-agenda-get-todos.
* lisp/org-agenda.el (org-agenda-entry-get-agenda-timestamp,
  org-agenda-get-todos): Factored timestamp retrieval code out to
  separate function org-agenda-entry-get-agenda-timestamp from
  org-agenda-get-todos.

Before this fix, timestamps were ignored when sorting agenda views of
the 'tags' and 'tags-todo' types.

TINYCHANGE

2 weeks agoorg.texi: Consistent formatting of non-nil
Rasmus [Sun, 8 Feb 2015 21:48:57 +0000]
org.texi: Consistent formatting of non-nil

* org.texi: All occurances of non-nil changed to non-@code{nil}.

2 weeks agoorg.texi: Document all predefined macros
Rasmus [Sun, 8 Feb 2015 21:43:25 +0000]
org.texi: Document all predefined macros

* org.texi (Macro replacement): Document all predefined macros.

3 weeks agoCall `org-insert-heading' instead of (insert "* ")
Nicolas Goaziou [Sun, 8 Feb 2015 00:45:38 +0000]
Call `org-insert-heading' instead of (insert "* ")

* lisp/org-agenda.el (org-agenda-insert-diary-as-top-level):
* lisp/org.el (org-link-search):  Call `org-insert-heading' instead
  of (insert "* ").

This allows, in particular, to run `org-insert-heading-hook' and
possibly fix up blank lines around.

3 weeks ago`org-insert-heading' can be forced to insert top-level headline
Nicolas Goaziou [Sun, 8 Feb 2015 00:43:30 +0000]
`org-insert-heading' can be forced to insert top-level headline

* lisp/org.el (org-insert-heading): Change signature.  Tiny refactoring.
* testing/lisp/test-org.el (test-org/insert-heading): Add tests.

3 weeks agoFunction `org-link-search' does exact headline search
Alan Schmitt [Fri, 12 Dec 2014 07:26:05 +0000]
Function `org-link-search' does exact headline search

* lisp/org.el (org-link-search): Change headline search such that it
always does an exact search, ignoring spaces.

* testing/lisp/test-org.el (test-org/fuzzy-links): Test exact headline
match with spaces and cookies.

* doc/org.texi (External links): Cleanup footnote about the
`org-link-search-must-match-exact-headline' option for text searches
and add a footnote about the effect of the same option for heading
searches.

* doc/ORG-NEWS: Document changes.

3 weeks agoorg-wikinodes: Fix fontification
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>

3 weeks agoorg-agenda: Fix logging with bulk agenda commands
Nicolas Goaziou [Fri, 6 Feb 2015 08:52:25 +0000]
org-agenda: Fix logging with bulk agenda commands

* lisp/org-agenda.el (org-agenda-new-marker): Make sure data inserted
  inserted in the heading above marker updates it.
(org-agenda-bulk-action): Enforce calling `org-add-log-note' after
each action.

Reported-by: Maxim Baz <z0rch.coding@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94654>

3 weeks agoTiny refactoring
Nicolas Goaziou [Thu, 5 Feb 2015 17:12:23 +0000]
Tiny refactoring

* lisp/org.el (org-ctrl-c-ctrl-c): Tiny refactoring.

3 weeks agoorg-texi: Fix typo
Nicolas Goaziou [Thu, 5 Feb 2015 16:44:48 +0000]
org-texi: Fix typo

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

This fixes e3bd15a8ddb7d8343b7e632695714cc0fa438aac.

3 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Thu, 5 Feb 2015 16:42:20 +0000]
org.texi: Fix typo

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

Reported-by: J. David Boyd <dboyd2@mmm.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94674>

3 weeks agoox-html: Properly escape ampersands in links
Nicolas Goaziou [Thu, 5 Feb 2015 11:56:23 +0000]
ox-html: Properly escape ampersands in links

* lisp/ox-html.el (org-html-link): Properly escape ampersands in
  links.
(org-html-encode-plain-text): Small refactoring.

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

3 weeks agoMerge branch 'maint'
Marco Wahl [Thu, 5 Feb 2015 09:19:48 +0000]
Merge branch 'maint'

3 weeks agocontrib/org-drill.el: update to v2.4.4
Marco Wahl [Thu, 5 Feb 2015 09:18:15 +0000]
contrib/org-drill.el: update to v2.4.4

3 weeks agoorg-agenda: Fix adding diary entries
Nicolas Goaziou [Thu, 5 Feb 2015 09:00:46 +0000]
org-agenda: Fix adding diary entries

* lisp/org-agenda.el (org-agenda-insert-diary-make-new-entry): Fix
  adding adding diary entries the same day.

This is a follow-up to a1116aa54ee4befd8fa52e3f92207db200ebfd59.

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

3 weeks agoorg-element: Externalize docview links
Nicolas Goaziou [Tue, 3 Feb 2015 22:00:21 +0000]
org-element: Externalize docview links

* lisp/org-element.el (org-element-link-type-is-file): Remove.
(org-element-link-parser): Do not treat specially anymore "docview"
link type.

* testing/lisp/test-org-element.el (test-org-element/link-parser):
  Update test.

* lisp/org-docview.el (org-docview-export): Fix path.

"docview" is a custom link type handled in its own library.  There is
no reason to include it in core parser.

3 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Tue, 3 Feb 2015 20:46:22 +0000]
org.texi: Fix typo

* doc/org.texi (Filtering/limiting agenda items): Fix typo.

3 weeks agoFix `org-toggle-heading'
Nicolas Goaziou [Tue, 3 Feb 2015 20:39:30 +0000]
Fix `org-toggle-heading'

* lisp/org.el (org-toggle-heading): Avoid adding spurious stars when
  changing a plain list into a subtree.

Reported-by: Rainer Stengele <rainer.stengele@online.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/94223>

3 weeks agoorg-download.el: Update to commit d01bdfd6
Oleh Krehel [Tue, 3 Feb 2015 18:46:05 +0000]
org-download.el: Update to commit d01bdfd6

3 weeks agoorg.texi: Fix typo
Nicolas Goaziou [Tue, 3 Feb 2015 11:19:02 +0000]
org.texi: Fix typo

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

Suggested-by: Thierry Pellé <abonnements@thierry-pelle.eu>

3 weeks agoMerge branch 'maint'
Achim Gratz [Tue, 3 Feb 2015 08:23:58 +0000]
Merge branch 'maint'

3 weeks agomk/server.mk: correct file globs for contrib/lisp
Achim Gratz [Tue, 3 Feb 2015 08:23:20 +0000]
mk/server.mk: correct file globs for contrib/lisp

3 weeks agoorg-agenda: Fix agenda diary corruption
Nicolas Goaziou [Mon, 2 Feb 2015 17:19:30 +0000]
org-agenda: Fix agenda diary corruption

* lisp/org-agenda.el (org-agenda-insert-diary-make-new-entry): Do not
  save excursion or final position is lost.

Reported-by: Gregor Zattler <grfz@gmx.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/94543>

3 weeks agoMake use of `org-insert-heading' instead of inserting the * character
Konubinix [Thu, 6 Nov 2014 10:02:23 +0000]
Make use of `org-insert-heading' instead of inserting the * character

* lisp/org-agenda.el (org-agenda-insert-diary-as-top-level): Make
  use of `org-insert-heading' instead of inserting the * character

Therefore, the hooks associated to the insertion of a heading will be
triggered.  Since those hooks may cause the creation of some
metadata.  `org-end-of-meta-data' is used afterward.

4 weeks agoorg-table: Allow accentuated characters in remote table names
Nicolas Goaziou [Sun, 1 Feb 2015 00:03:45 +0000]
org-table: Allow accentuated characters in remote table names

* lisp/org-table.el (org-table-eval-formula): Allow a larger set of
  characters in remote name.

Reported-by: flav <flav.justflav@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/75690>

4 weeks agoorg.el: org-babel-load-file loads first tangle file
Sami Airaksinen [Thu, 29 Jan 2015 21:10:02 +0000]
org.el: org-babel-load-file loads first tangle file

(org-babel-load-file): When org-mode FILE has multiple target files
for tangle blocks, `exported-file' will be set to last found
target file, which might not be the `file'.

Therefore fix for this bug is to select the last element of that
tangled file list, which is the tangle target file of the first found
tangle block, most typically the `file'.

TINYCHANGE