org-mode.git
2 years agoorg.el (org-refile--get-location): New internal function release_8.2.5h
Bastien Guerry [Thu, 30 Jan 2014 11:42:13 +0000]
org.el (org-refile--get-location): New internal function

* org.el (org-refile--get-location): New internal function
using a wider set of possible refile locations.
(org-refile-get-location): Use it.

2 years agoorg.el (org-refile): Fix bug when refiling the last subtree
Bastien Guerry [Thu, 30 Jan 2014 11:21:39 +0000]
org.el (org-refile): Fix bug when refiling the last subtree

* org.el (org-refile): Fix bug when refiling the last subtree
of the buffer: don't leave out the last character.

2 years agoorg.el (org-sort-entries): Restore the point location when there is nothing to sort
Bastien Guerry [Thu, 30 Jan 2014 10:59:25 +0000]
org.el (org-sort-entries): Restore the point location when there is nothing to sort

* org.el (org-sort-entries): Restore the point location when
there is nothing to sort.

2 years agoorg-table.el (org-table-field-info): Throw a user error when not at a table
Bastien Guerry [Thu, 30 Jan 2014 10:58:28 +0000]
org-table.el (org-table-field-info): Throw a user error when not at a table

* org-table.el (org-table-field-info): Throw a user error when
not at a table.

2 years agoorg-agenda.el (org-agenda-drag-line-forward): Call`org-agenda-mark-clocking-task...
Bastien Guerry [Thu, 30 Jan 2014 10:57:43 +0000]
org-agenda.el (org-agenda-drag-line-forward): Call`org-agenda-mark-clocking-task' when done

* org-agenda.el (org-agenda-drag-line-forward): Call
`org-agenda-mark-clocking-task' when done.
(org-agenda-mark-clocking-task): Small refactoring.

2 years agoorg.el (org-store-link): Fix selection of the function to store the link
Benjamin Drieu [Wed, 29 Jan 2014 13:57:45 +0000]
org.el (org-store-link): Fix selection of the function to store the link

* org.el (org-store-link): Fix selection of the function to
store the link.

2 years agoob-exp: Fix switches handling upon exporting
Nicolas Goaziou [Wed, 29 Jan 2014 08:01:43 +0000]
ob-exp: Fix switches handling upon exporting

* lisp/ob-exp.el (org-babel-exp-code-template): Include switches in
  template.
(org-babel-exp-code): Provide %switches placeholder.
* testing/lisp/test-ob-exp.el (ob-export/export-src-block-with-switches):
  New test.
(ob-export/export-src-block-with-flags): Fix indentation.

This fixes dde6af3a6230b37aabfb4f75c2dee89433958375.  The confusion
came from the fact that "flags" placeholder had two meanings:
the :flags value and the block's switches (e.g., "-n").  This patch
separates these two meanings.

2 years agoorg.texi (Literal examples): Fix typo
Bastien Guerry [Tue, 28 Jan 2014 10:20:29 +0000]
org.texi (Literal examples): Fix typo

* org.texi (Literal examples): Fix typo.

2 years agoORG-NEWS: Notify "QUOTE" keywords deprecation
Nicolas Goaziou [Mon, 27 Jan 2014 20:42:23 +0000]
ORG-NEWS: Notify "QUOTE" keywords deprecation

2 years agoox-latex: Fix :options discrepancy between blocks and lists
Nicolas Goaziou [Sat, 25 Jan 2014 13:54:04 +0000]
ox-latex: Fix :options discrepancy between blocks and lists

* lisp/ox-latex.el (org-latex-plain-list): Do not automatically
  enclose value for :options attribute within square brackets.
  Instead, append them verbatim next to the block name, as special
  blocks do.
* doc/org.texi (@LaTeX{} specific attributes): Update manual.

2 years agoFix e52599
Bastien Guerry [Sat, 25 Jan 2014 13:49:17 +0000]
Fix e52599

Thanks to Matt Lundin for reporting this.

2 years agoFix 77458b
Bastien Guerry [Fri, 24 Jan 2014 11:17:08 +0000]
Fix 77458b

2 years agoob-ref: Fix "Marker points into wrong buffer" error
Achim Gratz [Tue, 12 Nov 2013 20:55:53 +0000]
ob-ref: Fix "Marker points into wrong buffer" error

* lisp/ob-ref.el (org-babel-ref-parse): If
  `org-babel-current-src-block-location' is a marker, it can be from
  another buffer, use marker-position instead in this case.

