org-mode.git
11 months agoorg.el: Fix a variable name error release_8.2.3c
Achim Gratz [Thu, 14 Nov 2013 20:21:58 +0000]
org.el: Fix a variable name error

* lisp/org.el (org-version): Fix an error imported with merge in
  f95641c443, replace `_version´ by `version1´.

11 months agoRemove org-autoload.
Bastien Guerry [Fri, 15 Nov 2013 05:53:59 +0000]
Remove org-autoload.

* org-macs.el (org-autoload): Delete.

* org-docview.el ("docview"): Fix declarations and require
doc-view directly.

* org-id.el (org-id-copy)
(org-id-get-with-outline-path-completion)
(org-id-get-with-outline-drilling, org-id-new):
* org-colview.el:
(org-colview-initial-truncate-line-value)
(org-columns-open-link, org-string-to-number):
* org-clock.el:
(org-clock-put-overlay, org-count-quarter, org-clock-loaded):
* org-archive.el (org-get-local-archive-location):
* org-agenda.el (org-agenda-todo-custom-ignore-p):
Autoload.

Those functions were autoloaded from within calls to `org-autoload'
in org.el, we now autoload them from where they live.

11 months agoPartially revert commit adcebf
Bastien Guerry [Fri, 15 Nov 2013 05:22:36 +0000]
Partially revert commit adcebf

* ox.el (org-export-async-init-file):
* ox-odt.el (org-odt-with-latex):
* ox-html.el (org-html-with-latex):
* org.el (org-return-follows-link):
* ob-python.el (org-babel-python-command): Don't use :set.

Thanks to Glenn Morris for pointing at this.

11 months agoox-odt.el (org-odt-content-template-file): Fix version
Bastien Guerry [Thu, 14 Nov 2013 13:13:46 +0000]
ox-odt.el (org-odt-content-template-file): Fix version

* ox-odt.el (org-odt-content-template-file): Fix version.

11 months agoFix errors reported by cus-test.el
Bastien Guerry [Thu, 14 Nov 2013 13:05:18 +0000]
Fix errors reported by cus-test.el

* ox.el (org-export-async-init-file): Use :set to set the
default value.

* ox-texinfo.el (org-texinfo-filename): Fix default value.
(org-texinfo-format-headline-function): Use 'ignore as the
default value.
(org-texinfo-format-drawer-function): Use a function as the
default value.  Update docstring.
(org-texinfo-drawer): Always use
`org-texinfo-format-drawer-function' as it is now a function
by default.
(org-texinfo-headline): Compare
`org-texinfo-format-headline-function' against 'ignore.
(org-texinfo-inlinetask): Compare
`org-texinfo-format-inlinetask-function' against 'ignore.

* ox-odt.el (org-odt-format-drawer-function): Use a function
as the default value.  Update docstring.
(org-odt-format-headline-function)
(org-odt-format-inlinetask-function): Fix default value.
(org-odt-with-latex): Use :set to set the default value.
(org-odt-drawer): Always use `org-odt-format-drawer-function'
as it is now a function by default.
(org-odt-format-headline--wrap): Compare
`org-odt-format-headline-function' against 'ignore.

* ox-latex.el (org-latex-format-drawer-function): Use a
function as the default value.  Update docstring.
(org-latex-format-inlinetask-function): Fix default value.
(org-latex-drawer): Always use
`org-latex-format-drawer-function' as it is now a function by
default.
(org-latex-inlinetask): Compare
`org-latex-format-inlinetask-function' against 'ignore.

* ox-html.el (org-html-format-drawer-function): Use a
function as the default value.  Update docstring.
(org-html-format-headline-function)
(org-html-format-inlinetask-function): Fix default value.
(org-html-with-latex): Use :set to set the default value.
(org-html--format-toc-headline)
(org-html-format-headline--wrap): Compare
`org-html-format-headline-function' against 'ignore.
(org-html-inlinetask): Compare
`org-html-format-inlinetask-function' against 'ignore.

* ox-ascii.el (org-ascii-format-drawer-function): Use a
function as the default value.  Update docstring.
(org-ascii-drawer): Always use
`org-ascii-format-drawer-function' as it is now a function by
default.
(org-ascii-format-inlinetask-default): New function.
(org-ascii-format-inlinetask-function): Use
`org-ascii-format-inlinetask-default' as the default.

* org.el (org-mouse-1-follows-link): Use :set to set the
default value.  Update custom type.
(org-log-note-headings): Fix order or list items in the custom
type.
(orgstruct-heading-prefix-regexp): Use an empty string as the
default value.  Use 'regexp as the custom type.
(orgstruct-make-binding): Tiny docstring enhancement.  Assume
`orgstruct-heading-prefix-regexp' is a string.

* org-agenda.el (org-agenda-search-view-max-outline-level):
Set default value to 0.  Update docstring.
(org-agenda-deadline-leaders): Fix custom type.
(org-search-view): Assume
`org-agenda-search-view-max-outline-level' is a number.

* ob-ruby.el (org-babel-ruby-nil-to): Fix custom type.

* ob-python.el (org-babel-python-mode): Use :set to set the
default value.
(org-babel-python-None-to): Fix custom type.

* ob-plantuml.el (org-plantuml-jar-path): Fix default value.
(org-babel-execute:plantuml): Assume `org-plantuml-jar-path'
is a string.

* ob-latex.el (org-babel-latex-htlatex): Fix default value.
(org-babel-latex-htlatex-packages): Fix custom type.
(org-babel-execute:latex): Assume `org-babel-latex-htlatex' is
a string.

