org-mode.git
9 min agoUpdate defcustom master
Nicolas Goaziou [Wed, 1 Apr 2015 22:23:57 +0000]
Update defcustom

* lisp/org.el (org-cycle-hook): Update version and package-version.

Commit 03e81f0d240271d072fd155d41e59b6b353abaa9 modified default
value.

26 min agoFix cycling ARCHIVE trees with inline tasks loaded
Nicolas Goaziou [Wed, 1 Apr 2015 22:06:49 +0000]
Fix cycling ARCHIVE trees with inline tasks loaded

* lisp/org-inlinetask.el (org-inlinetask-hide-tasks): New function.
* lisp/org.el (org-cycle-hide-inline-tasks): Remove function.
(org-cycle-hook): Apply removal.

Reported-by: "Francesco Pizzolante" <fpz-djc/iPCCuDYQheJpep6IedvLeJWuRmrY@public.gmane.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/89563>

83 min agoorg.texi: Small fix
Rasmus [Wed, 1 Apr 2015 21:04:51 +0000]
org.texi: Small fix

* org.texi (ODT export commands): Remove unnecessary heading.

83 min agoox-html: Small fix
Rasmus [Wed, 1 Apr 2015 12:43:20 +0000]
ox-html: Small fix

* ox-html.el (org-html-mathjax-options): Add new package-version.

83 min agoorg.texi: Changes to In-buffer settings
Rasmus [Tue, 31 Mar 2015 22:27:07 +0000]
org.texi: Changes to In-buffer settings

* org.texi (In-buffer settings): Remove keywords not defined in ox.el

83 min agoorg.texi: New export keywords sections
Rasmus [Wed, 1 Apr 2015 11:34:27 +0000]
org.texi: New export keywords sections

* org.texi (Beamer specific export settings)
  (HTML Specific export settings)
  (@LaTeX{} specific export settings)
  (ODT specific export settings)
  (Texinfo specific export settings): New sections.
  (Beamer specific syntax): Removed some text.

83 min agoManuals: Remove DESCRIPTION and KEYWORDS
Rasmus [Wed, 1 Apr 2015 11:13:55 +0000]
Manuals: Remove DESCRIPTION and KEYWORDS

* org.texi (Export settings)
  orgguide.texi (Export options): Remove DESCRIPTION and KEYWORDS.

83 min agoorg.texi: Change beamer example to @example
Rasmus [Wed, 1 Apr 2015 11:12:20 +0000]
org.texi: Change beamer example to @example

* org.texi (A Beamer Example): Change to @example.

83 min agoorg.texi: Subsections in Beamer export
Rasmus [Wed, 1 Apr 2015 11:10:57 +0000]
org.texi: Subsections in Beamer export

* org.texi (Beamer export): Add menu and change subheading to
subsection.

111 min agoFix 80bccca4e249cbb5812963863ccffbdcf4b25edd
Nicolas Goaziou [Wed, 1 Apr 2015 20:41:41 +0000]
Fix 80bccca4e249cbb5812963863ccffbdcf4b25edd

* lisp/org.el (org-refresh-category-properties): Extract default
  category before entering `with-silent-modifications', as
  `buffer-file-name' is then bound to nil.

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

2 hours agoorg-mime.el: Don't use letf or cl-letf
Eric Abrahamsen [Wed, 1 Apr 2015 02:08:34 +0000]
org-mime.el: Don't use letf or cl-letf

* contrib/lisp/org-mime.el (org-mime-send-subtree, org-mime-compose):
  `cl-letf' doesn't exist in Emacs <= 23, but `letf' won't exist in
  future Emacs. Replace with `lambda' and `funcall'.

10 hours agoox-html: Tiny fix
Rasmus [Tue, 31 Mar 2015 15:35:59 +0000]
ox-html: Tiny fix

* ox-html.el (html): Remove duplicated line.

26 hours agoorg.texi: Fix #+CATEGORY description
Nicolas Goaziou [Tue, 31 Mar 2015 20:01:28 +0000]
org.texi: Fix #+CATEGORY description

* doc/org.texi (In-buffer settings): Remove deprecated behaviour.

26 hours agoob-ref: Small refactoring
Nicolas Goaziou [Tue, 31 Mar 2015 19:50:43 +0000]
ob-ref: Small refactoring

* lisp/ob-ref.el (org-babel-ref-goto-headline-id):
(org-babel-ref-headline-body): Small refactoring.

31 hours agoSmall optimization
Nicolas Goaziou [Tue, 31 Mar 2015 14:34:51 +0000]
Small optimization

* lisp/org.el (org-find-property): Small optimization.

Since VALUE is included in the regexp, it doesn't need to be found
again with `org-entry-get'.  However, we still need to make sure match
really is a node property.

32 hours agoRemove no longer appropriate test
Nicolas Goaziou [Tue, 31 Mar 2015 14:32:54 +0000]
Remove no longer appropriate test

* testing/lisp/test-org.el (test-org/find-property): Remove a test.

For efficiency reasons, since
7a717f8f0415b822ad4b3d2af99869cff4b6f968, `org-find-property' cannot
match accumulated properties.  It still could be done with another
optional argument, at the cost of a slower algorithm, but is not
needed so far.

