org-mode.git
3 years agoorg-refile: New option `org-refile-active-region-within-subtree'.
Bastien Guerry [Wed, 17 Aug 2011 09:20:42 +0000]
org-refile: New option `org-refile-active-region-within-subtree'.

* org.el (org-refile-active-region-within-subtree): New option
to allow refiling a region that is part of a subtree without
containing a subtree itself.  This default to `nil'.
(org-refile): Use the new option.  Put point at the beginning
of the region/subtree to be refiled, so that users understand
what will be refiled.  Also improve the prompt to tell whether
the user is refiling a region or a headline.

Thanks to Jeff Horn for raising the issue of refiling a list item,
and to Nicolas Goaziou, Nick Dokos and Suvayu Ali for discussing
them patiently.  The discussion led to these changes.

3 years agoorg.el: minor fix: delete trailing whitespaces.
Bastien Guerry [Wed, 17 Aug 2011 09:12:43 +0000]
org.el: minor fix: delete trailing whitespaces.

3 years agoNew option `org-properties-postprocess-alist'.
Bastien Guerry [Tue, 16 Aug 2011 14:21:31 +0000]
New option `org-properties-postprocess-alist'.

* org.el (org-properties-postprocess-alist): New option to
allow postprocessing the values of properties set through
`org-set-property'.
(org-set-property): Use this option.

This is inspired by a request from Pascal Mattia.

3 years agoorg.el (org-outline-regexp, org-outline-regexp-bol): Add a docstring.
Bastien Guerry [Wed, 17 Aug 2011 09:05:23 +0000]
org.el (org-outline-regexp, org-outline-regexp-bol): Add a docstring.

* org.el (org-outline-regexp, org-outline-regexp-bol): Add a
docstring.

3 years agoorg-archive.el: Use `org-outline-regexp' instead of `outline-regexp'.
Bastien Guerry [Wed, 17 Aug 2011 09:05:03 +0000]
org-archive.el: Use `org-outline-regexp' instead of `outline-regexp'.

* org-archive.el (org-archive-to-archive-sibling): Use
`org-outline-regexp' instead of `outline-regexp'.

3 years agofix code typo
Nicolas Goaziou [Wed, 17 Aug 2011 01:15:22 +0000]
fix code typo

3 years agoMinor fix to org-between-regexps-p
Nicolas Goaziou [Wed, 17 Aug 2011 01:11:18 +0000]
Minor fix to org-between-regexps-p

* lisp/org.el (org-between-regexps-p): searching up to pos may match
  again beginning regexp.

3 years agoorg-footnote: do not suggest bindings outside Org
Nicolas Goaziou [Tue, 16 Aug 2011 20:00:24 +0000]
org-footnote: do not suggest bindings outside Org

* lisp/org-footnote.el (org-footnote-goto-definition): don't send
  erroneous message: suggested bindings might not be set outside Org.

3 years agoorg-footnote: refactor code
Nicolas Goaziou [Tue, 16 Aug 2011 19:59:09 +0000]
org-footnote: refactor code

3 years agoorg-footnote: remove every footnote tag when normalizing non Org buffers
Nicolas Goaziou [Tue, 16 Aug 2011 19:43:23 +0000]
org-footnote: remove every footnote tag when normalizing non Org buffers

* lisp/org-footnote.el (org-footnote-normalize): effectively remove
  any footnote tag in non Org buffers, as detailled in
  org-footnote-tag-for-non-org-mode-files doc-string.

3 years agoorg-footnote: allow non Org mode files to have no footnote tag
Nicolas Goaziou [Tue, 16 Aug 2011 18:02:30 +0000]
org-footnote: allow non Org mode files to have no footnote tag

* lisp/org-footnote.el (org-footnote-tag-for-non-org-mode-files):
  notify the opportunity to set the variable to the empty string.
(org-footnote-normalize, org-footnote-create-definition): carefully
  check for inserted newlines and presence of the footnote
  tag.

3 years agoorg-footnote: re-use global regexps when possible
Nicolas Goaziou [Tue, 16 Aug 2011 16:10:15 +0000]
org-footnote: re-use global regexps when possible

* lisp/org-footnote.el (org-footnote-at-definition-p): re-use
  org-footnote-definition-re.

3 years agoorg-footnote: tweak footnote definition regexp
Nicolas Goaziou [Tue, 16 Aug 2011 13:31:20 +0000]
org-footnote: tweak footnote definition regexp

* lisp/org-footnote.el (org-footnote-definition-re): remove an useless
  group.
(org-footnote-at-definition-p): reflect removal of the group.