Thanks to Glenn Morris for reporting this.

11 months agoox-odt.el (org-odt-display-outline-level): Fix version
Bastien Guerry [Thu, 14 Nov 2013 08:54:35 +0000]
ox-odt.el (org-odt-display-outline-level): Fix version

* ox-odt.el (org-odt-display-outline-level): Fix version.

11 months agoFix previous commits
Bastien Guerry [Wed, 13 Nov 2013 07:46:01 +0000]
Fix previous commits

Thanks to Jambunathan for pointing this.

11 months agoox-odt.el: Add version and package-version to some options
Bastien Guerry [Wed, 13 Nov 2013 06:35:57 +0000]
ox-odt.el: Add version and package-version to some options

* ox-odt.el (org-odt-inline-formula-rules)
(org-odt-inline-image-rules, org-odt-use-date-fields): Add
version and package-version.

11 months agoox-html.el: Add version and package-version to some options
Bastien Guerry [Wed, 13 Nov 2013 06:27:10 +0000]
ox-html.el: Add version and package-version to some options

* ox-html.el (org-html-format-drawer-function)
(org-html-format-headline-function)
(org-html-format-inlinetask-function)
(org-html-creator-string): Add version and package-version.

Thanks to Jambunathan for reporting problems in this area.

11 months agoox-html.el (org-html-text-markup-alist): Fix version
Bastien Guerry [Tue, 12 Nov 2013 20:24:32 +0000]
ox-html.el (org-html-text-markup-alist): Fix version

* ox-html.el (org-html-text-markup-alist): Fix version.

Thanks to Jambunathan for reporting this.

11 months agoorg-agenda.el (org-agenda-set-restriction-lock): Autoload release_8.2.3b
Bastien Guerry [Tue, 12 Nov 2013 20:12:28 +0000]
org-agenda.el (org-agenda-set-restriction-lock): Autoload

* org-agenda.el (org-agenda-set-restriction-lock): Autoload.

11 months agoBackport changes from Emacs revs 115081 and 115082
Bastien Guerry [Tue, 12 Nov 2013 19:57:31 +0000]
Backport changes from Emacs revs 115081 and 115082

2013-11-12  Stefan Monnier  <monnier@iro.umontreal.ca>