32 hours agoFix `org-refresh-category-properties'
Nicolas Goaziou [Tue, 31 Mar 2015 14:22:10 +0000]
Fix `org-refresh-category-properties'

* lisp/org.el (org-refresh-category-properties): Ignore false
  positives when setting category.  Also, deprecate old CATEGORY
  keyword behaviour: new keywords override old ones.

32 hours agoFix "Before first headline" error in `org-refresh-property'
Nicolas Goaziou [Tue, 31 Mar 2015 13:57:54 +0000]
Fix "Before first headline" error in `org-refresh-property'

* lisp/org.el (org-refresh-property): Ignore function when before
first headline or inlinetask.  Small refactoring.

Reported-by: Nick Dokos <ndokos@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/96552>

36 hours agoRemove default #includes in Babel C, C++
Thierry Banel [Mon, 30 Mar 2015 19:36:00 +0000]
Remove default #includes in Babel C, C++

* ob-C.el (org-babel-C-expand-C): remove automatic inclusion
of <string.h>, <stdio.h>, <stdlib.h>

* ob-C-test.org: adjust C++ tests to manually include
required header files.

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

36 hours agoAllow searching for specific property value
Florian Beck [Mon, 30 Mar 2015 20:27:36 +0000]
Allow searching for specific property value

* lisp/org.el (org-re-property): New optional argument.
(org-find-property): Use it.

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

TINYCHANGE

3 days agoorg.el: Fix org-copy-subtree at inlinetask
Rasmus [Sun, 29 Mar 2015 13:27:41 +0000]
org.el: Fix org-copy-subtree at inlinetask

* org.el (org-copy-subtree): Include the end of an inlinetasks.

Previously, the end of an inlinetask would be left in the buffer.

3 days agotest-ox.el: Account for #+DESCRIPTION is not in ox
Rasmus [Sun, 29 Mar 2015 12:54:56 +0000]
test-ox.el: Account for #+DESCRIPTION is not in ox

* test-ox.el (test-org-export/get-inbuffer-options): Change to reflect
  that #+DESCRIPTION is non-standard keyword.

3 days agoox-org: Remove #+DESCRIPTION and #+KEYWORD support
Rasmus [Sun, 29 Mar 2015 12:26:59 +0000]
ox-org: Remove #+DESCRIPTION and #+KEYWORD support

* ox-org.el (org-org-keyword): Remove #+KEYWORD and #+DESCRIPTION
  (org-org-template): Remove explicit #+KEYWORD and #+DESCRIPTION
  support.

3 days agoorg-table: Fix docstrings
Nicolas Goaziou [Sun, 29 Mar 2015 12:06:43 +0000]
org-table: Fix docstrings

* lisp/org-table.el (org-table-beginning-of-field):
(org-table-end-of-field): Swap docstrings.

3 days agoFix `org-backward-sentence' and `org-forward-sentence'
Nicolas Goaziou [Fri, 27 Mar 2015 17:12:46 +0000]
Fix `org-backward-sentence' and `org-forward-sentence'

* lisp/org.el (org-backward-sentence):
(org-forward-sentence): Properly move at the boundaries of an element.

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

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

3 days agoox: Remove #+KEYWORD and #+DESCRIPTION
Rasmus [Fri, 13 Mar 2015 20:38:26 +0000]
ox: Remove #+KEYWORD and #+DESCRIPTION

* ox.el: Remove #+KEYWORD: and #+DESCRIPTION:.
* ox-deck.el, ox-rss.el, ox-html, ox-latex, ox-odt, ox-org: Add
  #+KEYWORD and #+DESCRIPTION.
* org.texi (Export settings): Explicit state which backends
  support #+DESCRIPTION and #+KEYWORDS.

4 days agoorg.texi: Fix typo
Nicolas Goaziou [Sat, 28 Mar 2015 15:04:21 +0000]
org.texi: Fix typo

* doc/org.texi (Comment lines): Fix typo.

4 days agoox: New smart quote algorithm
Nicolas Goaziou [Sat, 28 Mar 2015 14:08:44 +0000]
ox: New smart quote algorithm

* lisp/ox.el (org-export-smart-quotes-alist): Fix indentation.
(org-export-smart-quotes-regexps): Remove variable.
(org-export--smart-quote-status): New function.
(org-export-activate-smart-quotes): Use new function.

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

4 days agoox: Tiny fix
Nicolas Goaziou [Sat, 28 Mar 2015 09:37:31 +0000]
ox: Tiny fix