Introduced with r114064 on Emacs trunk.  Not sure if this is a bug in
Org or Emacs, but the patch restores the previous behaviour.

2 years agoFix dac6d8
Bastien Guerry [Wed, 22 Jan 2014 16:10:55 +0000]
Fix dac6d8

2 years agoorg-compat.el (org-set-transient-map): New alias
Bastien Guerry [Wed, 22 Jan 2014 10:42:51 +0000]
org-compat.el (org-set-transient-map): New alias

* org-compat.el (org-set-transient-map): Alias pointing at
`set-transient-map' if defined, at `set-temporary-overlay-map'
otherwise.

Thanks to Eric Abrahamsen for reporting this.

2 years agoox-md: Set correctly blank lines between elements
Justin Gordon [Tue, 21 Jan 2014 22:35:34 +0000]
ox-md: Set correctly blank lines between elements

* lisp/ox-md (org-md-separate-elements): Fix blank line insertion
  between elements.
* lisp/ox-md.el (org-md-inner-template): New function.

2 years agoorg-agenda.el: Fix buglets release_8.2.5g
Bastien Guerry [Mon, 20 Jan 2014 21:34:18 +0000]
org-agenda.el: Fix buglets

* org-agenda.el (org-agenda-next-item)
(org-agenda-previous-item, org-agenda-toggle-archive-tag)
(org-agenda-todo, org-agenda-priority, org-agenda-clock-in)
(org-agenda-clock-out): Put the cursor back on the correct
column, when possible.
(org-agenda-todo): When `org-clock-out-when-done' is `t', also
remove the current clock overlay.

2 years agoob-exp: Fix a failing test
Nicolas Goaziou [Mon, 20 Jan 2014 16:25:34 +0000]
ob-exp: Fix a failing test

* testing/lisp/test-ob-exp.el (ob-export/export-with-results-before-block):
  Fix a test

2 years agoob-exp: Fix export of src blocks with flags
Nicolas Goaziou [Mon, 20 Jan 2014 13:07:57 +0000]
ob-exp: Fix export of src blocks with flags

* lisp/ob-exp.el (org-babel-exp-code): Fix export of src blocks with
  flags.
* testing/lisp/test-ob-exp.el (ob-export/export-src-block-with-flags):
  New test.

Thanks to Giuseppe Lipari for reporting it.

2 years agoorg.el (org-format-latex-options): Fix docstring
Bastien Guerry [Sun, 19 Jan 2014 15:44:21 +0000]
org.el (org-format-latex-options): Fix docstring

* org.el (org-format-latex-options): Fix docstring.

Thanks to Mirko Vukovic for reporting this.

2 years agoox.el (org-export--get-subtree-options): Fix bug
Bastien Guerry [Sun, 19 Jan 2014 15:37:25 +0000]
ox.el (org-export--get-subtree-options): Fix bug

* ox.el (org-export--get-subtree-options): When using the
headline as a title for a subtree export, only take the true
heading, no TODO keyword, no priority cookie, no tag.

Thanks to Robert Klein for reporting this.

2 years agoob-exp: Fix code execution in some corner cases
Nicolas Goaziou [Sat, 18 Jan 2014 14:25:01 +0000]
ob-exp: Fix code execution in some corner cases

* lisp/ob-exp.el (org-babel-exp-process-buffer): Make processing more
  robust when results are inserted before source block or when source
  block is followed by multiple blank lines.
* testing/lisp/test-ob-exp.el (ob-export/export-with-results-before-block):
  Add test.

2 years agoBackport Emacs changes from r116063
Bastien Guerry [Sat, 18 Jan 2014 08:17:14 +0000]
Backport Emacs changes from r116063