3 years agoEnforce white space after todo keywords
Nicolas Goaziou [Mon, 25 Jul 2011 15:50:28 +0000]
Enforce white space after todo keywords

* lisp/org.el (org-set-regexps-and-options): enforce white space after
  todo keyword, as word boundary isn't sufficient (i.e. in matches * TODO/this)

3 years agoPrettify inlinetasks in odt and (x)html backends
Jambunathan K [Thu, 11 Aug 2011 20:07:45 +0000]
Prettify inlinetasks in odt and (x)html backends

* lisp/org-inlinetask.el (org-inlinetask-export-templates):
Fixed template for html so that the exported file is valid
xhtml. Added template for odt.
(org-inlinetask-export-handler): Fix typo in the regexp that
trims content. Make sure that the content is flanked by
paragraph boundaries on either side.

* lisp/org-html.el (org-export-html-style-default): Add style
for inlinetask.

* contrib/lisp/org-xhtml.el (org-export-xhtml-style-default):
Add style for inlinetask.

* contrib/odt/styles/OrgOdtStyles.xml: Added following custom
styles:  OrgInlineTaskHeading and OrgInlineTaskFrame.

* contrib/lisp/org-odt.el (org-odt-format-textbox)
(org-odt-format-inlinetask): Added

Refer following threads:
1. http://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg00238.html
2. http://lists.gnu.org/archive/html/emacs-orgmode/2011-08/msg00154.html

Thanks to Suvayu Ali for reporting this issue and suggesting
improvements.

3 years agoDon't insert superfluous space when updating timestamps.
Bastien Guerry [Tue, 16 Aug 2011 17:05:17 +0000]
Don't insert superfluous space when updating timestamps.

* org.el (org-add-planning-info): Don't insert superfluous
space when updating timestamps.

Thanks to Valentin Wüstholz for this patch.

3 years agoorg-agenda.el (org-cmp-effort): Fix docstring.
Bastien Guerry [Tue, 16 Aug 2011 14:16:43 +0000]
org-agenda.el (org-cmp-effort): Fix docstring.

* org-agenda.el (org-cmp-effort): Fix docstring.

3 years agoorg-list: remove left-over commented code and clean white space
Nicolas Goaziou [Tue, 16 Aug 2011 08:23:04 +0000]
org-list: remove left-over commented code and clean white space

3 years agoFix bzg email address (s/altern/gnu).
Bastien Guerry [Mon, 15 Aug 2011 19:22:30 +0000]
Fix bzg email address (s/altern/gnu).

3 years agocontrib/lisp/org-jira.el: remove Creative Commons license.
Bastien Guerry [Mon, 15 Aug 2011 18:10:04 +0000]
contrib/lisp/org-jira.el: remove Creative Commons license.

This license was just a leftover and is not compatible with
the GPLv2 license Jonathan wants to use for this file.

3 years agoRemove arch-tag at the bottom of documentation files.
Bastien Guerry [Mon, 15 Aug 2011 18:04:55 +0000]
Remove arch-tag at the bottom of documentation files.

3 years agoRemove arch-tag at the bottom of files.
Bastien Guerry [Mon, 15 Aug 2011 18:04:38 +0000]
Remove arch-tag at the bottom of files.

3 years agoorg-list: get correct structure with empty items
Nicolas Goaziou [Mon, 15 Aug 2011 16:29:37 +0000]
org-list: get correct structure with empty items

* lisp/org-list.el (org-list-full-item-re): when an item has only
  a bullet and no space after it, list structure would not be
  recognized correctly.

3 years agoEXPERIMENTAL: Fix copyright.
Bastien Guerry [Mon, 15 Aug 2011 13:30:42 +0000]
EXPERIMENTAL: Fix copyright.

3 years agoFix copyright years for elisp files in core and contrib.
Bastien Guerry [Mon, 15 Aug 2011 13:23:11 +0000]
Fix copyright years for elisp files in core and contrib.

Also add "This file is not part of GNU Emacs." when this is the case.

3 years agoorg.el: set `org-ts-what' correctly in `org-at-timestamp-p'.
Bastien Guerry [Mon, 15 Aug 2011 08:06:02 +0000]
org.el: set `org-ts-what' correctly in `org-at-timestamp-p'.