* lisp/ox.el (org-export--get-inbuffer-options): Do not consider
  `quote' value as t.

4 days agoRemove comment related translators in export back-ends
Nicolas Goaziou [Sat, 28 Mar 2015 09:48:05 +0000]
Remove comment related translators in export back-ends

* lisp/ox-ascii.el (ascii):
* lisp/ox-latex.el (latex):
* lisp/ox-man.el (man):
* lisp/ox-md.el (md):
* lisp/ox-org.el (org):
* lisp/ox-texinfo.el (texinfo):

* contrib/lisp/ox-groff.el (groff): Remove `comment' and
`comment-block' translators.

`comment' and `comment-block' translators are not needed since both
commented lines and comment blocks do not appear anymore in the parse
tree.  See 69dd4301ab7aeb581968f1c7e75167338d024c8f.

4 days agoox: Remove filter associated to comments
Nicolas Goaziou [Sat, 28 Mar 2015 09:35:26 +0000]
ox: Remove filter associated to comments

* lisp/ox.el (org-export-filters-alist): Remove reference to comment
  filters.
(org-export-filter-comment-functions,
org-export-filter-comment-block-functions): Remove variables.

* doc/org.texi (Advanced configuration): Remove reference to comment
  filters.

* etc/ORG-NEWS: Signal removal.

Comments are removed before parsing the buffer.  As a consequence,
filters are never called.

4 days agoox: Remove comments and comment blocks prior to export
Nicolas Goaziou [Sat, 28 Mar 2015 09:25:48 +0000]
ox: Remove comments and comment blocks prior to export

* lisp/ox.el (org-export--delete-comments): Renamed from
  `org-export--delete-commented-subtrees'.  Also remove comments and
  comment blocks.
(org-export-as): Apply renaming.

* testing/lisp/test-ox.el (org-test-with-parsed-data): Apply renaming.

From the export point of view COMMENTed subtrees and regular comments
are expected to be treated in the same way.

4 days agoorg.texi: Suggest :noexport: as an alternative for COMMENT
Nicolas Goaziou [Sat, 28 Mar 2015 09:10:53 +0000]
org.texi: Suggest :noexport: as an alternative for COMMENT

* doc/org.texi (Comment lines): Suggest :noexport: as an alternative
  for COMMENT.

4 days agoox: Fix `org-export--delete-commented-subtrees'
Nicolas Goaziou [Sat, 28 Mar 2015 08:59:08 +0000]
ox: Fix `org-export--delete-commented-subtrees'

* lisp/ox.el (org-export--delete-commented-subtrees): Match COMMENT
  subtree even with a priority cookie or a TODO keyword.

4 days agoRevert "Fix c9a52787c14c3a7429bcd3c8975350525e0baa04"
Nicolas Goaziou [Sat, 28 Mar 2015 08:54:37 +0000]
Revert "Fix c9a52787c14c3a7429bcd3c8975350525e0baa04"

This reverts commit 359572d37eb3131d934fbfaeffdee0c2a1abc7cc.

COMMENT headlines are expected to be ignored completely during export.

5 days agoFix code comment
Nicolas Goaziou [Fri, 27 Mar 2015 17:14:59 +0000]
Fix code comment

* lisp/org.el (org-fontify-entities): Fix comment.

5 days agoox-html: Tiny fix
Rasmus [Fri, 27 Mar 2015 13:51:30 +0000]
ox-html: Tiny fix

* ox-html.el: Remove second :html-html5-fancy.

5 days agoox-koma-letter: Add hyperref support
Rasmus [Fri, 27 Mar 2015 12:46:08 +0000]
ox-koma-letter: Add hyperref support

* ox-koma-letter.el (org-koma-letter-template): Insert hyperref setup.

5 days agoox-latex: Utilize change in bcf6970
Rasmus [Fri, 27 Mar 2015 12:04:13 +0000]
ox-latex: Utilize change in bcf6970

* ox-koma-letter.el (org-koma-letter-template),
  ox-latex.el (org-latex--format-spec): Tiny refactor.

5 days agoox: Always insert creator in metadata
Rasmus [Fri, 27 Mar 2015 11:51:01 +0000]
ox: Always insert creator in metadata

* ox-odt.el (org-odt-template): Always insert creator.
* ox-latex.el (org-latex--format-spec): Creator always available.

6 days agoFuzzy links to headlines ignore COMMENT keywords
Nicolas Goaziou [Thu, 26 Mar 2015 20:05:27 +0000]
Fuzzy links to headlines ignore COMMENT keywords

* lisp/org.el (org-link-search): Ignore COMMENT keyword.
* testing/lisp/test-org.el (test-org/fuzzy-links): Add test.

Reported-by: Martin Carlé <mc@aiguphonie.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/96413>

8 days agoorg-macro: Small refactoring
Nicolas Goaziou [Tue, 24 Mar 2015 08:44:27 +0000]
org-macro: Small refactoring

* lisp/org-macro.el (org-macro-initialize-templates): Remove spurious
  lambda funcall.

8 days agoFix c9a52787c14c3a7429bcd3c8975350525e0baa04
Nicolas Goaziou [Tue, 24 Mar 2015 08:27:56 +0000]
Fix c9a52787c14c3a7429bcd3c8975350525e0baa04

* lisp/org-macro.el (org-macro--collect-macros): Ignore macro
  definitions in commented subtrees.
* lisp/ox.el (org-export--get-inbuffer-options): Ignore options in
  commented subtrees.
(org-export--delete-commented-subtrees): Remove function.
(org-export-as): Apply removal.

Removing the whole subtree is not subtle as Babel might want to use
data there.

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

8 days agoox-beamer: Properly transcode description tags
Nicolas Goaziou [Tue, 24 Mar 2015 08:15:47 +0000]
ox-beamer: Properly transcode description tags

* lisp/ox-beamer.el (org-beamer-item): Make sure description tags are
  transcoded using `beamer' back-end instead of `latex'.

Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/96345>

