2 weeks agoorg-agenda: Fix a docstring maint
Marco Wahl [Tue, 4 Oct 2016 16:13:57 +0000]
org-agenda: Fix a docstring

* lisp/org-agenda.el(org-agenda-entry-text-maxlines): Docstring fix.

2 weeks agodoc/orgcard.tex: Fix compile-command
Marco Wahl [Sun, 2 Oct 2016 17:07:26 +0000]
doc/orgcard.tex: Fix compile-command

3 weeks agoFix link (un)escaping.
Bastien [Fri, 30 Sep 2016 08:00:18 +0000]
Fix link (un)escaping.

Thanks for David Bremner <> for reporting this
and proposing this fix.

4 weeks agoorg-expiry: Fix the call to `org-expiry-handler-function'
Konubinix [Thu, 6 Nov 2014 08:20:22 +0000]
org-expiry: Fix the call to `org-expiry-handler-function'

* contrib/lisp/org-expiry.el (org-expiry-process-entry): Fix the call to

`org-expiry-handler-function' is meant to be a variable containing the symbol of
a function to be called. Therefore, calling
(funcall 'org-expiry-handler-function) results in a void function error while
(funcall org-expiry-handler-function) correctly calls the contained function.

4 weeks agoBackport commit 2c05061 from Emacs
Michael Albinus [Sun, 7 Aug 2016 11:57:23 +0000]
Backport commit 2c05061 from Emacs

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

Add `make-nearby-temp-file' and `temporary-file-directory'
Michael Albinus
Sun Aug 7 13:57:23 2016 +0200

5 weeks Fix maxima test
Marco Wahl [Mon, 12 Sep 2016 10:21:20 +0000] Fix maxima test

* testing/examples/ Silence maxima to suppress
  lines containing disturbing information.

(Actually this has already been fixed in the master branch some time ago.
I just noticed that the same issue is present on the maint branch.)

5 weeks agoorg-agenda: Skip invisible line at bulk marking
Marco Wahl [Mon, 12 Sep 2016 09:44:49 +0000]
org-agenda: Skip invisible line at bulk marking