(org-at-timestamp-p): set `org-ts-what' in a way that point will be
considered to be "on the bracket" whether it is really on it or right
after it.

Thanks to Matt Lundin for reporting this and to Nicolas Goaziou for
discussion about this.

3 years agoUse outline-regexp in org-overview so that global cycling works outside of Org buffers.
Bastien Guerry [Mon, 15 Aug 2011 07:51:44 +0000]
Use outline-regexp in org-overview so that global cycling works outside of Org buffers.

* org.el (org-overview): Use outline-regexp instead of
org-outline-regexp so that global cycling using orgstruct-mode
works outside of Org buffers.

Thanks to Matt Lundin for this fix.

3 years agoMove org-find-visible and org-find-invisible from org-exp.el to org.el.
Bastien Guerry [Mon, 15 Aug 2011 07:44:52 +0000]
Move org-find-visible and org-find-invisible from org-exp.el to org.el.

3 years agoMove org-agenda-todo-yesterday from org.el to org-agenda.el.
Bastien Guerry [Mon, 15 Aug 2011 07:39:52 +0000]
Move org-agenda-todo-yesterday from org.el to org-agenda.el.

3 years agoorg-table.el: Fix missing variables in let constructs.
Bastien Guerry [Sun, 14 Aug 2011 18:24:43 +0000]
org-table.el: Fix missing variables in let constructs.

* org-table.el (org-table-eval-formula): Fix missing variable
in let construct.
(org-table-time-string-to-seconds): Fix missing variable in
let construct.

Thanks to John Wiegley for pointing at this.

3 years agoRevert "make the "FILE" property non-special when resolving bibtex values"
Bastien Guerry [Sun, 14 Aug 2011 17:00:20 +0000]
Revert "make the "FILE" property non-special when resolving bibtex values"

This reverts commit f5a359f578214c00fa4dfef5274a59d9236480e6.

On Aug. 8th Thomas S. Dye reported this commit creates problems:
see http://article.gmane.org/gmane.emacs.orgmode/45392

3 years agoAgenda: Simplify old fix of face for deadline warning 0 day
Michael Brand [Mon, 1 Aug 2011 08:53:33 +0000]
Agenda: Simplify old fix of face for deadline warning 0 day

* lisp/org-agenda.el (org-agenda-get-deadlines): Fix dfrac for the
case of wdays being 0.  Don't pass wdays to org-agenda-deadline-face,
like before the old fix.
(org-agenda-deadline-face): Revert to old state that was without
wdays.

This allows a deadline warning period of "-0d" to work also with a
custom configuration like:
(setq org-agenda-deadline-faces
      '((1.0001 . org-warning)              ; due yesterday or before
        (0.0    . org-upcoming-deadline)))  ; due today or later
For org-agenda-deadline-faces left at default and all other settings
not exceeding 1.0, the face for a deadline warning of any length
remains untouched by this patch.

references to history:
* commit of the old fix
  - http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=d0d6325
  - git show d0d6325
* mailing list old thread
  - http://thread.gmane.org/gmane.emacs.orgmode/5753
  - http://lists.gnu.org/archive/html/emacs-orgmode/2008-02/msg00395.html

3 years agoorg-mac-ical: Clean up org-mac-iCal-range checking to eliminate end-of-year special...
Don Roberts [Sat, 30 Jul 2011 14:20:09 +0000]
org-mac-ical: Clean up org-mac-iCal-range checking to eliminate end-of-year special cases and include repeating events in diary file

3 years agoorgcard: correct reference to manual
Julian Gehring [Sat, 30 Jul 2011 12:52:46 +0000]
orgcard: correct reference to manual

3 years agoorg-latex.el: Only add one line break after exporting verbatim environments.
Bastien Guerry [Sun, 14 Aug 2011 14:40:45 +0000]
org-latex.el: Only add one line break after exporting verbatim environments.

* org-latex.el (org-export-latex-fixed-width): Only add one
line break after exporting verbatim environments.

Thanks to Maik Beckmann for reporting this.

3 years ago* org-mw.el (org-mw-export-lists): Fix list export.
Bastien Guerry [Sun, 14 Aug 2011 14:39:31 +0000]
* org-mw.el (org-mw-export-lists): Fix list export.

3 years agoorg-list.el: Allow the generic list exporter to trim line breaks in items.
Bastien Guerry [Sun, 14 Aug 2011 14:38:55 +0000]
org-list.el: Allow the generic list exporter to trim line breaks in items.

* org-list.el (org-list-item-trim-br): New function.
(org-list-to-generic): New parameter :nobr to use the new
function.

3 years agoorg-footnote: keep byte-compiler happy
Nicolas Goaziou [Sun, 14 Aug 2011 08:52:14 +0000]
org-footnote: keep byte-compiler happy

3 years agoRenamed unnecessary use of sort* to sort
John Wiegley [Sat, 13 Aug 2011 21:40:04 +0000]
Renamed unnecessary use of sort* to sort

3 years agoMerge branch 'master' of orgmode.org:org-mode
David Maus [Sat, 13 Aug 2011 13:02:58 +0000]
Merge branch 'master' of orgmode.org:org-mode

3 years agoFix wrong order of lines to move before pasting
David Maus [Sat, 13 Aug 2011 13:02:03 +0000]
Fix wrong order of lines to move before pasting

* org.el (org-paste-subtree): Fix wrong order of lines to move before
pasting.

3 years agoAdd customization variable `org-use-effective-time'
John Wiegley [Sat, 13 Aug 2011 08:21:49 +0000]
Add customization variable `org-use-effective-time'

If non-nil, consider `org-extend-today-until' when creating timestamps.
For example, if `org-extend-today-until' is 8, and it's 4am, then the
"effective time" of any timestamps between midnight and 8am will be
23:59 of the previous day.

3 years agoMerge branch 'master' of orgmode.org:org-mode
Bastien Guerry [Sat, 13 Aug 2011 08:11:59 +0000]
Merge branch 'master' of orgmode.org:org-mode

3 years agoMinor changes: fix copyright years and licenses.
Bastien Guerry [Sat, 13 Aug 2011 08:11:39 +0000]
Minor changes: fix copyright years and licenses.

See https://lists.gnu.org/archive/html/emacs-diffs/2011-08/msg00113.html
for the original patches.  Thanks to Glenn Morris.

3 years agoob-maxima.el: fix the copyright years.
Bastien Guerry [Sat, 13 Aug 2011 08:05:24 +0000]
ob-maxima.el: fix the copyright years.

3 years agoob-lilypond.el: fix the copyright years.
Bastien Guerry [Sat, 13 Aug 2011 08:04:58 +0000]
ob-lilypond.el: fix the copyright years.

3 years agoob-awk.el: minor fix. Remove double "Commentary:" line in header.
Bastien Guerry [Sat, 13 Aug 2011 08:04:17 +0000]
ob-awk.el: minor fix.  Remove double "Commentary:" line in header.

3 years agoPaste subtree above target headline if point is at bol
David Maus [Sat, 13 Aug 2011 07:19:19 +0000]
Paste subtree above target headline if point is at bol

* org.el (org-paste-subtree): Paste subtree above target headline if
point is at bol.

Capture and refile depend on this buggy behavior of org-past-subtree.

3 years agoorg-list: don't clear marker while still in use
Nicolas Goaziou [Fri, 12 Aug 2011 13:17:48 +0000]
org-list: don't clear marker while still in use

* lisp/org-list.el (org-toggle-checkbox): don't clear lim-down while
  used in the while loop.

3 years agoorg-list: fix bug in `org-toggle-checkbox' on current item
Nicolas Goaziou [Fri, 12 Aug 2011 13:11:19 +0000]
org-list: fix bug in `org-toggle-checkbox' on current item

* lisp/org-list.el (org-toggle-checkbox): lim-down must be a marker.

3 years agoFix fontification error in feb52f9028e73f0f49390780bb2e61cc9da04303
Nicolas Goaziou [Fri, 12 Aug 2011 11:06:25 +0000]
Fix fontification error in feb52f9028e73f0f49390780bb2e61cc9da04303

* lisp/org.el (org-activate-code): correct regexp so ":.*" isn't
  matched.

3 years agoMerge branch 'refactor/org-macros'
David Maus [Fri, 12 Aug 2011 06:49:24 +0000]
Merge branch 'refactor/org-macros'

3 years agoProvide edebug specifications for macros
David Maus [Thu, 11 Aug 2011 06:57:25 +0000]
Provide edebug specifications for macros

* org-macs.el (org-with-gensyms, org-called-interactively-p)
(with-silent-modifications, org-bound-and-true-p)
(org-unmodified, org-re, org-preserve-lc)
(org-without-partial-completion, org-with-point-at)
(org-no-warnings, org-if-unprotected, org-if-unprotected-1)
(org-if-unprotected-at, org-with-remote-undo)
(org-no-read-only, org-save-outline-visibility)
(org-with-wide-buffer, org-with-limited-levels)
(org-eval-in-environment): Provide edebug specifications.
* org-src.el (org-src-do-at-code-block): Dto.
* org-publish.el (org-publish-with-aux-preprocess-maybe): Dto.
* org-compat.el (org-xemacs-without-invisibility): Dto.
* org-clock.el (org-with-clock-position, org-with-clock): Dto.
* org-agenda.el (org-agenda-with-point-at-orig-entry)
(org-batch-agenda, org-batch-agenda-csv)
(org-batch-store-agenda-views): Dto.
* ob.el (org-babel-do-in-edit-buffer)
(org-babel-map-src-blocks, org-babel-map-inline-src-blocks): Dto.
* ob-tangle.el (org-babel-with-temp-filebuffer): Dto.
* ob-table.el (sbe): Dto.
* ob-exp.el (org-babel-exp-in-export-file): Dto.
* ob-comint.el (org-babel-comint-in-buffer)
(org-babel-comint-with-output): Dto.

3 years agoorg-inlinetask: fix a doc-string
Nicolas Goaziou [Thu, 11 Aug 2011 12:10:35 +0000]
org-inlinetask: fix a doc-string

* lisp/org-inlinetask.el (org-inlinetask-export-templates): fix doc-string.

3 years agoorg-inlinetask: error when trying to nest inline tasks
Nicolas Goaziou [Thu, 11 Aug 2011 12:09:55 +0000]
org-inlinetask: error when trying to nest inline tasks

* lisp/org-inlinetask.el (org-inlinetask-insert-task): error when
  trying to nest inline tasks.

3 years agoAllow "^[ \t]*:$" as a special case of fixed-width section
Nicolas Goaziou [Thu, 11 Aug 2011 09:44:40 +0000]
Allow "^[ \t]*:$" as a special case of fixed-width section

* lisp/org.el (org-activate-code, org-toggle-fixed-width-section,
  org-indent-line-function): allow "[ \t]*:$" as a special case of
  fixed-width section.

3 years agoDon't eat headline when yank with point at existing headline
David Maus [Wed, 10 Aug 2011 16:38:26 +0000]
Don't eat headline when yank with point at existing headline

* org.el (org-paste-subtree): Don't eat headline when called with
point at existing headline.

3 years agoMerge branch 'master' of orgmode.org:org-mode
David Maus [Wed, 10 Aug 2011 16:18:06 +0000]
Merge branch 'master' of orgmode.org:org-mode

3 years agoFix typo in variable name
David Maus [Wed, 10 Aug 2011 16:17:48 +0000]
Fix typo in variable name

* org.el (org-paste-subtree): Fix typo in variable name.

3 years agoCheck org-inlinetask-export-templates before exporting inline tasks
Jambunathan K [Sat, 6 Aug 2011 14:34:35 +0000]
Check org-inlinetask-export-templates before exporting inline tasks

* lisp/org-inlinetask.el (org-inlinetask-export-handler): Don't export
inline tasks if the current backend has provided no entries in
org-inlinetask-export-templates.

3 years agoPreserve indentation of explicitly indented lines in example blocks
Valentin Wüstholz [Tue, 9 Aug 2011 19:28:56 +0000]
Preserve indentation of explicitly indented lines in example blocks

* lisp/org.el (org-indent-line-function): Made the way in which example blocks are
  indented more flexible.

Before: Lines in example blocks were indented like the surrounding begin and end
delimiters.
After: By default, lines in example blocks are indented like the surrounding begin and end
delimiters, unless the user explicitly indents them differently.

TINYCHANGE

3 years agoFix argument to append when creating final parameter alist
David Maus [Wed, 10 Aug 2011 08:10:40 +0000]
Fix argument to append when creating final parameter alist

* org-agenda.el (org-batch-agenda-csv): Fix argument to append when
creating final parameter alist.

3 years agoFix command line syntax for agenda batch commands
David Maus [Wed, 10 Aug 2011 07:24:56 +0000]
Fix command line syntax for agenda batch commands

* org.texi (Exporting Agenda Views, Extracting agenda information):
Fix command line syntax, quote symbol parameter values.

3 years agoFix command line syntax of `org-batch-store-agenda-view'
David Maus [Wed, 10 Aug 2011 07:22:50 +0000]
Fix command line syntax of `org-batch-store-agenda-view'

* org.texi (Exporting Agenda Views): Fix command line syntax.

You cannot use 'emacs -f org-batch-store-agenda-view' because it is
implemented as macro, not function.

3 years agoUse macro `org-eval-in-environment' in `org-batch-store-agenda-views'
David Maus [Wed, 10 Aug 2011 07:13:22 +0000]
Use macro `org-eval-in-environment' in `org-batch-store-agenda-views'