8 days agoob-latex: htlatex and imagemagick
Andreas Leha [Sat, 21 Mar 2015 22:22:17 +0000]
ob-latex: htlatex and imagemagick

Hi all,

please find attached a small patch that fixes a problem discussed
in [1].

In short, when executing a latex src block and htlatex is a valid
option, it should be used even if imagemagick is part of the headers.

Regards,
Andreas

[1] http://permalink.gmane.org/gmane.emacs.orgmode/96257

>From 2986826441c24e2f0d6cf5efe6bf8aca75c4bdbb Mon Sep 17 00:00:00 2001
From: Andreas Leha <andreas.leha@gmx.de>
Date: Sat, 21 Mar 2015 22:11:37 +0000
Subject: [PATCH] ob-latex: htlatex preferred over imagemagick

* ob-latex.el (org-babel-execute:latex): change the order of the handlers

When `imagemagick' is given this entry acts as an else option.
So, it should always come last.

8 days agoox: Ignore export settings in commented subtrees
Nicolas Goaziou [Mon, 23 Mar 2015 23:32:15 +0000]
ox: Ignore export settings in commented subtrees

* lisp/ox.el (org-export--delete-commented-subtrees): New function.
(org-export-as): Use new function.

* testing/lisp/test-ox.el (org-test-with-parsed-data,
  test-org-export/get-inbuffer-options): Use new function.
(test-org-export/expand-macro): Add tests.

Reported-by: Andreas Leha <andreas.leha@med.uni-goettingen.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/96267>

8 days agoox: Rename some internal functions
Nicolas Goaziou [Mon, 23 Mar 2015 23:06:56 +0000]
ox: Rename some internal functions

* lisp/ox.el (org-export--prune-tree): Renamed from
  `org-export-prune-tree'.  Move it close to its caller.