2 years agoox: Remove clutter from export templates
Nicolas Goaziou [Fri, 17 Jan 2014 21:08:33 +0000]
ox: Remove clutter from export templates

* lisp/ox.el (org-export-insert-default-template): Only insert
  keywords and options relatives to the selected back-end.  Ignore
  those relatives to its parent in the case of a derived back-end.

2 years agoox-beamer: Small clean-up
Nicolas Goaziou [Fri, 17 Jan 2014 11:44:05 +0000]
ox-beamer: Small clean-up

* lisp/ox-beamer.el: Remove unnecessary package definitions in default
  class.

2 years agoFix title page template.
Rick Frankel [Thu, 16 Jan 2014 22:48:10 +0000]
Fix title page template.

* contrib/lisp/ox-s5.el (org-s5-title-slide-template): Per Arne
  Babenhauserheide, the heading levels on the default title slide
  template were wrong per the S5 spec.

2 years agoox-ascii: Convert `length' to `string-width'
Yasushi SHOJI [Thu, 16 Jan 2014 15:09:30 +0000]
ox-ascii: Convert `length' to `string-width'

* lisp/ox-ascii.el (org-ascii--current-text-width): Convert `length'
  to `string-width'.
  (org-ascii--build-title, org-ascii--build-toc)
  (org-ascii--list-listings, org-ascii--list-tables)
  (org-ascii-template--document-title)
  (org-ascii-inner-template, org-ascii-format-inlinetask-default)
  (org-ascii-format-inlinetask-default, org-ascii-item
  (org-ascii--table-cell-width, org-ascii-table-cell)
  (org-ascii--current-text-width): Likewise.

I've checked all occurrences of the function `length' in ox-ascii.el.
It turns out that the most of them are calculating the width of given
string.  To support fullwidth characters, we better use `string-width'
instead of `length'.

Some characters in UCS are categorized as "East Asian Ambiguous"[1].
The return value of `string-width' with those characters depends on
how Emacs is setup.  We leave those ambiguous character handling to
Emacs.

Two usages of `length' in `ox-ascii.el' were left as-is, because those
were used for:

 - bullet depth calculation in `org-ascii-headline', and
 - cell position calculation in `org-ascii--table-cell-width'.

[1]: http://www.unicode.org/reports/tr11/#Ambiguous

2 years agoox-latex: Fix items starting with a square bracket
Nicolas Goaziou [Mon, 13 Jan 2014 16:48:19 +0000]
ox-latex: Fix items starting with a square bracket

* lisp/ox-latex.el (org-latex-headline, org-latex-item): Fix items
  starting with a square bracket.

Thanks to Jon Degenhardt, Vladimir Lomov and Eric S Fraga for
contributing to the discussion.

2 years agoFix ff902c release_8.2.5f
Bastien Guerry [Thu, 16 Jan 2014 11:07:27 +0000]
Fix ff902c

2 years agoBackport Emacs trunk revno r116039
Bastien Guerry [Thu, 16 Jan 2014 10:57:45 +0000]
Backport Emacs trunk revno r116039

2 years agoorg.el (org-mode-restart): Fix turning off `org-indent-mode' when necessary
Nicolas Goaziou [Thu, 16 Jan 2014 00:18:30 +0000]
org.el (org-mode-restart): Fix turning off `org-indent-mode' when necessary

* org.el (org-mode-restart): Fix turning off `org-indent-mode'
when necessary.

2 years agoorg.el (customize-package-emacs-version-alist): Fix Org version for Emacs 24.4
Bastien Guerry [Thu, 16 Jan 2014 00:12:51 +0000]
org.el (customize-package-emacs-version-alist): Fix Org version for Emacs 24.4

* org.el (customize-package-emacs-version-alist): Fix Org
version for Emacs 24.4.

2 years agoFix bf0649 release_8.2.5e
Bastien Guerry [Wed, 15 Jan 2014 23:53:28 +0000]
Fix bf0649

2 years agoRemove spurious defvar
Bastien Guerry [Wed, 15 Jan 2014 23:52:46 +0000]
Remove spurious defvar

Thanks to Nicolas Goaziou for reporting this.

2 years agoFix 4a9820
Bastien Guerry [Wed, 15 Jan 2014 23:35:12 +0000]
Fix 4a9820

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Wed, 15 Jan 2014 08:21:59 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years agoFix 035087777
Bastien Guerry [Wed, 15 Jan 2014 08:21:44 +0000]
Fix 035087777

2 years agoRevert "org.el (org-store-link): When a link has been stored, always returns it"
Bastien Guerry [Wed, 15 Jan 2014 08:19:30 +0000]
Revert "org.el (org-store-link): When a link has been stored, always returns it"

This reverts commit 035087777d0b4d91373466ed1a56f357c63f5465.

2 years agoFix mode reset
Carsten Dominik [Tue, 14 Jan 2014 19:45:54 +0000]
Fix mode reset

2 years agoFix bug when demoting invisible headlines release_8.2.5d
Bastien Guerry [Tue, 14 Jan 2014 11:38:50 +0000]
Fix bug when demoting invisible headlines

* org.el (org-demote): Ignore invisible text when aligning
tags.
(org-set-tags): When JUST-ALIGN is 'ignore-column, ignore
invisible text when restoring the cursor to the correct
column.

This fixes a bug about demoting hidden headlines.
If org-move-to-column temporarily ignore visibility
specs, this will prevent org-demote to work correctly
in hidden regions.

Thanks to Susan Cragin for reporting this bug.

2 years agoBackport typo fix from Emacs revno r116017
Bastien Guerry [Mon, 13 Jan 2014 22:26:17 +0000]
Backport typo fix from Emacs revno r116017

2 years agoDelete :grouptags from tags list when creating org-mobile index file
Nick Dokos [Sat, 14 Dec 2013 20:17:18 +0000]
Delete :grouptags from tags list when creating org-mobile index file

* org-mobile.el (org-mobile-create-index-file): delete :grouptags
  entries from tags list when creating the org-mobile index file.

Reported by Dror Atariah - see

    http://thread.gmane.org/gmane.emacs.orgmode/79803

and (the continuation of the above thread)

    http://thread.gmane.org/gmane.emacs.orgmode/79856

2 years agoob-python.el (org-babel-python-var-to-python): Bugfix
Bastien Guerry [Sun, 12 Jan 2014 23:25:25 +0000]
ob-python.el (org-babel-python-var-to-python): Bugfix

* ob-python.el (org-babel-python-var-to-python): Bugfix: Strip
properties before formatting the results.

Thanks to Daniel Gerber for reporting this and providing a fix,
and to others who contributed.

2 years agoAgenda: Fix dragging line in filtered agendas
Bastien Guerry [Sun, 12 Jan 2014 22:56:54 +0000]
Agenda: Fix dragging line in filtered agendas

* org-agenda.el (org-agenda-regexp-filter-preset): Fix
typo in docstring.
(org-agenda-reapply-filters): New function.
(org-agenda-drag-line-forward): Rewrite to fix a bug when used
in filtered agendas.
(org-agenda-drag-line-backward): Rewrite using
`org-agenda-drag-line-forward'.

Thanks to Thomas Morgan for reporting this.

2 years agoob-table.el (org-sbe): Rename from `sbe'
Bastien Guerry [Sun, 12 Jan 2014 11:02:25 +0000]
ob-table.el (org-sbe): Rename from `sbe'

* ob-table.el (org-sbe): Rename from `sbe'.

2 years agoorg.el (org-store-link): When a link has been stored, always returns it
Bastien Guerry [Sun, 12 Jan 2014 08:56:41 +0000]
org.el (org-store-link): When a link has been stored, always returns it

* org.el (org-store-link): When a link has been stored, always
returns it.

(Storing links from the agenda are broken otherwise.)

2 years agoBackport typo fixes from Emacs revno 115988
Bastien Guerry [Sun, 12 Jan 2014 08:54:21 +0000]
Backport typo fixes from Emacs revno 115988

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Sat, 11 Jan 2014 00:35:00 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years agoorg.el (org-ellipsis): Small docstring enhancement
Bastien Guerry [Sat, 11 Jan 2014 00:34:44 +0000]
org.el (org-ellipsis): Small docstring enhancement

* org.el (org-ellipsis): Small docstring enhancement.

2 years agoorg.texi: Fix typo
Nicolas Goaziou [Fri, 10 Jan 2014 21:27:58 +0000]
org.texi: Fix typo

* doc/org.texi (Top, Exporting): Fix typo.

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Fri, 10 Jan 2014 20:00:32 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years agoSpeed improvement
Nicolas Goaziou [Fri, 10 Jan 2014 10:22:49 +0000]
Speed improvement

* lisp/org.el (org-get-previous-line-level): Do not call
  `org-current-level' twice unless necessary.  Also, avoid using
  `line-number-at-pos' when the information needed is to know if point
  is in the first line of the visible part of the buffer.

2 years agoBackport changes from r115955
Bastien Guerry [Fri, 10 Jan 2014 09:29:53 +0000]
Backport changes from r115955

2 years agoorg.texi: Fix some sections subtitiles
Nicolas Goaziou [Thu, 9 Jan 2014 21:37:57 +0000]
org.texi: Fix some sections subtitiles

* doc/org.texi (Top, Exporting): Org has its own documentation and
  should therefore be removed from "Other build-in back-ends".

2 years agoob-core: Speed improvement
Nicolas Goaziou [Thu, 9 Jan 2014 19:36:23 +0000]
ob-core: Speed improvement

* lisp/ob-core.el (org-babel-get-inline-src-block-matches): Do not
  compute line number if all is needed is to know if we're on the
  first one.

2 years agoFix multiple TBLFM
Michael Brand [Thu, 9 Jan 2014 19:10:19 +0000]
Fix multiple TBLFM

Simplify commit release_8.2.4-14-geb28fe4 and commit
release_8.2.5c-8-ga2619b7.

* org-table.el (org-table-fix-formulas): Handle multiple #+TBLFM lines
with `forward-line'.

2 years agoorg-table.el (org-table-fix-formulas): Fix commit eb28fe
Bastien Guerry [Thu, 9 Jan 2014 10:03:01 +0000]
org-table.el (org-table-fix-formulas): Fix commit eb28fe

Thanks to Michael Brand for reporting this.

2 years agoBackport typo fixes from Emacs revno r115923
Bastien Guerry [Wed, 8 Jan 2014 23:47:40 +0000]
Backport typo fixes from Emacs revno r115923

2 years agoox-md: Prevent error with empty items
Nicolas Goaziou [Wed, 8 Jan 2014 21:47:10 +0000]
ox-md: Prevent error with empty items

* lisp/ox-md.el (org-md-item): Do not return an error when exporting
  an empty item.

2 years agoRevert "ob-python.el (org-babel-python-var-to-python): Fix code typo"
Bastien Guerry [Wed, 8 Jan 2014 17:31:50 +0000]
Revert "ob-python.el (org-babel-python-var-to-python): Fix code typo"

This reverts commit e88d9d7caf75994c00c1f7c95180aac672696eb2.

2 years agoob-python.el (org-babel-python-var-to-python): Fix code typo
Bastien Guerry [Wed, 8 Jan 2014 16:29:31 +0000]
ob-python.el (org-babel-python-var-to-python): Fix code typo

* ob-python.el (org-babel-python-var-to-python): Fix code typo.

Thanks to Daniel Gerber for reporting this.

2 years agoorg-entities.el: Fix display of pretty entities
Bastien Guerry [Wed, 8 Jan 2014 15:12:15 +0000]
org-entities.el: Fix display of pretty entities

* org-entities.el (org-entities-help): Prevent the display of
pretty entities, as this help buffer is meant to list literal
strings, not utf-8 representations.

Thanks to Brice Waegenire for reporting this.

2 years agoox-beamer: Fix bug when an selecting environment
Nicolas Goaziou [Tue, 7 Jan 2014 20:50:44 +0000]
ox-beamer: Fix bug when an selecting environment

* lisp/ox-beamer.el (org-beamer-select-environment): Function doesn't
  work if fast tag selection is disabled, so make sure it is always
  on, independently on user's configuration.

Reported-by: Anders Johansson <mejlaandersj@gmail.com>

2 years agodoc/Makefile: avoid spurious whitespace in environment variables
Achim Gratz [Tue, 7 Jan 2014 20:23:45 +0000]
doc/Makefile: avoid spurious whitespace in environment variables

* doc/Makefile (%.pdf): Ensure that LANG and LC_ALL are set to "C",
  not "C   " (with trailing whitespace).

Make evaluation order produces spurious whitespace in variables when a
variable definition is followed by whitespace plus a comment.

2 years agoUpdate copyright years again. release_8.2.5c
Bastien Guerry [Tue, 7 Jan 2014 13:18:17 +0000]
Update copyright years again.

Hint: copyright years are all updated in Emacs.

2 years agoBackport change from Chong on 2013-12-23
Bastien Guerry [Tue, 7 Jan 2014 12:25:30 +0000]
Backport change from Chong on 2013-12-23

2 years agoBug in org.texi release_8.2.5b
Rasmus [Tue, 7 Jan 2014 10:32:31 +0000]
Bug in org.texi

* org.texi (Global and local cycling): Fix missing '@'.

2 years agoorg.texi (Global and local cycling): Mention C-u C-u TAB
Bastien Guerry [Tue, 7 Jan 2014 09:15:13 +0000]
org.texi (Global and local cycling): Mention C-u C-u TAB

* org.texi (Global and local cycling): Mention C-u C-u TAB.

Thanks to François Pinard for suggesting this.

2 years agoBackport spelling fixes from Emacs r115885
Bastien Guerry [Mon, 6 Jan 2014 10:02:18 +0000]
Backport spelling fixes from Emacs r115885

* org-clock.el (org-clock-cancel-hook)
(org-clock-leftover-time): Fix typo in docstring.

2 years agoBackport change from Emacs r115884
Bastien Guerry [Mon, 6 Jan 2014 10:00:28 +0000]
Backport change from Emacs r115884

2 years agoorg.el (org-set-tags): Ignore invisible text when restoring cursor position
Bastien Guerry [Sun, 5 Jan 2014 13:21:38 +0000]
org.el (org-set-tags): Ignore invisible text when restoring cursor position

* org.el (org-set-tags): Ignore invisible text when restoring
cursor position.

2 years agoob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Fix code typo
U-usuario-PC\\usuario [Sun, 5 Jan 2014 12:18:16 +0000]
ob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Fix code typo

* ob-gnuplot.el (org-babel-gnuplot-quote-tsv-field): Fix code typo.

TINYCHANGE

2 years agoUpdate copyright year for files changed since 2013 release_8.2.5a
Bastien Guerry [Sun, 5 Jan 2014 05:35:21 +0000]
Update copyright year for files changed since 2013

2 years agoRevert "Update copyright years."
Bastien Guerry [Sun, 5 Jan 2014 05:28:07 +0000]
Revert "Update copyright years."

This reverts commit 21105594fcb69fb4e1d636f4070fd25c86efbe35.

2 years agoBackport changes from Emacs r115870
Bastien Guerry [Sun, 5 Jan 2014 05:24:20 +0000]
Backport changes from Emacs r115870

* org.texi (Include files, The Export Dispatcher)
(Advanced configuration)
(Header arguments in Org mode properties): Spelling fixes.

2 years agoUpdate copyright years. release_8.2.5
Bastien Guerry [Sat, 4 Jan 2014 17:56:11 +0000]
Update copyright years.

2 years agoRevert "* server.mk (elpaplus-dirty elpaplus-up): Include htmlize.el."
Bastien Guerry [Sat, 4 Jan 2014 17:15:42 +0000]
Revert "* server.mk (elpaplus-dirty elpaplus-up): Include htmlize.el."

This reverts commit fc5cf0d92209f55a59077101e6f1ae77c3c8524f.

2 years agoFix ox-odt bugs
Bastien Guerry [Sat, 4 Jan 2014 17:09:31 +0000]
Fix ox-odt bugs

* ox-odt.el (org-odt--frame): Add a draw:name property to the
draw:frame tag.
(org-odt-format-label): Don't use short-caption at all.

See http://article.gmane.org/gmane.emacs.orgmode/79910
and http://article.gmane.org/gmane.emacs.orgmode/79892
for threads about these issues.

2 years agoorg-rmail.el (org-rmail-follow-link): Don't raise an error when no article is matched
Bastien Guerry [Sat, 4 Jan 2014 14:27:53 +0000]
org-rmail.el (org-rmail-follow-link): Don't raise an error when no article is matched

* org-rmail.el (org-rmail-follow-link): Don't raise an error
when no article is matched.

2 years agoFix creation of parent nodes when refiling.
Bastien Guerry [Sat, 4 Jan 2014 14:05:01 +0000]
Fix creation of parent nodes when refiling.

* org.el (org-refile-get-location): Check for a refile
position when the position is not nil, otherwise allow to
create the parent node if the user requests it.

Thanks to Li Zhuo for reporting this bug and for providing
a preliminary patch.

2 years agoorg.el (org-refile-allow-creating-parent-nodes): Fix typo in docstring
Bastien Guerry [Sat, 4 Jan 2014 13:53:00 +0000]
org.el (org-refile-allow-creating-parent-nodes): Fix typo in docstring

* org.el (org-refile-allow-creating-parent-nodes): Fix typo in
docstring.

2 years agoMerge branch 'maint' of orgmode.org:org-mode into maint
Bastien Guerry [Sat, 4 Jan 2014 13:48:51 +0000]
Merge branch 'maint' of orgmode.org:org-mode into maint

2 years agoorg.el (org-entry-get): Minor docstring enhancement
Bastien Guerry [Sat, 4 Jan 2014 13:48:39 +0000]
org.el (org-entry-get): Minor docstring enhancement

* org.el (org-entry-get): Minor docstring enhancement.

2 years agoox-icalendar: Fix BBDB anniversaries integration
Nicolas Goaziou [Sat, 4 Jan 2014 13:26:19 +0000]
ox-icalendar: Fix BBDB anniversaries integration

* lisp/ox-icalendar.el (org-icalendar--combine-files): Make sure
  anniversaries do not end up in *Message* buffer instead of the ICS
  file.

Patch-by: Thomas Baumann <tbaumann@tum.de>

2 years agoorg.el (org-set-startup-visibility): Bugfix
Bastien Guerry [Sat, 4 Jan 2014 11:22:50 +0000]
org.el (org-set-startup-visibility): Bugfix

* org.el (org-set-startup-visibility): Bugfix.

See http://article.gmane.org/gmane.emacs.orgmode/79905

2 years agoorg.el (org-shiftcontrolup, org-shiftcontroldown): Ignore `org-support-shift-select...
Bastien Guerry [Fri, 3 Jan 2014 16:38:02 +0000]
org.el (org-shiftcontrolup, org-shiftcontroldown): Ignore `org-support-shift-select' when point is on a clock log

* org.el (org-shiftcontrolup, org-shiftcontroldown): When
`org-support-shift-select' is not `nil', let-bind it to nil
if point is on a clock log.  Otherwise throw an error.

2 years agoob-lob.el: Minor custom and docstring fixes
Bastien Guerry [Fri, 3 Jan 2014 16:15:34 +0000]
ob-lob.el: Minor custom and docstring fixes

* ob-lob.el (org-babel-lob-files): Fix custom type.
(org-babel-lob-ingest): Small docstring fix.

Thanks to Glenn Morris for reporting them.

2 years agoorg-agenda.el (org-cmp-ts): Fix bug
Bastien Guerry [Fri, 3 Jan 2014 15:01:30 +0000]
org-agenda.el (org-cmp-ts): Fix bug

* org-agenda.el (org-cmp-ts): Fix bug: interpret `late' as
`later than any date' instead of `later than today'.

Thank to Michael Crouch for reporting this and to Michael Hoffman for
providing the fix.

2 years agoorg.el (org-do-emphasis-faces): Fix false positives handling
Bastien Guerry [Fri, 3 Jan 2014 10:16:14 +0000]
org.el (org-do-emphasis-faces): Fix false positives handling

* org.el (org-do-emphasis-faces): Handle false positives by
restarting the re-search one char after the beginning of the
match, not one char before its ending.

Before this fix, consider this buffer

** Headline
  - *Bold* non-bold
  - *Bold* non-bold

The first false positive is "** Headline\n  - *Bold*"

Starting the search again from the last "*" will skip
the "*Bold*" string.  Starting again at "* Headline" will
find it.

2 years agoorg.el (org-entry-put): Check that the value provided is a string
Bastien Guerry [Fri, 3 Jan 2014 09:07:09 +0000]
org.el (org-entry-put): Check that the value provided is a string

* org.el (org-entry-put): Check that the value provided is a
string.  If it is nil, convert it to the empty string.

2 years agoBackport r115828 from Emacs trunk
Bastien Guerry [Thu, 2 Jan 2014 15:10:44 +0000]
Backport r115828 from Emacs trunk

2 years agoRevert "Backport change from r115807 in Emacs trunk"
Bastien Guerry [Thu, 2 Jan 2014 15:08:26 +0000]
Revert "Backport change from r115807 in Emacs trunk"

This reverts commit c2ed678f20f7a4deccc3373c6a226163d5624cc8.

2 years agoox-html: Clean up some comments
Nicolas Goaziou [Wed, 1 Jan 2014 18:05:49 +0000]
ox-html: Clean up some comments

* lisp/ox-html.el: Clean up "FIXME" comments.

2 years agoox-publish: Fix a docstring
Nicolas Goaziou [Wed, 1 Jan 2014 18:02:13 +0000]
ox-publish: Fix a docstring

* lisp/ox-publish.el (org-publish-resolve-external-fuzzy-link): Fix
  docstring.

2 years agoox-html.el: Use classes for caption instead of align
Vladimir Lomov [Sat, 28 Dec 2013 22:33:59 +0000]
ox-html.el: Use classes for caption instead of align

* ox-html.el (org-html-style-default): New classes
caption.t-above and caption.t-bottom.
(org-html-table): Use new classes.

TINYCHANGE

Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>

2 years agoRevert "ox-html.el: Use classes for caption instead of align"
Bastien Guerry [Mon, 30 Dec 2013 09:43:43 +0000]
Revert "ox-html.el: Use classes for caption instead of align"

This reverts commit 1813200fc81fa5e0f248407d852f3771fe2d4f6e.

2 years agoox-html.el: Use classes for caption instead of align
Vladimir Lomov [Sat, 28 Dec 2013 22:33:59 +0000]
ox-html.el: Use classes for caption instead of align

* ox-html.el (org-html-style-default): New classes
caption.t-above and caption.t-bottom.
(org-html-table): Use new classes.

Signed-off-by: Vladimir Lomov <lomov.vl@gmail.com>

2 years agoFix defcustoms: don't quote const values.
Bastien Guerry [Mon, 30 Dec 2013 09:30:44 +0000]
Fix defcustoms: don't quote const values.

* ob-latex.el (org-babel-latex-htlatex-packages): Use repeat
instead of list as the defcustom type.

* ox.el (org-export-with-creator):
* org.el (org-loop-over-headlines-in-active-region)
(org-mouse-1-follows-link, org-provide-todo-statistics):
* org-agenda.el (org-agenda-custom-commands-local-options)
(org-agenda-start-with-log-mode)
(org-agenda-show-inherited-tags): Don't quote const values.

Thanks to Glenn Morris for reporting this.

2 years agoAdd missing :type to a few options.
Bastien Guerry [Mon, 30 Dec 2013 09:13:57 +0000]
Add missing :type to a few options.

* ox-texinfo.el (org-texinfo-def-table-markup):
* org-inlinetask.el (org-inlinetask-show-first-star):
* ob-maxima.el (org-babel-maxima-command): Add type.

Thanks to Glenn Morris for reporting this.

2 years agoBackport change from r115807 in Emacs trunk
Bastien Guerry [Mon, 30 Dec 2013 09:10:56 +0000]
Backport change from r115807 in Emacs trunk