* org-agenda.el (org-batch-store-agenda-views): Use macro
`org-eval-in-environment'.

3 years agoProvide explanation why batch functions are implemented as macros
David Maus [Wed, 10 Aug 2011 07:07:37 +0000]
Provide explanation why batch functions are implemented as macros

,----
| The functions `org-batch-agenda', `org-batch-agenda-csv', and
| `org-batch-store-agenda-views' are implemented as macros to provide
| a conveniant way for extracting agenda information from the command
| line. The Lisp does not evaluate parameters of a macro call; thus
| it is not necessary to quote the parameters passed to one of those
| functions. E.g. you can write:
|
|   emacs -batch -l ~/.emacs -eval '(org-batch-agenda "a" org-agenda-span 7)'
|
| To export an agenda spanning 7 days. If `org-batch-agenda' would
| have been implemented as a regular function you'd have to quote the
| symbol org-agenda-span. Moreover: To use a symbol as parameter
| value you would have to double quote the symbol.
|
| This is a hack, but it works even when running Org byte-compiled.
`----

3 years agoUse `org-eval-in-environment
David Maus [Wed, 10 Aug 2011 05:56:29 +0000]
Use `org-eval-in-environment

* org-agenda.el (org-batch-agenda, org-batch-agenda-csv): Use
`org-eval-in-environment.