(org-export--remove-uninterpreted-data): Renamed from
`org-export-remove-uninterpreted-data'.  Move it close to its caller.
(org-export--remove-uninterpreted-data-1): Move internal function
close to its caller.
(org-export-as): Apply renaming.

* testing/lisp/test-ox.el (org-test-with-parsed-data): Apply renaming.

8 days agoorg-list: Modify M-RET on a description tag
Nicolas Goaziou [Mon, 23 Mar 2015 22:35:57 +0000]
org-list: Modify M-RET on a description tag

* lisp/org-list.el (org-list-insert-item): On a description tag,
  insert item before current one.  However, past the colons, insert it
  after.
* testing/lisp/test-org-list.el (test-org-list/insert-item): Add
  tests.

Reported-by: Leo Ufimtsev <lufimtse@redhat.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/96330>

9 days agoDocument how to scroll calendar by one year at date prompt
Gregor Zattler [Sun, 22 Mar 2015 21:54:13 +0000]
Document how to scroll calendar by one year at date prompt

* doc/org.texi (The date/time prompt): Add respective keys to the Key
  index.  Also justify the lines in this block to look prettier in
  info.

TINYCHANGE

10 days agoChange "\..." entities into "\_ "
Nicolas Goaziou [Sun, 22 Mar 2015 20:45:00 +0000]
Change "\..." entities into "\_   "

* lisp/org-element.el (org-element--set-regexps):
(org-element-entity-parser): Update regexps.

* lisp/org-entities.el (org-entities): Modify syntax for space
  entities.

* lisp/org.el (org-fontify-entities): Update comment.

* lisp/org-clock.el (org-clocktable-indent-string): Apply syntax
  change.

* etc/ORG-NEWS (title): Update announce.

Use a less verbose syntax, which cannot interfere with file paths.

10 days agoox-ascii: Remove dubious spacing in UTF8 titles
Nicolas Goaziou [Sun, 22 Mar 2015 14:19:36 +0000]
ox-ascii: Remove dubious spacing in UTF8 titles

* lisp/ox-ascii.el (org-ascii-template--document-title): Remove
  spurious newline characters in title when exporting to UTF8.

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

10 days agoorg-element: Fix 22f942b4812d4c499738c0faae4d37180a64375b
Nicolas Goaziou [Sun, 22 Mar 2015 09:09:29 +0000]
org-element: Fix 22f942b4812d4c499738c0faae4d37180a64375b

* lisp/org-element.el (org-element-entity-parser): Fix regexp groups.

10 days agoorg-clock: Use new entities for clock table
Nicolas Goaziou [Sun, 22 Mar 2015 00:53:42 +0000]
org-clock: Use new entities for clock table

* lisp/org-clock.el (org-clocktable-indent-string): Use new entities.
  Update docstring.

Fixes: bug#18870

10 days agoImplement new entity family "\...."
Nicolas Goaziou [Sun, 22 Mar 2015 00:40:17 +0000]
Implement new entity family "\...."

* lisp/org-element.el (org-element--set-regexps):
(org-element-entity-parser): Update regexps for entities.

* lisp/org-entities.el (org-entities): Add new entities.

* lisp/org.el (org-fontify-entities): Add comment.

* etc/ORG-NEWS (title): Introduce new entities.

"\..." are used to insert an arbitrary number of spaces in various
back-ends.  In particular, this family can be used to introduce
leading spaces within table cells.

Also, unlike to other entities, these can be used mid-word, e.g.,

  wo\....rd

Curly brackets can still be added before a dot, e.g.,

  This is the end\...{}.

10 days agoorg-entities: Remove unused variable and functions
Nicolas Goaziou [Sat, 21 Mar 2015 23:32:24 +0000]
org-entities: Remove unused variable and functions

* lisp/org-entities.el (org-entities-ascii-explanatory): Remove
  variable.
(org-entities--user-safe-p): Refactor.
(org-entities-user): Delete reference to removed variable.  Small
docstring fix.
(org-entity-get-representation, org-entity-latex-math-p): Remove
functions.

* etc/ORG-NEWS (Skipping): Document variable removal.

11 days agoorg-element: `org-element-parse-secondary-string' accepts nil argument
Nicolas Goaziou [Sat, 21 Mar 2015 08:43:45 +0000]
org-element: `org-element-parse-secondary-string' accepts nil argument

* lisp/org-element.el (org-element-parse-secondary-string): Accept nil
  argument as a special case.

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

11 days agoox-s5: Small fix
Rasmus [Fri, 20 Mar 2015 22:12:40 +0000]
ox-s5: Small fix

* ox-s5.el: Require cl during compilation.

12 days agoox-koma-letter: Fix bug introduced in 304a5cb
Rasmus [Fri, 20 Mar 2015 21:14:12 +0000]
ox-koma-letter: Fix bug introduced in 304a5cb

* ox-koma-letter.el (org-koma-letter-template): Handle empty SUBJECT.

12 days agoRevert "ox-koma-letter: fix bug introduced in 304a5cb"
Rasmus [Fri, 20 Mar 2015 21:12:35 +0000]
Revert "ox-koma-letter: fix bug introduced in 304a5cb"

This reverts commit 1ce810f9abc0db10037c88dfb60cf5e4c7656268.

12 days agoox-koma-letter: fix bug introduced in 304a5cb
Rasmus [Fri, 20 Mar 2015 21:08:29 +0000]
ox-koma-letter: fix bug introduced in 304a5cb

* ox-koma-letter.el (org-koma-letter-template): Handle empty SUBJECT.

12 days agoox-koma-letter: Interpret #+SUBJECT.
Rasmus [Wed, 18 Mar 2015 12:33:42 +0000]
ox-koma-letter: Interpret #+SUBJECT.

* ox-koma-letter.el (org-koma-letter-template): Interpret #+SUBJECT.

12 days agoox-koma-letter: Stricter subject inference
Rasmus [Thu, 19 Mar 2015 11:10:30 +0000]
ox-koma-letter: Stricter subject inference

* ox-koma-letter.el (org-koma-letter--special-tag): New function.
  (org-koma-letter-headline): Use org-koma-letter--special-tag
  and do not guess opening.
  (org-koma-letter-template): Directly infer subject from first
  non-special headline.

12 days agoox-koma-letter: Tiny refactor
Rasmus [Thu, 19 Mar 2015 11:10:08 +0000]
ox-koma-letter: Tiny refactor

ox-koma-letter.el (org-koma-letter--get-tagged-contents): Use
assoc-string.

12 days agoORG-NEWS: Mention change in grouptags functionality
Gustav Wikström [Thu, 19 Mar 2015 20:55:18 +0000]
ORG-NEWS: Mention change in grouptags functionality

* etc/ORG-NEWS: Mention change of previous commits for grouptags:

Entries added to ORG-NEWS for the description of:

 - ecfd00c org.texi: Complement info for group tags

 - 8562bd0 org: Nesting grouptags

 - 6c6ae99 org-agenda: Filtering in the agenda on grouptags

 - ee45258 org: Grouptags not unique and can contain regexp

13 days agoorg-index.el: version 4.2.1
Marc-Oliver Ihm [Thu, 19 Mar 2015 21:16:46 +0000]
org-index.el: version 4.2.1

2 weeks agoox: Throw an error on unresolved id links
Nicolas Goaziou [Tue, 17 Mar 2015 22:24:03 +0000]
ox: Throw an error on unresolved id links

* lisp/ox.el (org-export-get-environment): Properly find file
  associated to id link.
(org-export-resolve-id-link): Throw an error on unresolved id links.

Use `org-id-find' instead of `org-id-find-id-file' as the latter may
returns the file attached to current buffer on search failure.