* lisp/org-agenda.el (org-agenda-bulk-mark-regexp): When point is on an
  invisible part move point ahead one line (and don't mark that line.)

6 weeks agoorg-table: Fix alignment issue with entities release_8.3.6
Nicolas Goaziou [Mon, 5 Sep 2016 16:08:31 +0000]
org-table: Fix alignment issue with entities

* lisp/org-table.el (org-table-justify-field-maybe): Preserve text
  properties so entities can be properly aligned.

7 weeks agoox-html: Remove duplicate option in back-end
Nicolas Goaziou [Thu, 1 Sep 2016 16:32:16 +0000]
ox-html: Remove duplicate option in back-end

* lisp/ox-html.el (html): Remove spurious :html-link-use-abs-url option.

Reported-by: Arun Isaac <>

7 weeks agoFix ISO Latin1 expansion of \Delta
Aaron Ecay [Thu, 1 Sep 2016 15:48:42 +0000]
Fix ISO Latin1 expansion of \Delta

* lisp/org-entities.el (org-entities): Fix entry for Delta.

Reported by Matthew Junker

7 weeks agoFix scheme expression parsing
Nick Dokos [Wed, 31 Aug 2016 15:51:38 +0000]
Fix scheme expression parsing

* org-babel-scheme-execute-with-geiser: Do not use elisp reader to parse scheme expression.

Reported by Lawrence Bottorff:

and also

7 weeks agoorg-entities: Correct unicode symbol of circ
Konstantin Kliakhandler [Mon, 29 Aug 2016 12:23:11 +0000]
org-entities: Correct unicode symbol of circ

* org-entities.el (org-entities): Change the unicode symbol of circ to
  "ring operator" (#x2218).


7 weeks agoorg-table: Fix column formulas
Nicolas Goaziou [Sun, 28 Aug 2016 22:29:37 +0000]
org-table: Fix column formulas

* lisp/org-table.el (org-table-recalculate): Fix column formulas in
  tables consisting of a single row group.

Reported-by: Michael Welle <>

7 weeks agoox-html: Remove spurious newline at the end of inline source code
Nicolas Goaziou [Sun, 28 Aug 2016 10:01:08 +0000]
ox-html: Remove spurious newline at the end of inline source code

* lisp/ox-html.el (org-html-inline-src-block): Do not call
  `org-html-format-code', which is meant to be used for source blocks

Reported-by: Clément Pit--Claudel <>

8 weeks agoFix typo in a docstring
Nicolas Goaziou [Tue, 23 Aug 2016 08:47:18 +0000]
Fix typo in a docstring

* lisp/org.el (org-link-abbrev-alist): Fix typo.

2 months agoorg-clock: Fix infloop when creating a clock table
Nicolas Goaziou [Fri, 19 Aug 2016 22:22:13 +0000]
org-clock: Fix infloop when creating a clock table

* lisp/org-clock.el (org-clock-sum): Fix infloop when first headline in
  scope has a level strictly greater than 1.

Reported-by: Yichao Woo <>

3 months agoRevert "ob-exp: Remove spurious comma un-escaping" release_8.3.5
Nicolas Goaziou [Sun, 17 Jul 2016 10:04:28 +0000]
Revert "ob-exp: Remove spurious comma un-escaping"

This reverts commit 0279d84cd7f857535342b4ec3c2e70ac76c1ee27.

3 months agoorg-eldoc: Handle source blocks with empty language
Fabrice Popineau [Thu, 7 Jul 2016 09:25:12 +0000]
org-eldoc: Handle source blocks with empty language

* contrib/lisp/org-eldoc.el (org-eldoc-get-src-header): When inserting
  a new src block, the language may not yet be chosen when this is

3 months agoorg-eldoc: Fix "wrong-type-argument symbolp" error
Fabrice Popineau [Thu, 7 Jul 2016 09:26:50 +0000]
org-eldoc: Fix "wrong-type-argument symbolp" error

* contrib/lisp/org-eldoc.el (org-eldoc-documentation-function): The
  doc-fun object may be a function object and not a symbol.

3 months agoFix toggling multiple headings with a TODO keyword
Nicolas Goaziou [Mon, 4 Jul 2016 09:21:14 +0000]
Fix toggling multiple headings with a TODO keyword

* lisp/org.el (org-toggle-item): Remove TODO keyword in each headling
  when changed to an item.

3 months agoorg-entities: Swapped symbols of varphi and phi
Konstantin Kliakhandler [Thu, 30 Jun 2016 14:13:21 +0000]
org-entities: Swapped symbols of varphi and phi

* org-entities.el (org-entities): Swap the unicode symbol of phi and of


3 months agoox: Small fix
Nicolas Goaziou [Mon, 27 Jun 2016 22:28:47 +0000]
ox: Small fix

* lisp/ox.el (org-export--missing-definitions): Fix typo and remove
  useless comment
* testing/lisp/test-ox.el (test-org-export/footnotes): Add test.

3 months agoob-exp: Silence byte compiler
Nicolas Goaziou [Mon, 27 Jun 2016 22:01:48 +0000]
ob-exp: Silence byte compiler

3 months agoorg-element: Remove spurious blank when interpreting a row
Nicolas Goaziou [Mon, 27 Jun 2016 21:59:44 +0000]
org-element: Remove spurious blank when interpreting a row

* lisp/org-element.el (org-element-table-row-interpreter): Remove
  spurious white space.

3 months agoox: Fix typo in comment
Nicolas Goaziou [Mon, 27 Jun 2016 21:58:08 +0000]
ox: Fix typo in comment

* lisp/ox.el (org-export-get-footnote-definition): Fix typo.

3 months agoox: Fix export of footnote definitions in pruned parts of tree
Nicolas Goaziou [Mon, 27 Jun 2016 21:50:58 +0000]
ox: Fix export of footnote definitions in pruned parts of tree

* lisp/ox.el (org-export--missing-definitions):
(org-export--install-footnote-definitions): New functions
(org-export--merge-external-footnote-definitions): Remove function
(org-export--prune-tree): Use new functions.
* testing/lisp/test-ox.el (test-org-export/footnotes): Add tests.

Reported-by: Mark Edgington <>

3 months agoImprove a docstring
Nicolas Goaziou [Fri, 24 Jun 2016 07:21:38 +0000]
Improve a docstring

* lisp/org.el (org-delete-all): Improve docstring.

3 months agoWork around a display bug when previewing LaTeX fragments
Nicolas Goaziou [Wed, 22 Jun 2016 22:33:22 +0000]
Work around a display bug when previewing LaTeX fragments

* lisp/org.el (org-format-latex): Change signature.
* lisp/ox-html.el (org-html-format-latex): Apply signature change.

3 months agoTiny fix to `org-set-effort'
Nicolas Goaziou [Wed, 22 Jun 2016 20:39:50 +0000]
Tiny fix to `org-set-effort'

* lisp/org.el (org-set-effort): Use `equal' instead of `string='.

Since (string= "nil" nil) is non-nil, a "nil" heading could be mistaken
for the current clocked task if `org-clock-current-task' is not bound,
or if there is no current clocked task.

3 months agoMerge branch 'maint' of into maint
Nicolas Goaziou [Wed, 22 Jun 2016 20:36:22 +0000]
Merge branch 'maint' of into maint

3 months agoox: Fix export of empty footnote definitions outside scope
Nicolas Goaziou [Wed, 22 Jun 2016 20:34:53 +0000]
ox: Fix export of empty footnote definitions outside scope

* lisp/ox.el (org-export-get-footnote-definition): When a definition is
  empty, but does exist, return the empty string instead of raising an
* testing/lisp/test-ox.el (test-org-export/get-footnote-definition): New

Reported-by: Mark Edgington <>

4 months agoorg-set-effort: Fix void variable error
Kyle Meyer [Sun, 19 Jun 2016 18:11:25 +0000]
org-set-effort: Fix void variable error

* lisp/org.el (org-set-effort): Check if org-clock-current-task is
  defined because org-clock.el may not be loaded yet.

4 months agoorg-set-effort: Remove extra space in prompt
Kyle Meyer [Sun, 19 Jun 2016 18:11:20 +0000]
org-set-effort: Remove extra space in prompt

* lisp/org.el (org-set-effort): Make spacing across different prompt
  cases consistent.  Simplify prompt concatenation.

4 months agoob-exp: Remove spurious comma un-escaping
Nicolas Goaziou [Fri, 17 Jun 2016 12:16:39 +0000]
ob-exp: Remove spurious comma un-escaping

* lisp/ob-exp.el (org-babel-exp-code): Remove spurious comma

4 months agoFix refiling to an empty headline
Nicolas Goaziou [Thu, 16 Jun 2016 22:39:52 +0000]
Fix refiling to an empty headline

* lisp/org.el (org-refile): Do not assume the headline is not empty.

Reported-by: Fabrice Popineau <>

4 months agoorg-mime: Fix LaTeX image bug in org-mime-org-buffer-htmlize
meditans [Fri, 10 Jun 2016 21:32:05 +0000]
org-mime: Fix LaTeX image bug in org-mime-org-buffer-htmlize

* contrib/lisp/org-mime.el (org-mime-replace-images): Change signature.
Always use temporary directory to create LaTeX images.
(org-mime-compose): Apply signature change above.

When exporting an org buffer with a LaTeX snippet including the Org
option "tex: dvipng" the images were always created in "/tmp/ltxpng/",
but the reported link in the htmlized buffer was the local "./ltxpng"
folder; so, unless the org file to htmlize was actually in "/tmp", the
user got an error saying that the image could not be found.

This was caused by the two different ways in which the function
`org-mime-replace-images' is used inside of
`org-mime-org-buffer-htmlize' and `org-mime-htmlize.'

To correct the problem, the function org-mime-replace-images doesn't
take anymore the current-file parameter (that was only used to get its
directory) and instead always creates a temporary directory using

4 months agoox-rss: Put email address in <author> element
Arun Isaac [Mon, 13 Jun 2016 20:03:54 +0000]
ox-rss: Put email address in <author> element

* contrib/lisp/ox-rss.el (org-rss-headline): Put author's email
  address in <author> element.

The RSS specification requires the email address and the name of the
author to be provided in the <author> element in the format
" (Name)". Currently, only the author's name is
provided. This is invalid RSS.

4 months agoFix typo in test
Nicolas Goaziou [Sat, 11 Jun 2016 11:36:45 +0000]
Fix typo in test

* testing/lisp/test-org.el (test-org/deadline-close): Fix typo.

4 months agoPreserve list visibility when inserting a new item
Nicolas Goaziou [Sat, 11 Jun 2016 11:32:26 +0000]
Preserve list visibility when inserting a new item

* lisp/org.el (org-insert-heading): Do not reveal gratuitously too much
  context before inserting an item.
* testing/lisp/test-org.el (test-org/insert-heading): Add test.

Reported-by: Steinar Bang <>

4 months agoRemove reference to removed function in menu
Nicolas Goaziou [Fri, 10 Jun 2016 16:22:16 +0000]
Remove reference to removed function in menu

* lisp/org.el (org-org-menu): Remove reference to

Reported-by: Giacomo M <>

4 months agoMake today's deadlines "close" without lead time
Don March [Wed, 1 Jun 2016 04:05:12 +0000]
Make today's deadlines "close" without lead time

* lisp/org.el (org-deadline-close): A timestamp is close if the days
  between now and the timestamp are less then or equal to the days of
  lead time.

* testing/lisp/test-org.el: Add tests for org-deadline-close.

4 months agoAdd tests for tag width calculation
Yasushi SHOJI [Tue, 31 May 2016 07:25:42 +0000]
Add tests for tag width calculation

* testing/lisp/test-org.el (test-org/tag-align): New test.

4 months agoFix tag width calculation for multi-column chars
Yasushi SHOJI [Tue, 31 May 2016 07:25:42 +0000]
Fix tag width calculation for multi-column chars

* lisp/org.el (org-align-tags-here): Fix tag width calculation for
  multi-column chars.

Some characters have multiple column width.  Calculating string width
with points gives a wrong value than actual display width.  Use
`string-width' instead.

Here is an ECM for this problem.  `M-x org-update-statistics-cookies` or
`C-c #` on bar moves the tag on the headline.

* foo [0/0] :abc:
** child
* bar [0/0]      :日本語:
** child
         1         2         3         4         5         6         7         8

4 months agoFix TODO case-sensitivity in `org-get-heading'
Nicolas Goaziou [Wed, 1 Jun 2016 12:49:59 +0000]
Fix TODO case-sensitivity in `org-get-heading'

* lisp/org.el (org-get-heading): Prevent removing false-positive TODO
  keywords due to case-insensitivity.
* testing/lisp/test-org.el (test-org/get-heading): New test.

4 months agoFix case-sensitivity of TODO keywords in imenu
Nicolas Goaziou [Tue, 31 May 2016 22:43:28 +0000]
Fix case-sensitivity of TODO keywords in imenu

* lisp/org.el (org-imenu-get-tree): Todo keywords are case-sensitive.

Reported-by: Georgiy Tugai <>

4 months agoFix `org-in-regexp'
Nicolas Goaziou [Sat, 31 Oct 2015 22:19:51 +0000]
Fix `org-in-regexp'

* lisp/org.el (org-in-regexp): Fix VISUALLY optional argument.  Also
  prevent useless searches past the point.  Improve docstring.

* testing/lisp/test-org.el (test-org/in-regexp): New test.

4 months agoRefuse to follow link right after the link
Nicolas Goaziou [Sat, 31 Oct 2015 22:32:47 +0000]
Refuse to follow link right after the link

* lisp/org.el (org-open-at-point):
(org-return): Refuse to follow link right after the link.

* testing/lisp/test-org.el (test-org/return): Add tests.
(test-org/fuzzy-links): Update tests.

Reported-by: "Stefan-W. Hahn" <>

4 months agoox-rss: Encode characters to their XML entities
Arun Isaac [Thu, 26 May 2016 12:05:42 +0000]
ox-rss: Encode characters to their XML entities

* contrib/lisp/ox-rss.el (org-rss-build-channel-info, org-rss-headline):
  Encode disallowed characters in `title' to their XML entities.

The `title' field is user specified and may contain characters such as
"&", "<" or ">" that are disallowed in XML.  These characters should be
encoded into their corresponding XML entities.

4 months agoorg-agenda: Effectively preserve persistent bulk marks
Nicolas Goaziou [Thu, 26 May 2016 08:51:58 +0000]
org-agenda: Effectively preserve persistent bulk marks

* lisp/org-agenda.el (org-agenda-change-all-lines): Preserve bulk mark
  overlay when replacing an entry.

Reported-by: Jesse Johnson <>

4 months agoorg-agenda: Add missing docstring
Nicolas Goaziou [Thu, 26 May 2016 08:51:27 +0000]
org-agenda: Add missing docstring

* lisp/org-agenda.el (org-agenda-bulk-marked-p): Add missing docstring.

4 months agoMerge branch 'maint' of into maint
Rasmus [Mon, 23 May 2016 07:06:56 +0000]
Merge branch 'maint' of into maint

4 months agoox-latex: Detect languages irrespective of case
Rasmus [Mon, 23 May 2016 06:45:54 +0000]
ox-latex: Detect languages irrespective of case

* ox-latex.el (org-latex-guess-babel-language):
* ox-latex.el (org-latex--format-spec): Detect languages correctly
  irrespective of case.

4 months agoorg-table: Fix 4914f89
Nicolas Goaziou [Sun, 22 May 2016 23:19:29 +0000]
org-table: Fix 4914f89

* lisp/org-table.el (orgtbl-setup): Fix improper key binding

Reported-by: Alex <>

4 months agoorg-list: Fix `org-list-send-list' in LaTeX buffers
Nicolas Goaziou [Sun, 22 May 2016 23:12:51 +0000]
org-list: Fix `org-list-send-list' in LaTeX buffers

* lisp/org-list.el (org-list-send-list): Find correct translator.

Reported-by: Charles Millar <>

5 months agoox-html: Find preamble-spec case-insensitively
Rasmus [Sun, 22 May 2016 13:30:11 +0000]
ox-html: Find preamble-spec case-insensitively

* ox-html.el (org-html--build-pre/postamble): Find the spec based on the
  language case-insensitively.

Note that the default org-html-preamble-format and
org-export-default-language are incompatible.

5 months agoorg-table: Fix DEL using orgtbl minor mode in prog derived mode
Nicolas Goaziou [Sat, 21 May 2016 12:39:26 +0000]
org-table: Fix DEL using orgtbl minor mode in prog derived mode

* lisp/org-table.el (orgtbl-setup): Hijack DEL key.  We also hijack
  `delete-backward-char' but major modes derived from `prog-mode'
  usually bypass it.

Reported-by: Alex G <>

5 months agoorg-table: Fix orgtbl-self-insert-command on white spaces
Nicolas Goaziou [Fri, 20 May 2016 21:03:18 +0000]
org-table: Fix orgtbl-self-insert-command on white spaces

* lisp/org-table.el (orgtbl-self-insert-command): Properly overwrite
  white spaces when there is room for it.  This is on par with what
  `org-self-insert-command' does in Org tables.

Reported-by: Alex <>

5 months agoorg-agenda: Fix agenda filter by empty tag string
Nicolas Goaziou [Thu, 19 May 2016 08:31:27 +0000]
org-agenda: Fix agenda filter by empty tag string

* lisp/org-agenda.el (org-agenda-filter-make-matcher-tag-exp): Handle
  empty tag strings.

Reported-by: Eric Abrahamsen <>

5 months agoorg-capture: Support all capture template target-file variants in Customize
Phil Hudson [Mon, 16 May 2016 08:34:30 +0000]
org-capture: Support all capture template target-file variants in Customize

* lisp/org-capture.el (`org-capture-templates'): Adjust the
  `org-capture-templates' defcustom template to support specifying the capture
  target file using either a literal pathname, a function, a variable or a
  form, as documented.  Previously the Customize UI supported specifying only a
  literal pathname.
  (org-capture-templates): Clarify the documentation for the `function' method
  for setting up the capture target.

* doc/org.texi (Template elements): Clarify the `function' method for setting up
  the capture target.

5 months agoFix remaining declare-function issues
Kyle Meyer [Sun, 15 May 2016 21:42:47 +0000]
Fix remaining declare-function issues

* lisp/ob-shell.el (org-babel-comint-in-buffer):
* lisp/org-table.el (org-export-create-backend):
* lisp/org.el (org-babel-do-in-edit-buffer): Indicate that FN is not a
* lisp/ob-tangle.el (org-string-nw-p):
* lisp/org-table.el (org-export-create-backend):
(org-export-table-row-is-special-p): Correct source file name.
* lisp/ob-R.el (ess-wait-for-process):
* lisp/org-clock.el (calendar-iso-to-absolute):
* lisp/org-list.el (org-previous-line-empty-p):
* lisp/org-pcomplete.el (org-entry-properties):
* lisp/org-table.el (org-export-data-with-backend):
* lisp/org.el (org-element-interpret-data): Correct argument list.

5 months agoorg-compat: Quiet font-lock-fontify-buffer warning
Kyle Meyer [Sun, 15 May 2016 20:02:02 +0000]
org-compat: Quiet font-lock-fontify-buffer warning

* lisp/org-compat.el (org-font-lock-ensure): Quiet byte compiler warning
  about font-lock-fontify-buffer.

5 months agoorg-compat: Check for w32-focus-frame
Kyle Meyer [Sun, 15 May 2016 17:53:14 +0000]
org-compat: Check for w32-focus-frame

* lisp/org-compat.el (org-select-frame-set-input-focus): Check for
  w32-focus-frame to quiet byte compiler.

Don't use declare-function because this function was marked obsolete in
Emacs 23.1 (44fe0f6).

5 months agoorg-gnus: Check nnimap-group-overview-filename
Kyle Meyer [Sun, 15 May 2016 16:56:29 +0000]
org-gnus: Check nnimap-group-overview-filename

* lisp/org-gnus.el (org-gnus-nnimap-cached-article-number): Check that
  nnimap-group-overview-filename, which was removed from Emacs in 2010,
  is defined before calling.

5 months agoFix up last backport
Kyle Meyer [Sun, 15 May 2016 16:24:59 +0000]
Fix up last backport

* lisp/org.el (org-export-backend-options): Add back removed
declare-function call.
* lisp/ob-awk.el (orgtbl-to-generic):
* lisp/ob-core.el (orgtbl-to-generic):
* lisp/ob-gnuplot.el (orgtbl-to-generic): Remove BACKEND argument from
declare-function calls.

The last backport added this argument to match orgtbl-to-generic's
signature in Emacs's version of Org, but the BACKEND argument to
orgtbl-to-generic was later removed in 9209aa3 (org-table: Use "ox.el"
internally for radio tables, 2014-08-24).

5 months agoBackport commit 65c8c7c from Emacs
Paul Eggert [Sun, 15 May 2016 02:56:53 +0000]
Backport commit 65c8c7c from Emacs

* lisp/ob-awk.el (orgtbl-to-generic):
* lisp/ob-core.el (orgtbl-to-generic):
* lisp/ob-exp.el (org-element-context):
* lisp/ob-gnuplot.el (org-time-string-to-time)
* lisp/ob-haskell.el (org-export-to-file):
* lisp/ob-latex.el (org-create-formula-image)
* lisp/ob-python.el (run-python):
* lisp/ob-tangle.el (org-link-escape, org-back-to-heading):
* lisp/org-colview.el (org-agenda-redo):
* lisp/org-feed.el (url-retrieve-synchronously):
* lisp/org-info.el (Info-find-node):
* lisp/org-list.el (org-previous-line-empty-p):
* lisp/org-macs.el (org-string-match-p):
* lisp/org.el (org-beamer-mode):
Fix prototype to match current definition.
* lisp/ob-comint.el (tramp-flush-directory-property):
* lisp/ob-tangle.el (org-babel-update-block-body):
* lisp/org-bibtex.el (org-babel-trim):
* lisp/org-pcomplete.el (org-export-backend-options):
* lisp/org-protocol.el (org-publish-get-project-from-filename):
Fix file name in declare-function.
* lisp/ob-comint.el (with-parsed-tramp-file-name)
* lisp/ob-core.el (with-parsed-tramp-file-name):
* lisp/org.el (org-beamer-mode):
Append ‘t’ to declare-function, since the declaration isn’t a defun.
* lisp/ob-core.el (org-save-outline-visibility):
Remove; not needed.
* lisp/ob-scheme.el (run-geiser, geiser-mode)
(geiser-eval-region, geiser-repl-exit):
* lisp/ox-org.el (htmlize-buffer):
Prepend "ext:" to file name, since it is not part of Emacs.
* lisp/org-gnus.el (nnimap-group-overview-filename):
Remove decl, since function was removed.
* lisp/org-macro.el (org-with-wide-buffer):
Omit unnecessary (and mismatching) decl.
* lisp/org-clock.el (calendar-iso-to-absolute):
Declare calendar-iso-to-absolute instead, since it is the
non-obsolete version of this function.
* lisp/org-compat.el (w32-focus-frame):
Remove decl, since function is now obsolete.

Pacify ‘make check-declare’
Paul Eggert
Sat May 14 19:57:44 2016 -0700

5 months agoox-rss: Prevent dropping lower level headlines
Arun Isaac [Thu, 12 May 2016 03:51:18 +0000]
ox-rss: Prevent dropping lower level headlines

* contrib/lisp/ox-rss.el (org-rss-headline): Transcode lower level
  headlines (headlines with level > 1) using the html backend.  Do not
  drop them.

Previously, lower level headlines were dropped and did not appear in the
exported RSS output.

5 months agoorg-agenda: Fix `org-agenda-bulk-custom-functions' supported Customize type
Nicolas Goaziou [Wed, 11 May 2016 20:49:25 +0000]
org-agenda: Fix `org-agenda-bulk-custom-functions' supported Customize type

* org-agenda.el (`org-agenda-bulk-custom-functions'): Change the defcustom
  template to recognize that the code expects this alist's elements to be
  two-element lists like (?a b), not conses like (?a . b).

The Customize UI previously incorrectly presented the latter.  When
saved, this led to the agenda bulk-commands menu correctly presenting
the accelerator key 'a' but then erroring when it tried to execute the
associated command 'b'.

5 months agoorg-clock: Fix `org-clock-drawer-name'
Nicolas Goaziou [Wed, 11 May 2016 16:44:02 +0000]
org-clock: Fix `org-clock-drawer-name'

* lisp/org-clock.el (org-clock-drawer-name): When
  `org-clock-into-drawer' is a number and `org-log-into-drawer' is t,
  default to "LOGBOOK".

* testing/lisp/test-org-clock.el (test-org-clock/into-drawer):
(test-org-clock/drawer-name): New tests.

5 months agoorg-clock: Fix generated drawer when `org-clock-into-drawer' is numerical
Nicolas Goaziou [Tue, 10 May 2016 20:29:53 +0000]
org-clock: Fix generated drawer when `org-clock-into-drawer' is numerical

* lisp/org-clock.el (org-clock-find-position): Create a default
  "LOGBOOK" drawer when `org-clock-into-drawer' is a numeric value.

Reported-by: Carlos Noguera <>

5 months agoFix `org-occur' when regexp matches a single char
Nicolas Goaziou [Thu, 5 May 2016 08:18:21 +0000]
Fix `org-occur' when regexp matches a single char

* lisp/org.el (org-occur): Fix infloop when regexp matches a single
  char.  Improve docstring.

(org-check-dates-range): Match correct object since point may be at the
beginning of the next one.

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

5 months agoFix `org-occur' when called non-interactively
Nicolas Goaziou [Thu, 5 May 2016 09:45:35 +0000]
Fix `org-occur' when called non-interactively

* lisp/org.el (org-first-headline-recenter): Check if current buffer is
  actually displayed in a window before trying to recenter view.

5 months agoorg-agenda: Fix error on empty headlines
Nicolas Goaziou [Wed, 4 May 2016 11:34:08 +0000]
org-agenda: Fix error on empty headlines

* lisp/org-agenda.el (org-agenda-get-timestamps):
(org-agenda-get-blocks): Handle empty headlines.

5 months agoFix `org-flag-drawer' with optional argument
Nicolas Goaziou [Sat, 30 Apr 2016 23:27:30 +0000]
Fix `org-flag-drawer' with optional argument

* lisp/org.el (org-flag-drawer): Do not require point to be at a drawer
  in order to call the function with an optional argument.

* testing/lisp/test-org.el (test-org/flag-drawer): Narrow test.

5 months agoFix multiple groups of mutually exclusive tags
Nicolas Goaziou [Thu, 28 Apr 2016 20:04:49 +0000]
Fix multiple groups of mutually exclusive tags

* lisp/org.el (org-set-tags): Use a subtler mechansim to remove
  duplicate tags.  This fixes a bug introduced in 77b4fad.

Reported-by: Christoph LANGE <>

5 months agoFix storing links to headlines containing multiple links
Nicolas Goaziou [Tue, 26 Apr 2016 18:59:33 +0000]
Fix storing links to headlines containing multiple links

* lisp/org.el (org-store-link): Fix storing links to headlines
  containing multiple links.

* testing/lisp/test-org.el (test-org/store-link): New test.

Reported-by: Georgiy Tugai <>

5 months agoFix links to elements with a name
Nicolas Goaziou [Tue, 26 Apr 2016 16:58:01 +0000]
Fix links to elements with a name

* lisp/org.el (org-store-link): Properly handle elements with a NAME

5 months agoox-ascii: Fix spurious links
Nicolas Goaziou [Tue, 26 Apr 2016 11:23:47 +0000]
ox-ascii: Fix spurious links

* lisp/ox-ascii.el (org-ascii--unique-links): Fix spurious links.

Reported-by: Samuel Wales <>

5 months agoorg-yank: Correct docstring
Kyle Meyer [Sat, 23 Apr 2016 21:36:11 +0000]
org-yank: Correct docstring

* lisp/org.el (org-yank): Update docstring for change in default value
  of org-yank-adjusted-subtrees.

The default value was changed to nil in 2949012 (Change default values
of some variables., 2009-02-01).

Reported-by: Jorge Peixoto de Morais Neto <>

6 months agoox-odt: Fix styles location
Nicolas Goaziou [Tue, 19 Apr 2016 19:30:39 +0000]
ox-odt: Fix styles location

* lisp/ox-odt.el (org-odt-styles-dir-list): Point to correct location
  for styles.

Reported-by: Colin Baxter <>

6 months agoRemove duplicate candidates when setting tags
Nicolas Goaziou [Mon, 18 Apr 2016 23:34:27 +0000]
Remove duplicate candidates when setting tags

* lisp/org.el (org-set-tags): Remove duplicate candidates from menu.

6 months agoFix "Invalid time zone specification" error
Nicolas Goaziou [Sat, 16 Apr 2016 09:33:28 +0000]
Fix "Invalid time zone specification" error

* lisp/org.el (org-timestamp-change): Correctly handle `encode-time'

Suggested-by: Derek Feichtinger <>
Reported-by: Eric Abrahamsen <>

6 months agoorg.texi: Fix typo
Nicolas Goaziou [Sat, 16 Apr 2016 09:30:31 +0000]
org.texi: Fix typo

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

Reported-by: Lee <>

6 months agoFix typo
Nicolas Goaziou [Thu, 14 Apr 2016 07:17:34 +0000]
Fix typo

* lisp/org.el (org-property--local-values): Fix typo in doc string.

6 months agoorg-capture: Fix invalid table line specification
Nicolas Goaziou [Wed, 13 Apr 2016 21:47:36 +0000]
org-capture: Fix invalid table line specification

* lisp/org-capture.el (org-capture-place-table-line): Move point in
  front of the table before trying to analyze it.

Reported-by: Christian Moe <>

6 months agoox-ascii: Fix export of links in headlines
Nicolas Goaziou [Wed, 13 Apr 2016 21:16:25 +0000]
ox-ascii: Fix export of links in headlines

* lisp/ox-ascii.el (org-ascii--unique-links):
(org-ascii-section): Fix export of links in headlines.

Reported-by: Samuel Wales <>

6 months agoUpdate format-time-string calls for argument change
Kyle Meyer [Mon, 11 Apr 2016 04:32:08 +0000]
Update format-time-string calls for argument change

* lisp/org.el (org-timestamp-format):
* lisp/ox-icalendar.el (org-icalendar-convert-timestamp): Specify t for
  the ZONE argument of format-time-string to indicate UTC.

As of Emacs's af32fa9 (New optional ZONE arg for format-time-string
etc., 2015-07-26), UTC is indicated by passing t as the third argument
to format-time-string rather than any non-nil value.

This change is in place of a backport of Emacs's b787d55 (More
format-time-string change fixups, 2016-04-02), which would not work for
earlier versions of Emacs.