3 years agoNew function: Return alist based on flat list
David Maus [Wed, 10 Aug 2011 06:14:26 +0000]
New function: Return alist based on flat list

* org-macs.el (org-make-parameter-alist): New function. Turn flat list
of alternating symbol names and values into an alist with symbol name
in car and value in cdr.

3 years agoUse macro `org-with-gensyms' in `org-agenda-with-point-at-orig-entry'
David Maus [Wed, 10 Aug 2011 05:51:10 +0000]
Use macro `org-with-gensyms' in `org-agenda-with-point-at-orig-entry'

* org-agenda.el (org-agenda-with-point-at-orig-entry): Use macro
`org-with-gensyms'.

3 years agoFactor out function for substituting posix class in regular expression
David Maus [Wed, 10 Aug 2011 05:49:02 +0000]
Factor out function for substituting posix class in regular expression

* org-macs.el (org-substitute-posix-classes): New function. Substitute
posix classes in regular expression.
(org-re): Use new function.

3 years agoNew macro: Evaluate FORM in ENVIRONMENT
David Maus [Wed, 10 Aug 2011 05:43:10 +0000]
New macro: Evaluate FORM in ENVIRONMENT

* org-macs.el (org-eval-in-environment): New macro. Evaluate FORM in
ENVIRONMENT.

3 years agoUse new macro `org-with-gensyms'
David Maus [Wed, 10 Aug 2011 05:33:43 +0000]
Use new macro `org-with-gensyms'

* org-macs.el (org-preserve-lc, org-with-point-at)
(org-with-remote-undo, org-save-outline-visibility): Use new macro
`org-with-gensyms'.