Reported-by: Jacob Gerlach <jacobgerlach@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/96020>

2 weeks agoox.el: Issue error for unresolved fuzzy link
Jacob Gerlach [Thu, 12 Mar 2015 02:39:11 +0000]
ox.el: Issue error for unresolved fuzzy link

* lisp/ox.el (org-export-resolve-fuzzy-link): Throw an error instead
  of returning nil when link can't be resolved.

* testing/lisp/test-ox.el (test-org-export/resolve-fuzzy-link): Change
  last test from should-not to should-error

In addition to throwing an error, don't store the failed match in the
link cache.

TINYCHANGE

2 weeks agoox: Throw an error on unresolved coderef
Nicolas Goaziou [Tue, 17 Mar 2015 21:28:39 +0000]
ox: Throw an error on unresolved coderef

* lisp/ox.el (org-export-resolve-coderef): Throw an error on
  unresolved coderef.

* testing/lisp/test-ox.el (test-org-export/resolve-coderef): Update
  test.

2 weeks agoD is supported by Babel
Thierry Banel [Mon, 16 Mar 2015 21:38:05 +0000]
D is supported by Babel

* doc/org.texi: added D in the list of Babel supported languages

2 weeks agoox: Fix defcustom
Nicolas Goaziou [Tue, 17 Mar 2015 14:47:40 +0000]
ox: Fix defcustom

* lisp/ox.el (org-export-with-title): Fix :package-information value.

2 weeks agoox: Remove `comment' special value for `org-export-with-creator'
Nicolas Goaziou [Tue, 17 Mar 2015 14:40:52 +0000]
ox: Remove `comment' special value for `org-export-with-creator'

* lisp/ox.el (org-export-with-creator): Change default value.

* lisp/ox-ascii.el (org-ascii-template):
* lisp/ox-beamer.el (org-beamer-template):
* lisp/ox-latex.el (org-latex-template):
* lisp/ox-odt.el (org-odt-template):
* lisp/ox-org.el (org-org-template):
* lisp/ox-texinfo.el (org-texinfo-template): Treat
  `org-export-with-creator' as a boolean.

* testing/lisp/test-ox.el (test-org-export/parse-option-keyword):
  Update test.

* doc/org.texi (Export settings): Update allowed values in
  `org-export-with-creator'.

* etc/ORG-NEWS: Signal change.