6 months agoorgguide: Fix mis-uses of itemx
Nicolas Goaziou [Fri, 8 Apr 2016 20:51:04 +0000]
orgguide: Fix mis-uses of itemx

* doc/orgguide.texi (Agenda commands): Fix mis-uses of itemx.

Reported-by: Jean-Christophe Helary <>

6 months agoox-texinfo: Fix erroneous count of blank lines in menu
Nicolas Goaziou [Wed, 6 Apr 2016 20:26:08 +0000]
ox-texinfo: Fix erroneous count of blank lines in menu

* lisp/ox-texinfo.el (org-texinfo-section):
(org-texinfo--build-menu): Normalize empty lines in generated menu.

Reported-by: Jonas Bernoulli <>

6 months agoox-html: Fix planning info export
Nicolas Goaziou [Wed, 30 Mar 2016 15:17:07 +0000]
ox-html: Fix planning info export

* lisp/ox-html.el (org-html-planning): Properly escape angle brackets in

Reported-by: Keith Sutton <>

6 months agoFix indentation bug
Nicolas Goaziou [Wed, 30 Mar 2016 13:34:24 +0000]
Fix indentation bug

* lisp/org.el (org--get-expected-indentation): Return correct columns
  when at the end of an empty item.
* testing/lisp/test-org.el (test-org/indent-line): Add test.