3 years agoNew macro: Wrap let-binding of uninterned SYMBOLS around BODY
David Maus [Wed, 10 Aug 2011 05:28:41 +0000]
New macro: Wrap let-binding of uninterned SYMBOLS around BODY

* org-macs.el (org-with-gensyms): New macro. Wrap let-binding of
SYMBOLS to new uninterned symbols around BODY.

Use this macro to compose macros that need to bind their own symbols
in expansion. It expands into a let-binding of all symbols in SYMBOLS
to new uninterned symbols that cannot collide with symbols used in the
target macro's expansion.

3 years agoAdd org-sudoku to contrib directory
Carsten Dominik [Tue, 9 Aug 2011 16:25:29 +0000]
Add org-sudoku to contrib directory

* contrib/lisp/org-sudoku.el: New file

3 years agoorg-inlinetask: fix HTML export when not clearly defined as a paragraph
Nicolas Goaziou [Mon, 8 Aug 2011 18:21:41 +0000]
org-inlinetask: fix HTML export when not clearly defined as a paragraph

* lisp/org-inlinetask.el (org-inlinetask-export-handler): make sure
  the task starts a paragraph or the HTML exporter will produce an
  incorrect output.

3 years agoFix `newline-and-indent' in a list when called on a line being filled
Nicolas Goaziou [Mon, 8 Aug 2011 16:32:32 +0000]
Fix `newline-and-indent' in a list when called on a line being filled