Special `comment' value isn't meaningful for all back-ends and is not
implemented in every back-end where it makes sense anyway.

It is possible to add a comment including creator at the end of the
document using a body filter instead.

2 weeks agoox-odt: Fix bugs in metadata generation
Rasmus [Tue, 17 Mar 2015 00:09:50 +0000]
ox-odt: Fix bugs in metadata generation

* ox-odt.el (org-odt-template): Use empty quotes when keyword and
  description is missing.  Fill the generator field like ox-latex.

2 weeks agoorg.texi: Complement info for group tags
Gustav Wikström [Thu, 5 Mar 2015 00:45:57 +0000]
org.texi: Complement info for group tags

group tags are more general and a name-change (or addition) is made in
the manual: tag groups are now called tag hierarchy.

Adding information about the added tag hierarchy functionality and
use-cases.

2 weeks agoorg: Nesting grouptags
Gustav Wikström [Sat, 24 Jan 2015 01:47:47 +0000]
org: Nesting grouptags

* lisp/org.el (org-tags-expand): Nesting grouptags.

  Allowing subtags to be defined as groups themselves.

  : #+TAGS: [ Group : SubOne(1) SubTwo ]
  : #+TAGS: [ SubOne : SubOne1 SubOne2 ]
  : #+TAGS: [ SubTwo : SubTwo1 SubTwo2 ]

  Should be seen as a tree of tags:
  - Group
    - SubOne
      - SubOne1
      - SubOne2
    - SubTwo
      - SubTwo1
      - SubTwo2

  Searching for "Group" should return all tags defined above.

2 weeks agoorg-agenda: Filtering in the agenda on grouptags
Gustav Wikström [Sat, 24 Jan 2015 01:47:35 +0000]
org-agenda: Filtering in the agenda on grouptags

Filtering in the agenda on grouptags filter also subcategories.
Exception if filter is applied with a (double) prefix-argument.

Filtering in the agenda on subcategories does not filter the "above"
levels anymore.

If a grouptag contains a regular expression the regular expression
is also used as a filter.

* lisp/org-agenda.el (org-agenda-filter-by-tag): improved UI and
  refactoring.

  Now uses the argument arg and optional argument exclude instead of
  strip and narrow.  ARG because the argument has multiple purposes
  and makes more sense than strip now.  The term narrowing is changed
  to exclude.

* lisp/org-agenda.el (org-agenda-filter-by-tag-refine): name change in
  argument to match org-agenda-filter-by-tag.

* lisp/org-agenda.el (org-agenda-filter-make-matcher): new optional
  argument EXPAND and refactoring.

* lisp/org-agenda.el (org-agenda-filter-make-matcher-tag-exp): new
  function, previously baked into org-agenda-filter-make-matcher.

* lisp/org-agenda.el (org-agenda-filter-apply): New optional parameter
  EXPAND, used in call to org-agenda-filter-make-matcher.

* lisp/org-agenda.el (org-agenda-reapply-filters): Uses another
  parameter (the new optional one) in call to org-agenda-filter-apply.

* lisp/org-agenda.el (org-agenda-finalize): use of new parameter in
  call to org-agenda-filter-apply.

* lisp/org-agenda.el (org-agenda-redo): Use of new parameter in call
  to org-agenda-filter-apply.

2 weeks agoorg: Grouptags not unique and can contain regexp
Gustav Wikström [Sat, 24 Jan 2015 01:47:26 +0000]
org: Grouptags not unique and can contain regexp

* lisp/org.el (org-tags-expand): Grouptags can have regular expressions as
  "sub-tags".

  The regular expressions in the group must be marked up within { }.
  Example use:

  : #+TAGS: [ Project : {P@.+} ]

  Searching for the tag Project will now list all tags also including
  regular expression matches for P@.+.  Good for example if tags for a
  certain project is tagged with a common project-identifier,
  i.e. P@2014_OrgTags.

* lisp/org.el (org-tag-alist) : New symbols for grouptags when the
  tags in the group don't have to be distinct on a heading.

  Grouptags had to previously be defined with { }.  This syntax is
  already used for exclusive tags and Grouptags need their own,
  non-exclusive syntax.  This behaviour is achieved with [ ].  Note: {
  } can still be used also for Grouptags but then only one of the
  given tags can be used on the headline at the same time.  Example:

  [ group : sub1 sub2 ]

  Grouptags also are not filtered when setting up tags.  This means
  they can exist multiple times in org-tag-alist list.  It will be
  usable if nesting of grouptags is ever to become reality.

  There is a slightly annoying side-effect when setting tags in that a
  tag which is both a part of a grouptag and a grouptag of it's own
  will get multiple key-choices in the selection-UI.

* lisp/org.el (org--setup-process-tags): Adaption for the added syntax
  for non-distinct grouptags.

* lisp/org.el (org-fast-tag-selection): Add support for the added,
  non-unique, grouptag-syntax.  Minor (if ...) to (when ...) refactor.

2 weeks agoMerge branch 'maint'
Rasmus [Sun, 15 Mar 2015 20:53:13 +0000]
Merge branch 'maint'

2 weeks agoox-man: Change dispatcher key to 'M' maint
Rasmus [Sun, 15 Mar 2015 20:50:07 +0000]
ox-man: Change dispatcher key to 'M'

* ox-man.el (man): Move man-export to 'M' in the ox dispatcher.

Reported by:  Brice Waegenire <brice.wge@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/96071>

2 weeks agoorg-plot: Fix empty cells handling
Nicolas Goaziou [Sun, 15 Mar 2015 17:10:43 +0000]
org-plot: Fix empty cells handling

* lisp/org-plot.el (org-plot/gnuplot-script): Fix empty cells
  handling.

Reported-by: Anders Wirzenius <anders.wirzenius@netikka.fi>
<http://permalink.gmane.org/gmane.emacs.orgmode/96022>

2 weeks agoorg-plot: Tiny fixes
Nicolas Goaziou [Sun, 15 Mar 2015 16:12:01 +0000]
org-plot: Tiny fixes

* lisp/org-plot.el (org-plot/gnuplot-script, org-plot/gnuplot): Tiny
  fixes.

2 weeks agoFix `org-delete-property-globally'
Nicolas Goaziou [Sun, 15 Mar 2015 15:51:36 +0000]
Fix `org-delete-property-globally'

* lisp/org.el (org-delete-property-globally): Ignore false positive.

2 weeks agoFix `org-entry-delete' with accumulated properties
Nicolas Goaziou [Sun, 15 Mar 2015 15:06:42 +0000]
Fix `org-entry-delete' with accumulated properties

* lisp/org.el (org-entry-delete): Remove all occurrences of
  accumulated properties, too.  Return a non-nil value when some
  property was removed.

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

2 weeks agoFix `org-find-entry-with-id'
Nicolas Goaziou [Sun, 15 Mar 2015 11:08:24 +0000]
Fix `org-find-entry-with-id'

* lisp/org.el (org-find-entry-with-id): Ignore false positive ID
  properties when looking for a specific ID.

2 weeks agoFix CUSTOM_ID search
Nicolas Goaziou [Sun, 15 Mar 2015 11:07:40 +0000]
Fix CUSTOM_ID search

* lisp/org.el (org-link-search): Avoid false positives when searching
  CUSTOM_ID property.

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

2 weeks agoImplement `org-find-property'
Nicolas Goaziou [Sun, 15 Mar 2015 10:15:43 +0000]
Implement `org-find-property'

* lisp/org.el (org-find-property): New function.
* testing/lisp/test-org.el (test-org/find-property): New test.

2 weeks agoorg.texi: Fix typos
Rasmus [Sat, 14 Mar 2015 15:05:50 +0000]
org.texi: Fix typos

* org.texi (@LaTeX{} and PDF export): Correct typo.  Remove warning
  about ox-latex documents are incompatible with xetex and luatex.

Reported by: Reuben Thomas <rrt@sc3d.org>
<http://permalink.gmane.org/gmane.emacs.orgmode/96065>

2 weeks agoorg.texi: Small fix
Rasmus [Sat, 14 Mar 2015 12:56:23 +0000]
org.texi: Small fix

* org.texi (In-buffer settings): Include ODT_STYLES_FILE and fix typo.

2 weeks agoox-html: Handle missing title better
Rasmus [Sat, 14 Mar 2015 00:25:48 +0000]
ox-html: Handle missing title better

* ox-html.el (org-html-template): Only insert title when nonnil.

Empty headings trigger a W3 Validator warning.

2 weeks agoox-beamer: Fix hyperref bug
Rasmus [Fri, 13 Mar 2015 20:55:21 +0000]
ox-beamer: Fix hyperref bug

* ox-beamer.el (org-beamer-template): Typeset hyperref as in
  ox-latex.

2 weeks agoorg.el: Declare org-element-update-syntax
Rasmus [Thu, 12 Mar 2015 12:55:06 +0000]
org.el: Declare org-element-update-syntax

* org.el: Declare org-element-update-syntax.  Required by org-add-link-type.

2 weeks agoob-exp: Use `user-error' over `error' when applicable
Nicolas Goaziou [Fri, 13 Mar 2015 08:09:18 +0000]
ob-exp: Use `user-error' over `error' when applicable