6 months agoox-html: Fix Usenet links
Nicolas Goaziou [Mon, 28 Mar 2016 09:06:56 +0000]
ox-html: Fix Usenet links

* lisp/ox-html.el (org-html-link): Properly export Usenet links.

Reported-by: Michael Welle <>

6 months agoob-C: use size_t in babel D
Thierry Banel [Sun, 20 Mar 2016 14:24:14 +0000]
ob-C: use size_t in babel D

* lisp/ob-C.el (org-babel-C-header-to-C): change ulong to size_t for
  indexing a table as mandated by the latest version of the D language
  (thanks to Chris Andrews)

6 months agoorg-table: Add tests
Nicolas Goaziou [Fri, 25 Mar 2016 23:20:08 +0000]
org-table: Add tests

* testing/lisp/test-org-table.el (test-org-table/eval-formula):
(test-org-table/last-rc): New tests.
(test-org-table/first-rc): Add tests.

6 months agoorg-table: Fix docstrings
Nicolas Goaziou [Fri, 25 Mar 2016 22:11:34 +0000]
org-table: Fix docstrings

* lisp/org-table.el (org-table-eval-formula): Nowadays, Calc is
  installed with Emacs, so there is no need to specify this.  Also
  remove hard-coded "C-u".
(org-table-recalculate): Fix code typo.