* lisp/org.el (org-return): when filling happens, `newline' can change
  match data, hence modifying the indent column.

3 years agocontrib/odt/styles/OrgOdtStyles.xml: Make it valid
Jambunathan K [Mon, 8 Aug 2011 06:17:06 +0000]
contrib/odt/styles/OrgOdtStyles.xml: Make it valid

3 years agoFix issues with numbering of lists found during odt to doc conversion
Jambunathan K [Mon, 8 Aug 2011 06:01:17 +0000]
Fix issues with numbering of lists found during odt to doc conversion

* contrib/lisp/org-lparse.el (org-do-lparse): Add new let
bound variable org-lparse-list-level.
(org-lparse-begin-list, org-lparse-end-list): New functions.
(org-lparse-export-list-line, org-lparse-begin-level)
(org-lparse-end-level): Use new functions.

* contrib/lisp/org-odt.el (org-odt-begin-list): Fixed
signature so that it is consistent with how org-lparse library
invokes it. Forcibly emit text:continue-numbering="false"
attribute for the top-level <text:list> element. This fixes
numbering issue found during odt to doc conversion. See
http://thread.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/14739
(org-odt-begin-list-item, org-odt-end-list-item): Use
org-lparse-begin-list and org-lparse-end-list.

* contrib/lisp/org-xhtml.el (org-xhtml-format-toc-item)
(org-xhtml-begin-toc, org-xhtml-end-toc): Use
org-lparse-begin-list and org-lparse-end-list.
(org-xhtml-begin-list): Fixed signature so that it is
consistent with how org-lparse library invokes it.

3 years agoRe-define list styles for exporting to odt
Jambunathan K [Mon, 8 Aug 2011 03:52:41 +0000]
Re-define list styles for exporting to odt

contrib/odt/styles/OrgOdtStyles.xml: Redefine OrgNumberedList,
OrgBulletedList and OrgDescriptionList.

Fixes paragraph indentation reported here:
http://thread.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/14739

3 years agoorg-footnote: Guard against `def' being nil, if footnote undefined
John Wiegley [Sat, 6 Aug 2011 06:20:50 +0000]
org-footnote: Guard against `def' being nil, if footnote undefined

3 years agoAdded customization hook `org-log-buffer-setup-hook'
John Wiegley [Sat, 6 Aug 2011 06:20:33 +0000]
Added customization hook `org-log-buffer-setup-hook'

This allows changes to org-mode after the log buffer has been setup.

3 years agoorg-footnote: fix a doc-string
Nicolas Goaziou [Sat, 6 Aug 2011 10:07:37 +0000]
org-footnote: fix a doc-string

3 years agoorg-footnote: fix function declaration
Nicolas Goaziou [Sat, 6 Aug 2011 09:55:05 +0000]
org-footnote: fix function declaration

3 years agoorg-footnote: allow inserting inlined footnotes at column 0
Nicolas Goaziou [Sat, 6 Aug 2011 09:52:26 +0000]
org-footnote: allow inserting inlined footnotes at column 0

* lisp/org-footnote.el (org-footnote-new): only forbid non-inlined
  footnotes at column 0, as only them can be confused with a footnote
  definition.

3 years agoorg-footnote: add speedups when prompted for a label
Nicolas Goaziou [Sat, 6 Aug 2011 09:37:11 +0000]
org-footnote: add speedups when prompted for a label

* lisp/org-footnote.el (org-footnote-new): use ido or iswitchb when
  available when prompted for a label. Also rename a local variable to
  avoid confusion with an existing function.

3 years agoorg-footnote: remove an unused variable
Nicolas Goaziou [Sat, 6 Aug 2011 09:34:54 +0000]
org-footnote: remove an unused variable

* lisp/org-footnote.el (org-footnote-label-history): removed variable
(org-footnote-new): remove call to that variable.

3 years agoorg-contacts: fix errors when Gnus or ERC are not loaded
Lomax Escarmant [Sat, 6 Aug 2011 09:45:26 +0000]
org-contacts: fix errors when Gnus or ERC are not loaded

Signed-off-by: Julien Danjou <julien@danjou.info>

3 years agoFix heading insertion before any other headline but after a list
Nicolas Goaziou [Sat, 6 Aug 2011 08:57:08 +0000]
Fix heading insertion before any other headline but after a list

* lisp/org.el (org-insert-heading): with force-heading non-nil,
  inserting an heading before any headline, and just after a list
  would return an error.

3 years agoremoved use of copy-seq from ob.el
Eric Schulte [Fri, 5 Aug 2011 18:31:59 +0000]
removed use of copy-seq from ob.el

* lisp/ob.el (org-babel-sha1-hash): Removed use of copy-seq.

3 years agoMap "cpp" to c++-mode
Sergey Litvinov [Wed, 3 Aug 2011 20:02:43 +0000]
Map "cpp" to c++-mode

3 years agoGet rid of tmp and backup file in test load
Sergey Litvinov [Sun, 31 Jul 2011 22:47:32 +0000]
Get rid of tmp and backup file in test load

3 years agomake the "FILE" property non-special when resolving bibtex values
Eric Schulte [Fri, 5 Aug 2011 17:24:48 +0000]
make the "FILE" property non-special when resolving bibtex values

* lisp/org-bibtex.el (org-bibtex-get): Make the "FILE" property
  non-special when resolving bibtex values.

3 years agoUsability improvements to org-lparse-convert and co (First cut)
Jambunathan K [Thu, 4 Aug 2011 20:31:19 +0000]
Usability improvements to org-lparse-convert and co (First cut)

* contrib/lisp/org-lparse.el (org-lparse-and-open)
(org-lparse-register-backend, org-lparse-format-table)
(org-lparse-begin, org-lparse-end): Checkdoc related fixes.
(org-lparse-get-converter): Added
(org-lparse-get-other-backends, org-lparse-all-backends):
Re-implemented. Also improved docstring.
(org-lparse): Make use of improvements in the converter
routines. Improve the following: a) gathering of
target-backend and native-backend args during interactive
calls b) error handling.
(org-lparse-convert): Introduced prefix arg for opening of
converted files. Make use of improvements in the converter
routines. Improve error handling.
(org-lparse-convert-processes): New customizable variable.
(org-lparse-convert-process): Make it customizable. Set
default value to nil.
(org-lparse-convert-capabilities): New customizable variable.
(org-lparse-use-flashy-warning): Fix group and improve docstring.

* contrib/lisp/org-odt.el (org-odt-get): Don't set
CONVERT-METHOD and OTHER-BACKENDS options. Fallback to the
global converter settings for now.
(org-export-odt-preferred-output-format): New variable
(org-export-as-odt-and-open, org-export-as-odt): Use the
afore-mentioned variable.

* contrib/lisp/org-xhtml.el (org-xhtml-get): Don't set
CONVERT-METHOD and OTHER-BACKENDS options. Fallback to the
global converter settings for now.

3 years agoDon't move line upward if point is at eob
David Maus [Thu, 4 Aug 2011 14:05:08 +0000]
Don't move line upward if point is at eob

* org.el (org-back-over-empty-lines): Don't move line upward if point
is at eob.

Fixes a bug with refiling reported by Bernt Hansen, simplified version
of fix proposed by Jason Dunsmore.

3 years agoIntroduce org-lparse-unregister-backend and use it
Jambunathan K [Tue, 2 Aug 2011 09:21:09 +0000]
Introduce org-lparse-unregister-backend and use it

* contrib/lisp/org-lparse.el (org-lparse-unregister-backend):
New.
* contrib/lisp/org-odt.el (org-odt-unload-function):
New. De-register from org-lparse on unload.
* contrib/lisp/org-xhtml.el (org-xhtml-unload-function):
New. De-register from org-lparse on unload.

3 years agoRevert "new interactive function for removing code block results"
Eric Schulte [Mon, 1 Aug 2011 21:45:58 +0000]
Revert "new interactive function for removing code block results"

This reverts commit 72817926d72cd78efbb114169d61136b8b00c73e.

3 years agoRevert "fix compilation errors introduced by most recent changes"
Eric Schulte [Mon, 1 Aug 2011 21:31:24 +0000]
Revert "fix compilation errors introduced by most recent changes"

This reverts commit 9ff7f80f51a15c4a3dd2b654f0b08e9e290f5375.

3 years agoorg-footnote: prevent LaTeX export from catching footnotes in protect environment
Nicolas Goaziou [Sat, 30 Jul 2011 10:38:06 +0000]
org-footnote: prevent LaTeX export from catching footnotes in protect environment

* lisp/org-footnote.el (org-footnote-in-valid-context-p): check
  `org-protected' property before allowing to match a footnote.
(org-footnote-at-reference-p): remove an obsolete test. It's now done
in the previous function.

3 years agoRename `org-in-regexps-block-p' to `org-between-regexps-p'
Nicolas Goaziou [Sat, 30 Jul 2011 07:14:38 +0000]
Rename `org-in-regexps-block-p' to `org-between-regexps-p'

* lisp/org.el (org-between-regexps-p): previous name implied the
  function was related to blocks, which isn't mandatory.
(org-narrow-to-block, org-in-block-p, org-indent-line-function):
applied the rename.
* lisp/ob-exp.el (org-babel-in-example-or-verbatim): applied
  rename. Also removed a white space.

3 years agoChange behaviour of `org-in-regexps-block-p'
Nicolas Goaziou [Fri, 29 Jul 2011 22:14:14 +0000]
Change behaviour of `org-in-regexps-block-p'

* lisp/org.el (org-in-regexps-block-p): return an useful value when
  point is between START-RE and END-RE. No incomplete block is allowed
  anymore. Add another optional argument to bound the bottom part of
  the search.
(org-narrow-to-block, org-in-block-p): apply modifications.