Address some byte-compiler warnings.
* ob-abc.el (org-babel-expand-body:abc): Use dolist.
(org-babel-execute:abc): Fix regexp quoting.
* ob-calc.el (org--var-syms): Rename from `var-syms'.
* ob-lilypond.el (ly-compile-lilyfile): Remove redundant let-binding.
* ob-table.el (sbe): Move debug declaration.
* org-clock.el (org--msg-extra): Rename from `msg-extra'.
* org.el (org-version): Avoid var name starting with _.
(org-inhibit-startup, org-called-with-limited-levels)
(org-link-search-inhibit-query, org-time-was-given)
(org-end-time-was-given, org-def, org-defdecode, org-with-time):
* org-colview.el (org-agenda-overriding-columns-format):
* org-agenda.el (org-agenda-multi, org-depend-tag-blocked)
(org-agenda-show-log-scoped):
* ob-python.el (py-which-bufname, python-shell-buffer-name):
* ob-haskell.el (org-export-copy-to-kill-ring):
* ob-exp.el (org-link-search-inhibit-query):
* ob-R.el (ess-eval-visibly-p):
* ob-core.el (org-src-window-setup): Declare before use.
(org-babel-expand-noweb-references): Remove unused `blocks-in-buffer'.
* ox-odt.el (org-odt-hfy-face-to-css):
* org-src.el (org-src-associate-babel-session, org-src-get-lang-mode):
* org-bibtex.el (org-bibtex-get, org-bibtex-ask, org-bibtex)
(org-bibtex-check):
* ob-tangle.el (org-babel-tangle, org-babel-spec-to-string)
(org-babel-tangle-single-block, org-babel-tangle-comment-links):
* ob-table.el (sbe):
* ob-sqlite.el (org-babel-sqlite-expand-vars):
* ob-sql.el (org-babel-sql-expand-vars):
* ob-shen.el (org-babel-execute:shen):
* ob-sh.el (org-babel-execute:sh, org-babel-sh-evaluate):
* ob-scala.el (org-babel-scala-evaluate):
* ob-ruby.el (org-babel-ruby-table-or-string)
(org-babel-ruby-evaluate):
* ob-python.el (org-babel-python-table-or-string)
(org-babel-python-evaluate-external-process)
(org-babel-python-evaluate-session):
* ob-picolisp.el (org-babel-execute:picolisp):
* ob-perl.el (org-babel-perl-evaluate):
* ob-maxima.el (org-babel-execute:maxima):
* ob-lisp.el (org-babel-execute:lisp):
* ob-java.el (org-babel-execute:java):
* ob-io.el (org-babel-io-evaluate):
* ob-haskell.el (org-babel-execute:haskell):
* ob-fortran.el (org-babel-execute:fortran):
* ob-exp.el (org-babel-exp-code):
* ob-emacs-lisp.el (org-babel-execute:emacs-lisp):
* ob-ditaa.el (org-babel-execute:ditaa):
* ob-core.el (org-babel-execute-src-block, org-babel-sha1-hash)
(org-babel-parse-header-arguments, org-babel-reassemble-table)
(org-babel-goto-src-block-head, org-babel-mark-block)
(org-babel-expand-noweb-references, org-babel-script-escape)
(org-babel-process-file-name):
* ob-clojure.el (org-babel-execute:clojure):
* ob-calc.el (org-babel-execute:calc):
* ob-awk.el (org-babel-execute:awk):
* ob-abc.el (org-babel-execute:abc):
* ob-R.el (org-babel-expand-body:R):
* ob-C.el (org-babel-C-execute): Avoid deprecated ((lambda) ...).

2013-11-12  Glenn Morris  <rgm@gnu.org>

* ox-html.el (org-html-scripts): Add 2013 to copyright years.
(org-html-infojs-template): Copyright holder to FSF.

11 months agoorg.el (org-deadline, org-schedule): Fix bug release_8.2.3 release_8.2.3a
Bastien Guerry [Mon, 11 Nov 2013 17:13:08 +0000]
org.el (org-deadline, org-schedule): Fix bug

* org.el (org-deadline, org-schedule): Fix bug: allow to
update scheduled/deadline information anywhere in the subtree.

11 months agoREADME_maintainer: Fix erroneous statement
Bastien Guerry [Mon, 11 Nov 2013 15:59:19 +0000]
README_maintainer: Fix erroneous statement

* README_maintainer: Fix erroneous statement.

11 months agoox-texinfo: Fix incorrect @documentencoding
Nicolas Goaziou [Mon, 11 Nov 2013 09:09:21 +0000]
ox-texinfo: Fix incorrect @documentencoding

* lisp/ox-texinfo.el (org-texinfo-supported-coding-systems): New
  variable.
(org-texinfo-template): Find appropriate encoding among those
supported.

Reported-by: Suvayu Ali <fatkasuvayu+linux@gmail.com>

11 months agoox: Fix next/previous element getters
Nicolas Goaziou [Mon, 11 Nov 2013 00:54:01 +0000]
ox: Fix next/previous element getters

* lisp/ox.el (org-export-get-previous-element,
  org-export-get-next-element): Fix return value for non plain text
  objects in a secondary string.
* testing/lisp/test-ox.el: Add tests.

11 months agoorg-element: Fix infloops
Nicolas Goaziou [Sun, 10 Nov 2013 10:28:14 +0000]
org-element: Fix infloops

* lisp/org-element.el (org-element-center-block-parser)
  (org-element-drawer-parser, org-element-dynamic-block-parser)
  (org-element-footnote-definition-parser)
  (org-element-inlinetask-parser, org-element-property-drawer-parser)
  (org-element-quote-block-parser, org-element-comment-block-parser)
  (org-element-diary-sexp-parser, org-element-example-block-parser)
  (org-element-keyword-parser, org-element-latex-environment-parser)
  (org-element-paragraph-parser, org-element-src-block-parser)
  (org-element-table-parser, org-element-verse-block-parser): Fix
  infloop when buffer ends with a non-empty blank line after the
  element.
* testing/lisp/test-org-element.el: Add tests.

11 months agoorg-element: Fix infloop
Nicolas Goaziou [Sun, 10 Nov 2013 09:18:17 +0000]
org-element: Fix infloop

* lisp/org-element.el (org-element-comment-parser): Fix infloop when
  a non-empty blank line follows a comment at the end of the buffer.
* testing/lisp/test-org-element.el: Add test.

11 months agoorg.el (org-align-tags-here): Fix bug: move to the correct position
Bastien Guerry [Sat, 9 Nov 2013 16:47:59 +0000]
org.el (org-align-tags-here): Fix bug: move to the correct position

* org.el (org-align-tags-here): Fix bug: move to the correct
position.

Thanks to Reuben Garrett for reporting this bug.

11 months agoox-latex: Remove all temporary files when compiling release_8.2.2
Nicolas Goaziou [Fri, 8 Nov 2013 07:54:52 +0000]
ox-latex: Remove all temporary files when compiling

* lisp/ox-latex.el (org-latex-compile): Remove all numbered temporary
  files after compiling.

11 months agoox-org: Fix headline level during subtree export
Nicolas Goaziou [Wed, 6 Nov 2013 18:14:14 +0000]
ox-org: Fix headline level during subtree export

* lisp/org-element.el (org-element-headline-interpreter): Take into
  consideration `org-odd-levels-only' when building a headline.
* lisp/ox-org.el (org-org-headline): Correctly set transcoded headline
  level during subtree export.

11 months agoorg-inlinetask: Hide inline tasks in 'children visibility state
Jonas Hoersch [Wed, 30 Oct 2013 14:39:33 +0000]
org-inlinetask: Hide inline tasks in 'children visibility state

* lisp/org.el (org-cycle-hide-inline-tasks): Re-hide inline tasks when
  switching to 'children visibility state.

TINYCHANGE

11 months agoorg-capture.el (org-capture-refile): Don't finalize prematurely
Bastien Guerry [Wed, 6 Nov 2013 15:26:38 +0000]
org-capture.el (org-capture-refile): Don't finalize prematurely

* org-capture.el (org-capture-refile): Don't finalize
prematurely.

Thanks to Rodrigo Amestica for reporting this.

11 months agoorg.el (org-agenda-prepare-buffers): Restore the point position
Bastien Guerry [Wed, 6 Nov 2013 15:15:45 +0000]
org.el (org-agenda-prepare-buffers): Restore the point position

* org.el (org-agenda-prepare-buffers): Restore the point
position.

Thanks to Samuel Wales for spotting this.

11 months agoox-html: Add TODO keyword to TOC entries
Nicolas Goaziou [Wed, 6 Nov 2013 14:26:53 +0000]
ox-html: Add TODO keyword to TOC entries

* lisp/ox-html.el (org-html--format-toc-headline): TOC entries are
  closer to regular headline formatting.