6 months agoorg-table: Fix #ERROR in table formula with "@>"
Nicolas Goaziou [Fri, 25 Mar 2016 21:17:08 +0000]
org-table: Fix #ERROR in table formula with "@>"

* lisp/org-table.el (org-table-eval-formula): Expand first and last
  references into proper fields coordinates before replacing ranges.

Reported-by: Pablo S. Casas <>

6 months agoorg.texi: Fix typo
Nicolas Goaziou [Fri, 25 Mar 2016 13:26:09 +0000]
org.texi: Fix typo

* doc/org.texi (HTML doctypes): Special block names are case-sensitive.

Reported-by: Guilherme Gondim <>

6 months agoorg-table: Silence byte-compiler
Nicolas Goaziou [Thu, 24 Mar 2016 21:12:58 +0000]
org-table: Silence byte-compiler

6 months agoorg.texi: Fix typo
Nicolas Goaziou [Thu, 24 Mar 2016 13:02:24 +0000]
org.texi: Fix typo

* doc/org.texi (@LaTeX{} specific attributes): Fix typo.

Reported-by: Eduardo Mercovich <>

6 months agoorg-table: Fix LaTeX snippets in radio tables
Nicolas Goaziou [Thu, 24 Mar 2016 12:51:40 +0000]
org-table: Fix LaTeX snippets in radio tables

* lisp/org-table.el (orgtbl-to-generic): Call back-end specific filters.
* testing/lisp/test-org-table.el (test-org-table/to-latex): Add test.

Reported-by: Uwe Brauer <>

7 months agoRemove failing test
Nicolas Goaziou [Thu, 17 Mar 2016 16:15:17 +0000]
Remove failing test

* testing/lisp/test-ox.el (test-org-export/activate-smart-quotes):
  Comment out failing test.