org-mode.git
5 days agoorg-expiry: Fix the call to `org-expiry-handler-function' maint
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'.

`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.

9 days 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'
2c0506173d92dd9d6de409a045668c6b5cf1fcef
Michael Albinus
Sun Aug 7 13:57:23 2016 +0200

2 weeks agoob-maxima-test.org: Fix maxima test
Marco Wahl [Mon, 12 Sep 2016 10:21:20 +0000]
ob-maxima-test.org: Fix maxima test

* testing/examples/ob-maxima-test.org: 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.)

2 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.)

3 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.

3 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 <arunisaac@systemreboot.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/108952>

3 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

3 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:

http://lists.gnu.org/archive/html/emacs-orgmode/2016-08/msg00328.html

and also

https://lists.gnu.org/archive/html/emacs-orgmode/2015-09/msg00390.html

4 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).

TINYCHANGE

4 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 <mwe012008@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/108886>

4 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
  only.

Reported-by: Clément Pit--Claudel <clement.pit@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108890>

5 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.

5 weeks 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 <wooyichao@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/108606>

2 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.

2 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
  called.

2 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.

2 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.

2 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
  varphi.

TINYCHANGE

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-as):
(org-export--prune-tree): Use new functions.
* testing/lisp/test-ox.el (test-org-export/footnotes): Add tests.

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

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.
(org-toggle-latex-fragment):
* 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 orgmode.org:org-mode into maint
Nicolas Goaziou [Wed, 22 Jun 2016 20:36:22 +0000]
Merge branch 'maint' of orgmode.org:org-mode 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
  error.
* testing/lisp/test-ox.el (test-org-export/get-footnote-definition): New
  test.

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

3 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.

3 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.

3 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
  un-escaping.

3 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 <fabrice.popineau@supelec.fr>
<http://permalink.gmane.org/gmane.emacs.orgmode/107772>

3 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-htmlize):
(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
temporary-file-directory.

3 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
"email@domain.com (Name)". Currently, only the author's name is
provided. This is invalid RSS.

3 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.

3 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 <sb@dod.no>
<http://permalink.gmane.org/gmane.emacs.orgmode/107665>

3 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
  `org-beamer-insert-options-template'.

Reported-by: Giacomo M <jackjackk@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107658>

3 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.

3 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.

3 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
12345678901234567890123456789012345678901234567890123456789012345678901234567890
         1         2         3         4         5         6         7         8

3 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.

3 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 <georgiy.tugai@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107500>

3 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.

3 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/coderef):
(test-org/custom-id):
(test-org/fuzzy-links): Update tests.

Reported-by: "Stefan-W. Hahn" <stefan.hahn@s-hahn.de>
<http://permalink.gmane.org/gmane.emacs.orgmode/102054>

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 <holocronweaver@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107299>

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 orgmode.org:org-mode into maint
Rasmus [Mon, 23 May 2016 07:06:56 +0000]
Merge branch 'maint' of orgmode.org:org-mode 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
  specification.

Reported-by: Alex <agrambot@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107287>

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 <millarc@verizon.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/107290>

4 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.

4 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 <agrambot@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107232>

4 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 <agrambot@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/107112>

4 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 <eric@ericabrahamsen.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/107121>

4 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.

4 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):
(org-babel-comint-with-output):
* lisp/org-table.el (org-export-create-backend):
* lisp/org.el (org-babel-do-in-edit-buffer): Indicate that FN is not a
defun.
* lisp/ob-tangle.el (org-string-nw-p):
* lisp/org-table.el (org-export-create-backend):
(org-export-data-with-backend):
(org-export-filter-apply-functions):
(org-export-first-sibling-p):
(org-export-get-backend):
(org-export-get-environment):
(org-export-install-filters):
(org-export-table-has-special-column-p):
(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):
(org-export-get-environment):
* lisp/org.el (org-element-interpret-data): Correct argument list.

4 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.

4 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).

4 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.

4 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).

4 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)
(orgtbl-to-generic):
* lisp/ob-haskell.el (org-export-to-file):
* lisp/ob-latex.el (org-create-formula-image)
(org-latex-compile):
* 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’
65c8c7cb96c14f9c6accd03cc8851b5a3459049e
Paul Eggert
Sat May 14 19:57:44 2016 -0700

4 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.

4 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'.

4 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.

4 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 <carlos.francisco.noguera@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106886>

4 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-before-date):
(org-check-after-date):
(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.

4 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.

4 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-deadlines):
(org-agenda-get-scheduled):
(org-agenda-get-blocks): Handle empty headlines.

4 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 <math.semantic.web@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106763>

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 <georgiy.tugai@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106606>

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
  keyword.

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 <samologist@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106667>

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 <jorge13515@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106610>

5 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 <m43cap@yandex.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106209>

5 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.

5 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'
  parameters.

Suggested-by: Derek Feichtinger <dfeich@gmail.com>
Reported-by: Eric Abrahamsen <eric@ericabrahamsen.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/106344>

5 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 <maplainfly@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106430>

5 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.

5 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 <mail@christianmoe.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106356>

5 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-headline):
(org-ascii-section): Fix export of links in headlines.

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

5 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.

5 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 <jean.christophe.helary@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/106211>

5 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 <jonas@bernoul.li>
<http://permalink.gmane.org/gmane.emacs.orgmode/106145>

5 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
  time-stamps.

Reported-by: Keith Sutton <kesutt@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/105945>

5 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 <mwe012008@gmx.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/105915>

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 <pabloscasas@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/105895>

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 <guilherme@semente.io>
<http://permalink.gmane.org/gmane.emacs.orgmode/105896>

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 <eduardo@mercovich.net>
<http://permalink.gmane.org/gmane.emacs.orgmode/105873>

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 <oub@mat.ucm.es>
<http://permalink.gmane.org/gmane.emacs.orgmode/105876>

6 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.

6 months agoFix indentation bug
Nicolas Goaziou [Thu, 17 Mar 2016 15:50:54 +0000]
Fix indentation bug

* lisp/org.el (org--get-expected-indentation): Fix indentation.
* testing/lisp/test-org.el (test-org/indent-line): Add test.

6 months agoox-confluence: Do not generate filled paragraphs
M. P. Ashton [Wed, 16 Mar 2016 21:35:36 +0000]
ox-confluence: Do not generate filled paragraphs

* contrib/lisp/ox-confluence.el: (org-confluence-paragraph): New function.
(confluence): Use new function.

ox-confluence was generating filled paragraphs.  Since Confluence treats
each newline as a line break, this caused unexpected formatting.  Added
a paragraph function to generate unfilled paragraphs (taken from
ox-md.el).

6 months agoorg-agenda: Fix bulk re-scheduling
Nicolas Goaziou [Wed, 16 Mar 2016 21:07:16 +0000]
org-agenda: Fix bulk re-scheduling

* lisp/org-agenda.el (org-agenda-bulk-action): Fix rescheduling TODO items with `org-log-reschedule' set to `note'.

Reported-by: Allen Li <darkfeline@felesatra.moe>
<http://permalink.gmane.org/gmane.emacs.orgmode/105591>