11 months agoorg-capture: Fix bug when capturing with templates using `function'
Bastien Guerry [Wed, 6 Nov 2013 14:51:57 +0000]
org-capture: Fix bug when capturing with templates using `function'

* org-capture.el (org-capture): Store :return-to-wconf
earlier.
(org-capture-place-template): Don't store :return-to-wconf
when called from a capture template using `function', rely on
the early :return-to-wconf value store from `org-capture'.

Thanks to Brett Viren for raising this issue.

11 months agoorg-agenda: Fix bug when showing the new time
Bastien Guerry [Wed, 6 Nov 2013 08:59:46 +0000]
org-agenda: Fix bug when showing the new time

* org-agenda.el (org-agenda-show-new-time): Ignore invisible
text when inserting the new time as a text property.

* org-compat.el (org-move-to-column): New argument
`ignore-invisible' to turn on `buffer-invisibility-spec'.

Thanks to Marcin Borkowski and Karl Voit for reporting this.

11 months agoorg.el (org-insert-link): Don't remove brackets when they belong to a timestamp in...
Bastien Guerry [Tue, 5 Nov 2013 20:54:12 +0000]
org.el (org-insert-link): Don't remove brackets when they belong to a timestamp in a headline

* org.el (org-insert-link): Don't remove brackets when they
belong to a timestamp in a headline.

Thanks to David Belohrad for spotting this.

11 months agoorg-agenda.el (org-agenda-filter-make-matcher): Fix regression
Bastien Guerry [Tue, 5 Nov 2013 18:41:41 +0000]
org-agenda.el (org-agenda-filter-make-matcher): Fix regression

* org-agenda.el (org-agenda-filter-make-matcher): When
filtering tags and hitting space, filter out entries with
tags, only keep those without tags.

Thanks to Serguei Son for reporting this regression.

11 months agoox-odt.el (org-odt-table-style-format): Use %s for inserting the rel-width property...
Bastien Guerry [Tue, 5 Nov 2013 16:26:46 +0000]
ox-odt.el (org-odt-table-style-format): Use %s for inserting the rel-width property as a string

* ox-odt.el (org-odt-table-style-format): Use %s for inserting
the rel-width property as a string.
(org-odt-template): Fall back on a string for :rel-width.

Thanks to Derek Feichtinger for reporting this bug.

11 months agoSome clean-up related to org-remember being removed
Bastien Guerry [Tue, 5 Nov 2013 11:13:46 +0000]
Some clean-up related to org-remember being removed

* org.el (org-directory, org-default-notes-file)
(org-reverse-note-order): Don't use the `org-remember'
customization group.
(org-require-autoloaded-modules): Don't require
`org-remember'.

* org-capture.el: Update commentary section to reflect the
fact that org-remember.el is not used anymore.

11 months agocontrib/lisp/ox-rss.el: Enhance RFC822 formatting string
Bastien Guerry [Mon, 4 Nov 2013 23:14:03 +0000]
contrib/lisp/ox-rss.el: Enhance RFC822 formatting string

* contrib/lisp/ox-rss.el (org-rss-headline)
(org-rss-build-channel-info): Use %b instead of %h for RFC822
dates.

Thanks to Andrea Rossetti for reporting this.

11 months agoorg-agenda.el (org-agenda-drag-line-forward): Fix bugs
Bastien Guerry [Mon, 4 Nov 2013 22:36:18 +0000]
org-agenda.el (org-agenda-drag-line-forward): Fix bugs

* org-agenda.el (org-agenda-drag-line-forward)
(org-agenda-drag-line-backward): Fix bugs: don't drag lines
without text and don't drag lines before/after hidden lines.

Thanks to Thomas Morgan for reporting bugs in this area.

11 months agoorg.texi (Catching invisible edits): Fix typo
Bastien Guerry [Mon, 4 Nov 2013 11:45:22 +0000]
org.texi (Catching invisible edits): Fix typo

* org.texi (Catching invisible edits): Fix typo.

Thanks to Cyprien Gay for reporting this.

11 months agoorg.el (org-babel-load-file): Set `exported-file' correctly
Bastien Guerry [Mon, 4 Nov 2013 11:19:45 +0000]
org.el (org-babel-load-file): Set `exported-file' correctly

* org.el (org-babel-load-file): Set `exported-file' correctly,
in case the file as been tangled using a buffer-local value.

* ob-tangle.el (org-babel-tangle-file): Return the list of
tangled files.

Thanks to Sam Flint for reporting this.

11 months agoorg-element: Fix error when parsing lowercase keywords
Nicolas Goaziou [Sun, 3 Nov 2013 16:47:55 +0000]
org-element: Fix error when parsing lowercase keywords

* lisp/org-element.el (org-element-context): Fix error when parsing
  affiliated keywords, e.g. "caption".
* testing/lisp/test-org-element.el: Add test.

11 months agoFix flyspell behaviour on verbatim objects
Nicolas Goaziou [Sun, 3 Nov 2013 13:18:19 +0000]
Fix flyspell behaviour on verbatim objects

* lisp/org.el (org-do-emphasis-faces): Look for verbatim status at
  correct location.

11 months agoFix wrong-type-argument error when opening id link
Nicolas Goaziou [Sun, 3 Nov 2013 12:06:14 +0000]
Fix wrong-type-argument error when opening id link

* lisp/org.el (org-open-at-point): Check if link is non-nil before
  matching it.

Reported-by: Daniel Clemente <n142857@gmail.com>

11 months agoox: Fix OPTIONS in default template
Nicolas Goaziou [Sun, 3 Nov 2013 10:35:31 +0000]
ox: Fix OPTIONS in default template