* lisp/ob-exp.el (org-babel-exp-process-buffer): Use `user-error'.
  Also keep lines within 80 characters.

2 weeks agoob-exp.el: org-babel-exp-process-buffer reports src block w/o language
Charles Berry [Thu, 12 Mar 2015 02:11:11 +0000]
ob-exp.el: org-babel-exp-process-buffer reports src block w/o language

* lisp/ob-exp.el (org-babel-exp-process-buffer): Issue an error when a
  src block with no language is processed.

Throw an error with an informative message when trying to export buffer
containing `#+src_block\n'.

Reported-by: XIE Yuheng <xyheme@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/95920>

3 weeks agoorg.texi: Remove references to deprecated syntax
Nicolas Goaziou [Wed, 11 Mar 2015 16:33:22 +0000]
org.texi: Remove references to deprecated syntax

* doc/org.texi (Moving subtrees):
(Weekly/daily agenda):
(Categories): Remove references to deprecated syntax.

3 weeks agoFix CATEGORY property
Nicolas Goaziou [Wed, 11 Mar 2015 16:12:49 +0000]
Fix CATEGORY property

* doc/org.texi (Special properties): Remove "CATEGORY"

* lisp/org.el (org-special-properties): Remove "CATEGORY".
(org-property-get-allowed-values): Ignore "CATEGORY".
(org-entry-get): Make sure to get CATEGORY value using
`org-entry-properties'.

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

"CATEGORY" is not a special property as it can also be set using
a properties drawer.

3 weeks agoorg-index.el: version 4.2.0
Marc-Oliver Ihm [Tue, 10 Mar 2015 20:46:52 +0000]
org-index.el: version 4.2.0

3 weeks agoorg-index.el: version 4.2.0
Marc-Oliver Ihm [Tue, 10 Mar 2015 20:45:14 +0000]
org-index.el: version 4.2.0

3 weeks agoox-beamer.el: Update BEAMER_HEADER placement
Matthew Gidden [Mon, 9 Mar 2015 21:25:15 +0000]
ox-beamer.el: Update BEAMER_HEADER placement

* lisp/ox-beamer.el (`beamer-header'): Move BEAMER_HEADER injection to
  final part of preamble (after themes, title, etc.).  Allows for
  custom short titles, etc., with #+BEAMER_HEADER:
  \title[Short]{Long}.

* doc/org.texi: Updated BEAMER_HEADER entry with a relevant footnote.

Previously, TITLE, etc., was being injected after BEAMER_HEADER, so
short titles (and related) could not be added.  BEAMER_HEADER now
serves as a final preamble injection point.

TINYCHANGE

3 weeks agoTiny refactoring
Nicolas Goaziou [Sun, 8 Mar 2015 17:34:09 +0000]
Tiny refactoring

* lisp/org.el (org-timestamp--to-internal-time): New function.
(org-timestamp-format): Use new function.
(org-timestamp-split-range): Fix docstring.

3 weeks agoox-ascii: Fix TOC keyword
Nicolas Goaziou [Sun, 8 Mar 2015 16:47:04 +0000]
ox-ascii: Fix TOC keyword

* lisp/ox-ascii.el (org-ascii--build-toc): Fix TOC keyword.

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

3 weeks agoRevert "org-agenda: Fix small bug"
Nicolas Goaziou [Sun, 8 Mar 2015 00:19:45 +0000]
Revert "org-agenda: Fix small bug"

This reverts commit d92ef9517079359de022465b69fd3f99813d993e.

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