* lisp/ox.el (org-export-insert-default-template): Make sure strings
  are properly quoted when inserting a template.  Specifically,
  default value for drawers should be d:(not "LOGBOOK"), not d:(not
  LOGBOOK).

11 months agoorg-inlinetask: fix inlinetask unfolding
Jonas Hoersch [Tue, 29 Oct 2013 16:07:49 +0000]
org-inlinetask: fix inlinetask unfolding

* lisp/org-inlinetask.el (org-inlinetask-toggle-visibility): Don't use
  `org-show-entry` as it cannot unfold an inlinetask properly.

TINYCHANGE

11 months agoox-latex: Don't quote const in defcustom
Rüdiger Sonderfeld [Tue, 29 Oct 2013 16:20:20 +0000]
ox-latex: Don't quote const in defcustom

* lisp/ox-latex.el (org-latex-listings): Don't quote const value.

Quoting it would set `org-export-latex' not to `minted' but `(quote
minted)' and thus breaking the export.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>

11 months agoFix `org-insert-heading' at buffer boundaries
Nicolas Goaziou [Tue, 29 Oct 2013 08:55:01 +0000]
Fix `org-insert-heading' at buffer boundaries

* lisp/org.el (org-insert-heading): Do not error out when inserting is
  to be done at one of the buffer's boundaries.
* testing/lisp/test-org.el: Add tests.

11 months agoFix org-insert-todo-heading-respect-content in plain list item
Ingo Lohmar [Sun, 27 Oct 2013 16:34:22 +0000]
Fix org-insert-todo-heading-respect-content in plain list item

* lisp/org.el (org-insert-todo-heading-respect-content): Pass correct
prefix arg to always insert heading.

TINYCHANGE

This function used a second argument t, which is eventually passed to
org-insert-heading, adding a list item when inside a plain list.  Use
the proper argument '(4) now, to always create a heading, just like
the function's name and documentation imply.

11 months agoCorrectly indent BEGIN_SRC and END_SRC lines
Joost Diepenmaat [Fri, 25 Oct 2013 09:08:46 +0000]
Correctly indent BEGIN_SRC and END_SRC lines

* lisp/org.el (org-indent-region): BEGIN_SRC and END_SRC lines should
  not be considered part of the source block for the purposes of
  indentation.

TINYCHANGE

11 months agoox-latex: Fix docstring
Nicolas Goaziou [Sat, 26 Oct 2013 19:00:03 +0000]
ox-latex: Fix docstring

* lisp/ox-latex.el (org-latex-listings-options): Use correct number of
  backslash characters in the example.

Reported-by: Thomas S. Dye <tsd@tsdye.com>

12 months agoorg-element: Use `org-latex-regexps', not `org-format-latex-options'
Nicolas Goaziou [Thu, 24 Oct 2013 15:15:23 +0000]
org-element: Use `org-latex-regexps', not `org-format-latex-options'

* lisp/org-element.el (org-element-latex-or-entity-successor,
  org-element-latex-fragment-parser): Use `org-latex-regexps' instead
  of `org-format-latex-options'.
* testing/lisp/test-org-element.el: Fix tests.

`org-latex-regexps' defines the correct syntax for LaTeX code within
an Org buffer.  On the other hand, `org-format-latex-options'
determines which syntax can be previewed within the buffer.

12 months agoorg.texi: Remove reference to quoted underscores
Nicolas Goaziou [Thu, 24 Oct 2013 09:16:19 +0000]
org.texi: Remove reference to quoted underscores

* doc/org.texi (Subscripts and superscripts): Remove reference to
  quoted underscores until this mechanism is implemented again.

12 months agoorg.texi: Improve Beamer export documentation
Nicolas Goaziou [Thu, 24 Oct 2013 09:14:55 +0000]
org.texi: Improve Beamer export documentation

* doc/org.texi (Beamer export): Be more accurate about BEAMER_OPT
  property.

12 months agoox-odt: Stop adding leading space after line break
Christian Moe [Wed, 23 Oct 2013 16:49:03 +0000]
ox-odt: Stop adding leading space after line break

* lisp/ox-odt.el (org-odt-line-break, org-odt-plain-text): Remove
newline after line-break tag.

The exporter was pretty-printing the ODT XML with newlines after
forced line breaks, but LibreOffice would interpret those as
spaces.  This led to a leading space after every manual line break.

12 months agoox-taskjuggler: Fix effort property
Nicolas Goaziou [Wed, 23 Oct 2013 16:22:39 +0000]
ox-taskjuggler: Fix effort property

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler--build-task): Fix
  effort property if `org-effort-property' was changed.

12 months agoexport back-ends: Remove duplicate information
Nicolas Goaziou [Sun, 20 Oct 2013 08:58:30 +0000]
export back-ends: Remove duplicate information

* lisp/ox-ascii.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-beamer.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-html.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-icalendar.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.
* lisp/ox-md.el: Remove comments at the beginning of the file since
  the library is documented in Org manual.

12 months agoorg-element: Use `org-match-string-no-properties'.
Nicolas Goaziou [Wed, 16 Oct 2013 19:26:19 +0000]
org-element: Use `org-match-string-no-properties'.

* lisp/org-element.el (org-element--list-struct): Use
  `org-match-string-no-properties'.

12 months agoorg-element: Fix block parsing in lists
Nicolas Goaziou [Wed, 16 Oct 2013 08:36:48 +0000]
org-element: Fix block parsing in lists

* lisp/org-element.el (org-element--list-struct): Fix block parsing in
  lists.
* testing/lisp/test-org-element.el: Add test.

Reported-by: Omid <omidlink@gmail.com>

12 months agoox-org.el: Show all headings and all blocks before fontifying when htmlizing sources
Bastien Guerry [Mon, 14 Oct 2013 08:05:30 +0000]
ox-org.el: Show all headings and all blocks before fontifying when htmlizing sources

* ox-org.el (org-org-publish-to-org): When htmlizing an .org
file, ensure to show all headings and all blocks before
fontifying.

12 months agoorg.texi (Plain lists, Plain lists): Fix typos
Bastien Guerry [Mon, 14 Oct 2013 07:51:06 +0000]
org.texi (Plain lists, Plain lists): Fix typos

* org.texi (Plain lists, Plain lists): Fix typos.

Thanks to Elifsu Sabuncu for reporting this.

12 months agoox-publish: Fix compilation problem
Nicolas Goaziou [Sun, 13 Oct 2013 16:34:57 +0000]
ox-publish: Fix compilation problem

* lisp/ox-publish.el (org-publish-all): Fix compilation problem.

12 months agoorg-element: Fix interpreter for timestamp with delay
Nicolas Goaziou [Sun, 13 Oct 2013 16:13:35 +0000]
org-element: Fix interpreter for timestamp with delay

* lisp/org-element.el (org-element-timestamp-interpreter): Correctly
  interpret timestamps with delays.
* testing/lisp/test-org-element.el: Add test.

12 months agoorg-element: Parse warning delays in timestamps
Nicolas Goaziou [Sun, 13 Oct 2013 08:17:16 +0000]
org-element: Parse warning delays in timestamps

* lisp/org-element.el (org-element-timestamp-parser,
  org-element-timestamp-interpreter): Parse warning delays.
* testing/lisp/test-org-element.el (test-org-element/timestamp): Add
  tests.

12 months agoUse bzg@gnu.org instead of bzg AT gnu DOT org
Bastien Guerry [Tue, 8 Oct 2013 06:07:21 +0000]
Use bzg@gnu.org instead of bzg AT gnu DOT org

12 months agoox: Fix a test
Nicolas Goaziou [Mon, 7 Oct 2013 17:02:49 +0000]
ox: Fix a test

* testing/lisp/test-ox.el (test-org-export/with-backend): Fix test.

12 months agoox-beamer: Fix b67ff6073c09b3f5c3878152d42efe34fcf0fd6e
Nicolas Goaziou [Mon, 7 Oct 2013 10:25:18 +0000]
ox-beamer: Fix b67ff6073c09b3f5c3878152d42efe34fcf0fd6e

* lisp/ox-beamer.el (org-beamer--format-section): Fix regression
  introduced in b67ff6073c09b3f5c3878152d42efe34fcf0fd6e, which would
  prevent frames from being propely exported.

12 months agoox: Fix `org-export-with-backend'
Nicolas Goaziou [Mon, 7 Oct 2013 14:47:51 +0000]
ox: Fix `org-export-with-backend'

* lisp/ox.el (org-export-with-backend): Ensure function will use
  provided back-end.
* testing/lisp/test-ox.el: Add test.

12 months agoorg-list: Fix misleading docstring
Nicolas Goaziou [Fri, 4 Oct 2013 19:13:23 +0000]
org-list: Fix misleading docstring

* lisp/org-list.el (org-list-allow-alphabetical): Remove reference to
  unused VALUE.

12 months agoox-beamer: Protect fragile commands in sections
Nicolas Goaziou [Thu, 3 Oct 2013 13:11:03 +0000]
ox-beamer: Protect fragile commands in sections

* lisp/ox-beamer.el (org-beamer--format-section): Protect fragile
  commands in sections.

12 months agoFix check-box toggling when point is on a link at an item
Nicolas Goaziou [Thu, 3 Oct 2013 11:41:09 +0000]
Fix check-box toggling when point is on a link at an item

* lisp/org.el (org-ctrl-c-ctrl-c): When using C-c C-c at an item with
  point on a link, make sure checkbox, if any, is toggled.

Reported-by: Christoph LANGE <math.semantic.web@gmail.com>

12 months agoFix typos release_8.2.1
Carsten Dominik [Mon, 30 Sep 2013 08:56:33 +0000]
Fix typos

12 months agoox-beamer: Add a helpful error message
Nicolas Goaziou [Sun, 29 Sep 2013 08:22:14 +0000]
ox-beamer: Add a helpful error message

* lisp/ox-beamer.el (org-beamer--format-block): Return an error
  message when using a special environment as a block type.  Also
  check for incomplete environment definitions.

12 months agoProtect src overlay during saving the src snipped
Carsten Dominik [Tue, 24 Sep 2013 21:34:39 +0000]
Protect src overlay during saving the src snipped

* lisp/org-src.el (org-edit-src-exit): Let overlay survive after the
buffer has been saved.

13 months agoColumnview: Fix the case of #+ content present
Carsten Dominik [Sun, 22 Sep 2013 06:07:58 +0000]
Columnview: Fix the case of #+ content present

* lisp/org-colview.el (org-dblock-write:columnview): Change the
capture of pos to after inserting the original content

The problem is with a block that has content preceding the table.
Upon recreating the content, the `pos' gets set to the beginning of
this content instead of the table.  Later calls to
`org-table-recalculate' or `org-table-align' will fail because the
point is not at a table.

This patch moves the capture of `pos' to right before the insertion of
the table.

TINYCHANGE
Patch by Benjamin Beckwith

13 months agoFix documentation of the org-footnote face
Alan Schmitt [Thu, 19 Sep 2013 12:27:19 +0000]
Fix documentation of the org-footnote face

* org-faces.el (org-footnote): Fix the documentation for this face.

TINYCHANGE

13 months agoC-u C-u C-c ! inserts an active timestamp.
Nicolas Richard [Mon, 16 Sep 2013 13:42:25 +0000]
C-u C-u C-c ! inserts an active timestamp.

I suggest the following change so that C-u C-u C-c ! inserts an inactive
timestamp. I also document the INACTIVE argument of org-time-stamp.

--
Nicolas.

From 5cdb18297d92f2d99334d98aa2f3b8a40e44702f Mon Sep 17 00:00:00 2001
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Date: Mon, 29 Apr 2013 09:02:21 +0200
Subject: [PATCH] Enforce the convention that C-c ! inserts inactive
 timestamps.

* lisp/org.el (org-time-stamp): When INACTIVE is non-nil, insert an
  inactive timestamp also with double universal argument.

13 months agoGet rid of old style backquoting
Carsten Dominik [Fri, 20 Sep 2013 05:06:27 +0000]
Get rid of old style backquoting

* lisp/ox-texinfo.el (org-texinfo-export-to-texinfo): Use new style
backquoting.
(org-texinfo-export-to-info): Use new style backquoting.

Thanks to Mehul Sanghvi for the patch.

13 months agoDeclare a function in ob-core.el release_8.2
Carsten Dominik [Thu, 19 Sep 2013 03:21:06 +0000]
Declare a function in ob-core.el

13 months agoFix incorrect funtion call
Carsten Dominik [Thu, 19 Sep 2013 03:05:56 +0000]
Fix incorrect funtion call

* lisp/ob-latex.el (org-babel-execute:latex): Call `file-name-sans-extension'
instead of `file-base-name'.

13 months agoImprove behvior of org-insert-heading to end of subtree
Carsten Dominik [Thu, 19 Sep 2013 02:56:48 +0000]
Improve behvior of org-insert-heading to end of subtree

* lisp/org.el (org-insert-heading): Improve whitespace behavior at
end of subtree.

In a subtree with lots of empty space at the end, until now the new
entry would be inserted after all that whitespace.  Now, it is
inserted closer to the existing text, and the whitespace remains after
the new headline.

13 months agoWrite the news for release 8.2
Carsten Dominik [Thu, 19 Sep 2013 02:44:49 +0000]
Write the news for release 8.2

13 months agorm meaningless ":padnewlines" from default header args
Eric Schulte [Wed, 18 Sep 2013 21:20:51 +0000]
rm meaningless ":padnewlines" from default header args

* lisp/ob-core.el (org-babel-default-header-args): It is likely that
  someone meant to set :padlines to "yes", but accidentally set
  :padnewlines to "yes".  Either way lets just remove this which
  shouldn't have any functional effect.

13 months agodefault to :padline no for Haskell
Eric Schulte [Wed, 18 Sep 2013 21:19:54 +0000]
default to :padline no for Haskell

   Whitespace is significant in Haskell code so this could change
   program semantics.

* lisp/ob-haskell.el (org-babel-default-header-args:haskell): set
  :padlines to "no" by default.

13 months agoMerge branch 'maint'
Nicolas Goaziou [Wed, 18 Sep 2013 19:17:52 +0000]
Merge branch 'maint'

13 months agoorg-element: Fix `org-element-at-point' at end of buffer
Nicolas Goaziou [Wed, 18 Sep 2013 19:15:04 +0000]
org-element: Fix `org-element-at-point' at end of buffer

* lisp/org-element.el (org-element-at-point): If point is at the end
  of the buffer, and that buffer ends with a list, and there's no
  final newline, return last element in last item instead of plain
  list.
* testing/lisp/test-org-element.el: Add test.

This fix allows to fill correctly the following construct:

 - Item with a very long line ending at the end of buffer.

13 months agoMerge branch 'maint'
Nicolas Goaziou [Tue, 17 Sep 2013 20:38:15 +0000]
Merge branch 'maint'

13 months agoorg-element: Fix infloop in `org-element-at-point'
Nicolas Goaziou [Tue, 17 Sep 2013 20:36:09 +0000]
org-element: Fix infloop in `org-element-at-point'

* lisp/org-element.el (org-element-at-point): Fix infloop when called
  on a blank line at the end of the buffer after a headline.

13 months agoRevert "Revert "Revert "Use `xdg-open' to open files where available"""
Carsten Dominik [Tue, 17 Sep 2013 19:51:45 +0000]
Revert "Revert "Revert "Use `xdg-open' to open files where available"""

This reverts commit 0022904e83babacbdbaf167fcbf488dbf90dd78e.

13 months agoImprove documentation of sparse trees
Carsten Dominik [Tue, 17 Sep 2013 19:48:28 +0000]
Improve documentation of sparse trees

13 months agoImprove a sentence in the manual
Carsten Dominik [Tue, 17 Sep 2013 05:17:07 +0000]
Improve a sentence in the manual

* doc/org.texi (CSS support): Clarify this section.

13 months agoClean up list of default LaTeX packages
Carsten Dominik [Tue, 17 Sep 2013 05:02:14 +0000]
Clean up list of default LaTeX packages

* doc/org.texi (@LaTeX{} specific attributes): Document that tabu
and tabularx packages are not in the default set of packages.
* lisp/org.el (org-latex-default-packages-alist): Add the `rotating'
package to the list of default packages.  Improve docstring.

13 months agoFix spacing and cursor position bug caused by `org-insert-property-drawer' release_8.1.2
Carsten Dominik [Mon, 16 Sep 2013 06:22:15 +0000]
Fix spacing and cursor position bug caused by `org-insert-property-drawer'

* lisp/org.el (org-insert-property-drawer): Insert only after space in
current line.

This fixed a bug reported by Mathieu Boespflug, who writes:

> Hi,
>
> consider the following very simple org file:
>
> * TODO Thing1[]
>
> where "[]" marks where the point is. Now if I C-S-RET to insert a new
> TODO heading, I get
>
> * TODO Thing1
> * TODO []
>
> Note that there is a trailing space at the end of the last line, as
> expected. The problem is that if I now press C-c C-x p to set
> a property (any property), then I end up with the following situation:
>
> * TODO Thing1
> * TODO
>  :PROPERTIES:
>  :PROP:     val
>  :END: []
>
> The point is now at the end of the property drawer, rather than where it
> was before. Notice how the trailing whitespace in the heading has
> moreover been moved to after the property drawer.
>
> Expected behaviour:
>
> After C-c C-x p, I expect to get:
>
> * TODO Thing1
> * TODO []
>  :PROPERTIES:
>  :PROP:     val
>  :END:
>
> This is exactly what I get if there is *no trailing whitespace* in the
> TODO heading before hitting C-c C-x p. So it seems that the bug is that
> org-set-property does not deal well with trailing whitespace.
>
> This is a problem because it messes up setting properties by advising
> org-insert-todo-heading, say to set a CREATED property automatically for
> new TODO items.

13 months agoMerge branch 'master' of orgmode.org:org-mode
Carsten Dominik [Sun, 15 Sep 2013 04:41:25 +0000]
Merge branch 'master' of orgmode.org:org-mode

13 months agoFix typo
Carsten Dominik [Sun, 15 Sep 2013 04:41:09 +0000]
Fix typo

13 months agoGiven a block with an empty body org-babel-src-block-regexp gobbled up everything...
Aditya Siram [Fri, 13 Sep 2013 14:57:25 +0000]
Given a block with an empty body org-babel-src-block-regexp gobbled up everything until the ending delimiter of the next code block. Fixed this by making the body regexp non-greedy.

13 months agoKeep paragraph motion commands from deactivating the mark
Carsten Dominik [Sat, 14 Sep 2013 05:58:56 +0000]
Keep paragraph motion commands from deactivating the mark

* lisp/org.el (org-forward-paragraph): Do not deactivate the mark.
(org-backward-paragraph): Do not deactivate the mark.

13 months agoFirst stab at Org News for 8.2
Carsten Dominik [Sat, 14 Sep 2013 05:50:58 +0000]
First stab at Org News for 8.2

13 months agoNew functions for paragraph-like navigation
Nicolas Goaziou [Fri, 13 Sep 2013 22:02:12 +0000]
New functions for paragraph-like navigation

* lisp/org.el (org-forward-paragraph, org-backward-paragraph): New
  functions.
* testing/lisp/test-org.el: Add tests.

13 months agoMerge branch 'maint'
Carsten Dominik [Fri, 13 Sep 2013 19:09:49 +0000]
Merge branch 'maint'

13 months agoAllow to turn of special behavior of `C-o' in tables
Carsten Dominik [Fri, 13 Sep 2013 19:09:17 +0000]
Allow to turn of special behavior of `C-o' in tables

* lisp/org.el (org-special-ctrl-o): New option.
(org-open-line): Don't do anything special unless `org-special-ctrl-o'
is non-nil.

13 months agoCenter currently clocked headline to top of screen
Sebastien Vauban [Tue, 10 Sep 2013 09:57:05 +0000]
Center currently clocked headline to top of screen

* org-clock.el (org-clock-goto-before-context): New option.
  (org-clock-goto): Use that option.

13 months agoAdd fortnight view to agenda
Carsten Dominik [Fri, 13 Sep 2013 05:46:24 +0000]
Add fortnight view to agenda

* doc/org.texi (Agenda commands): Document fortnight view.
* lisp/org-agenda.el (org-agenda-custom-commands-local-options):
(org-agenda-span): Add support for fortnight view.
(org-agenda-menu): Add fortnight view command.
(org-agenda-list):
(org-agenda-ndays-to-span): Add support for fortnight view.
(org-agenda-span-to-ndays): Add support for fortnight view.
(org-agenda-later): Add support for fortnight view.
(org-agenda-fortnight-view): New command.
(org-agenda-change-time-span): Add support for fortnight view.
(org-agenda-compute-starting-span): Add support for fortnight view.

This is a patch by Michael Gauland.

13 months agoAdd ERTs for org-meta-return
Michael Brand [Thu, 12 Sep 2013 20:48:16 +0000]
Add ERTs for org-meta-return

* testing/lisp/test-org.el (test-org/meta-return): New `ert-deftest'
to test `org-meta-return'.

13 months agoAllow M-RET to insert items within drawers
Nicolas Goaziou [Thu, 12 Sep 2013 20:21:12 +0000]
Allow M-RET to insert items within drawers

* lisp/org.el (org-meta-return): Allow M-RET to insert items within
  drawers.  Rewrite function.

This patch also allows a user to insert a headline within a drawer,
which will basically break it.  The point is to leave user responsible
for his editing actions.

13 months agoRemove eucal package for LaTeX fragments
rasmus [Wed, 11 Sep 2013 09:58:08 +0000]
Remove eucal package for LaTeX fragments

* org.el (org-format-latex-header): Remove eucal.

With amsmath loaded eucal (basically) only provides an alternative
typeface to \mathcal{.}