org-mode.git
3 years agoSet a default custom command, agenda plus TODO items
Carsten Dominik [Fri, 19 Aug 2011 10:22:37 +0000]
Set a default custom command, agenda plus TODO items

* lisp/org-agenda.el (org-agenda-custom-commands): Set a default value
for this command.

3 years agoClean up the misleading name INCLUDE-ALL in some agenda functions
Carsten Dominik [Fri, 19 Aug 2011 10:13:36 +0000]
Clean up the misleading name INCLUDE-ALL in some agenda functions

* lisp/org-agenda.el (org-agenda-include-all-todo): Declare this
option as no longer working.
(org-timeline): Rename the include-all argument to dotodo.
(org-arg-loc): Renamed from` org-include-all-loc'.
(org-agenda-list): Rename the INCLUDE-ALL argument to ARG, because its
function has changed.

3 years agoorg.el (org-fixup-indentation): Fix various small bugs.
Bastien Guerry [Fri, 19 Aug 2011 07:41:15 +0000]
org.el (org-fixup-indentation): Fix various small bugs.

* org.el (org-fixup-indentation): Fix various small bugs.

Thanks to Sébastien Vauban for reporting them.

3 years agoorg-indent: changes to the internals of initialization
Nicolas Goaziou [Thu, 18 Aug 2011 21:13:00 +0000]
org-indent: changes to the internals of initialization

* lisp/org-indent.el (org-indent-agent-timer,
  org-indent-agentized-buffers, org-indent-agent-resume-timer,
  org-indent-agent-process-duration, org-indent-agent-resume-delay):
  new variables.
(org-indent-initial-marker): more accurate doc-string.
(org-indent-initial-timer, org-indent-initial-resume-timer,
org-indent-initial-process-duration, org-indent-initial-resume-delay,
org-indent-initial-lock): removed variables.
(org-indent-mode): set up an agent to watch current buffer, or add it
to the list of already watched buffers.
(org-indent-initialize-agent): new function.
(org-indent-initialize-buffer): now requires a mandatory buffer
argument.
(org-indent-add-properties): reflect changes to variables. The resume
timer is now global.

This change was introduced because a buffer killed while initializing
couldn't cancel its own initialization timer. Now, a global agent
watches for buffers, starting or resuming their initialization when
appropriate. It can cancel its own timer, thus killing itself, when no
more buffers are being watched.

3 years agoAdd support for fontification of odt src blocks using htmlfontify
Jambunathan K [Thu, 18 Aug 2011 14:56:14 +0000]
Add support for fontification of odt src blocks using htmlfontify

* contrib/lisp/org-lparse.el (org-do-lparse): Bind
hfy-user-sheet-assoc.
* contrib/lisp/org-odt.el
(org-export-odt-default-org-styles-alist): Rename
OrgSourceBlock to OrgSrcBlock for consistency.
(org-odt-format-source-code-or-example): Modified. Call either
org-odt-format-source-code-or-example-plain or
org-odt-format-source-code-or-example-colored.
(org-odt-format-source-code-or-example-plain): New. Identical
to the earlier org-odt-format-source-code-or-example.
(org-odt-format-source-code-or-example-colored): New
defun. Use htmlfontify for emitting coloring of source blocks.
(org-export-odt-use-htmlfontify)
(org-export-odt-create-custom-styles-for-srcblocks): New
customizable variables
(org-src-block-paragraph-format): New variable.
(org-odt-hfy-face-to-css)
(org-odt-insert-custom-styles-for-srcblocks): New defuns.
(org-odt-save-as-outfile): Modified. Use
org-odt-insert-custom-styles-for-srcblocks.

3 years agoorg-odt: Rename style `OrgSourceBlock' to `OrgFixedWidthBlock'
Jambunathan K [Tue, 16 Aug 2011 19:44:04 +0000]
org-odt: Rename style `OrgSourceBlock' to `OrgFixedWidthBlock'

* contrib/odt/styles/OrgOdtStyles.xml: Rename the style
`OrgSourceBlock' to `OrgFixedWidthBlock'.
* contrib/lisp/org-odt.el
(org-export-odt-default-org-styles-alist): Map fixedwidth
paragraphs to the custom style `OrgFixedWidthBlock'.
(org-odt-format-line, org-odt-format-source-code-or-example):
Style both fixedwidth paragraphs and src/example blocks in
fixedwidth format.

3 years agoorg-odt.el: Minor refactoring of src and example block formatters
Jambunathan K [Tue, 16 Aug 2011 19:06:57 +0000]
org-odt.el: Minor refactoring of src and example block formatters

* contrib/lisp/org-odt.el (org-odt-format-source-code-or-example-line)
(org-odt-format-example): Removed.
(org-odt-format-source-code-or-example, org-odt-format-line);
Changes related to above removal.

3 years agoIntroduce a new customizable variable org-export-odt-prettify-xml
Jambunathan K [Tue, 16 Aug 2011 18:29:52 +0000]
Introduce a new customizable variable org-export-odt-prettify-xml

* contrib/lisp/org-odt.el (org-export-odt-prettify-xml): New
customizable variable.
(org-odt-save-as-outfile): Honor the setting of the above
variable.

There have not been much reported issues with the odt output.  So turn
off prettifying of xml buffers.  But retain the option to turn it on
if required.

3 years agoMinor cleanups in org-odt
Jambunathan K [Tue, 16 Aug 2011 18:19:18 +0000]
Minor cleanups in org-odt

* contrib/lisp/org-odt.el (org-odt-format-spaces): Minor
change. Always emit a leading space.
(org-odt-fill-tabs-and-spaces): Simplify.
(org-odt-finalize-outfile): Remove a stray message.

3 years agoorg-footnote: normalize function cleanup
Nicolas Goaziou [Thu, 18 Aug 2011 16:58:48 +0000]
org-footnote: normalize function cleanup

* lisp/org-footnote.el (org-footnote-normalize): refactor, and fix
  some blank lines deletion.

3 years agoorg-indent: forgot to make a variable local
Nicolas Goaziou [Thu, 18 Aug 2011 17:06:33 +0000]
org-indent: forgot to make a variable local

* lisp/org-indent.el (org-indent-mode):
  `org-indent-initial-resume-timer ' needs to be local.

3 years agoFix some double-space after ponctuation mark in docstrings.
Bastien Guerry [Thu, 18 Aug 2011 16:38:05 +0000]
Fix some double-space after ponctuation mark in docstrings.

3 years agoorg.el (org-fixup-indentation): Correctly indent meta lines.
Bastien Guerry [Thu, 18 Aug 2011 16:18:04 +0000]
org.el (org-fixup-indentation): Correctly indent meta lines.

* org.el (org-fixup-indentation): Correctly indent meta lines.

Thanks to Sébastien Vauban for reporting this.

3 years agoorg-indent: silence byte-compiler
Nicolas Goaziou [Thu, 18 Aug 2011 13:44:46 +0000]
org-indent: silence byte-compiler

3 years agoorg-indent: add virtual indentation for blank lines
Nicolas Goaziou [Thu, 28 Jul 2011 18:47:45 +0000]
org-indent: add virtual indentation for blank lines

* lisp/org-indent.el (org-indent-set-line-properties): add text
  properties down to the beginning of the next line.
(org-indent-add-properties): when last position to add properties to
is at the beginning of a line, all that line will have properties.

3 years agoorg-indent: add breaks during asynchronous indentation
Nicolas Goaziou [Wed, 27 Jul 2011 21:18:50 +0000]
org-indent: add breaks during asynchronous indentation

* lisp/org-indent.el (org-indent-initial-resume-timer): new variable.
(org-indent-initialize-buffer): also resume after a small break.
(org-indent-add-properties): when in asynchronous mode, proceed for
2 seconds, then take a break.

3 years agoorg-indent: externalize a function for better code readability
Nicolas Goaziou [Wed, 27 Jul 2011 13:48:16 +0000]
org-indent: externalize a function for better code readability

* lisp/org-indent.el (org-indent-set-line-properties): new function.
(org-indent-add-properties): externalize worker function.

3 years agoorg-indent: `org-indent-indent-buffer' acts on accessible part of buffer.
Nicolas Goaziou [Mon, 25 Jul 2011 10:43:38 +0000]
org-indent: `org-indent-indent-buffer' acts on accessible part of buffer.

* lisp/org-indent.el (org-indent-indent-buffer): take into account narrowing.

3 years agoorg-indent: corrections to comments and doc-strings
Nicolas Goaziou [Sun, 24 Jul 2011 13:33:48 +0000]
org-indent: corrections to comments and doc-strings

3 years agoorg-indent: refactoring
Nicolas Goaziou [Sun, 24 Jul 2011 08:27:23 +0000]
org-indent: refactoring

3 years agoorg-indent: handle more modifications of headlines
Nicolas Goaziou [Sat, 23 Jul 2011 12:25:27 +0000]
org-indent: handle more modifications of headlines

* lisp/org-indent.el (org-indent-modified-headline-flag): renamed from
  `org-indent-deleted-headline-flag'
(org-indent-notify-modified-headline): renamed from
`org-indent-notify-deleted-headline'. Handle situations when the stars
of an headline are modified.
(org-indent-refresh-maybe): remove case now handled by previous function.
(org-indent-mode): apply renames.

3 years agoCleaner handling of inline tasks under org-indent-mode
Nicolas Goaziou [Thu, 21 Jul 2011 17:02:35 +0000]
Cleaner handling of inline tasks under org-indent-mode

* lisp/org-indent.el (org-indent-inlinetask-first-star): new variable.
(org-indent-add-properties): set the first star of inline-tasks'
virtual indentation in `org-warning' face.
* lisp/org-inlinetask.el (org-inlinetask-insert-task): create a new
  inline-task slightly differently, so virtual indentation can be
  applied normally.

3 years agoorg-indent: implement asynchronous initialization
Nicolas Goaziou [Thu, 21 Jul 2011 14:20:26 +0000]
org-indent: implement asynchronous initialization

* lisp/org-indent.el (org-indent-initial-marker,
  org-indent-initial-timer, org-indent-initial-lock): new variables.
(org-indent-mode): at initialization, start an idle timer to indent
the whole buffer. When the user is asking for control, interrupt the
process, and resume at the same point when idle again.
(org-indent-initialize-buffer): new function.
(org-indent-add-properties): throw an interrupt when indentation of
buffer is stopped during initialization.

3 years agoorg-indent: modify messages sent
Nicolas Goaziou [Thu, 21 Jul 2011 14:14:58 +0000]
org-indent: modify messages sent

* lisp/org-indent.el (org-indent-indent-buffer): send more appropriate
  messages .

3 years agoorg-indent: remove unused variable org-indent-outline-re
Nicolas Goaziou [Thu, 21 Jul 2011 08:13:36 +0000]
org-indent: remove unused variable org-indent-outline-re

* lisp/org-indent.el (org-indent-notify-deleted-headline,
  org-indent-refresh-maybe): replace `org-indent-outline-re' with
  `org-outline-regexp-bol'.

3 years agoorg-indent: pay attention to org-indent-max and org-indent-max-levels
Nicolas Goaziou [Sat, 19 Mar 2011 19:01:49 +0000]
org-indent: pay attention to org-indent-max and org-indent-max-levels

* lisp/org-indent.el (org-indent-max-levels): modify default value and
  add comment.
  (org-indent-add-properties): pay attention to org-indent-max and
  org-indent-max-levels values.
  (org-indent-refresh-maybe): refactor code to avoid an unnecessary
  save excursion.

3 years agoorg-table: remove a now useless hack
Nicolas Goaziou [Thu, 17 Mar 2011 11:49:53 +0000]
org-table: remove a now useless hack

* lisp/org-table.el (org-table-align): remove now useless hack.

3 years agoorg-indent: remove refresh timer
Nicolas Goaziou [Sun, 27 Feb 2011 14:52:36 +0000]
org-indent: remove refresh timer

* lisp/org-indent.el (org-indent-fix-section-after-idle-time): remove
  variable.
  (org-indent-initialize): remove timer.
  (org-indent-add-properties): refactor code.
  (org-indent-refresh-subtree, org-indent-refresh-section,
  org-indent-refresh-buffer,org-indent-set-initial-properties): remove
  functions.
  (org-indent-deleted-headline): new variable.
  (org-indent-notify-deleted-headline,org-indent-refresh-maybe): new
  functions.
  (org-indent-mode): insert new functions into a hook.

3 years agoImprove compatibility between org-indent-mode and visual-line-mode
Nicolas Goaziou [Sun, 20 Feb 2011 12:44:00 +0000]
Improve compatibility between org-indent-mode and visual-line-mode

* lisp/org-indent.el (org-indent-mode): completely refresh buffer
  before starting org-indent-mode. Also set idle timer to refresh only
  visible portion of buffer, and refresh the subtree instead of
  section when promoting or demoting it.
  (org-indent-add-properties): rewrite function to proceed line by
  line, as required by `wrap-prefix' specificity.
  (org-indent-refresh-section,org-indent-refresh-subtree): refactor.
  (org-indent-refresh-view): new function.
  (org-indent-refresh-to, org-indent-refresh-section): removed
  functions.
* lisp/org.el (org-unfontify-region): do not remove prefix properties
  when unfontifying a region.

3 years agoorg-colview.el: Correctly remove leading stars.
Bastien Guerry [Thu, 18 Aug 2011 07:14:44 +0000]
org-colview.el: Correctly remove leading stars.

* org-colview.el (org-columns-cleanup-item): Correctly remove
leading stars in items displayed in the agenda column view.

Thanks to Christian Schmidt for spotting this.

3 years agoorg-clock.el: remove `org-clocktable-sort-clock-data'.
Bastien Guerry [Thu, 18 Aug 2011 07:00:20 +0000]
org-clock.el: remove `org-clocktable-sort-clock-data'.

This function by Max Mikhanosha was added accidently.  We are
waiting for the FSF to process Max copyright assignement to get
this function in org-mode.

Thanks to Achim Gratz for spotting at this.

3 years agoorg-colview: Clean up items in agenda mode too.
Bastien Guerry [Wed, 17 Aug 2011 14:56:27 +0000]
org-colview: Clean up items in agenda mode too.

* org-colview.el (org-columns-display-here): Clean up items in
org-agenda-mode too.
(org-columns-cleanup-item): Take a new argument CPHR to allow
passing a complex heading regexp.  Rewrite to cleanup ITEM
correctly in `org-agenda-mode'.

Thanks to Christian Schmidt for pointing at this problem.

3 years agoMove three functions and add appropriate require/declarations.
Bastien Guerry [Wed, 17 Aug 2011 14:08:02 +0000]
Move three functions and add appropriate require/declarations.

* org-clock.el (org-duration-string-to-minutes)
(org-minutes-to-hh:mm-string, org-hh:mm-string-to-minutes):
Move from org.el.

3 years agoorg-footnote.el: silence byte-compiler.
Bastien Guerry [Wed, 17 Aug 2011 14:05:11 +0000]
org-footnote.el: silence byte-compiler.

3 years agoUse correct name for the function `yas/next-field'.
Bastien Guerry [Wed, 17 Aug 2011 13:22:23 +0000]
Use correct name for the function `yas/next-field'.

org.texi (Conflicts): Use correct name for the function
`yas/next-field'.

Thanks to Bianca Lutz for pointing this.

3 years agoorg.el: Minor update of docstrings.
Bastien Guerry [Wed, 17 Aug 2011 13:15:35 +0000]
org.el: Minor update of docstrings.

(org-open-at-mouse): Point to the docstring of `org-open-file'
for more details.
(org-open-file): Mention `org-link-frame-setup' in the
docstring.

Thanks to Reiner Steib for pointing at this.

3 years agoorg.texi: Add a note about the `org-link-frame-setup' option.
Bastien Guerry [Wed, 17 Aug 2011 13:10:07 +0000]
org.texi: Add a note about the `org-link-frame-setup' option.

* org.texi (Handling links): Add a note about the
`org-link-frame-setup' option.

Thanks to Reiner Steib for pointing at this.

3 years agoorg.el: Allow to customize the way links are displayed.
Bastien Guerry [Wed, 17 Aug 2011 13:01:54 +0000]
org.el: Allow to customize the way links are displayed.

(org-link-display-descriptive): New option to customize the
default display of links, either literal or descriptive.
(org-toggle-link-display): New command to toggle link display.
(org-org-menu): Use the new toggle function for links.

Thanks to Reiner Steib for suggesting this.

3 years agoRemove the "Version" header in Org libraries (leave it in org.el).
Bastien Guerry [Wed, 17 Aug 2011 12:42:34 +0000]
Remove the "Version" header in Org libraries (leave it in org.el).

Also remove blank lines before the ";;; org*el ends here" declarations.

Having a "Version" header forced us to update every file when releasing a
new version of Org; it also forced us to update every file when merging Org
with Emacs trunk, thus cluttering the diffs between the previously merged
version and the new one with useless information.

Glenn Morris suggested this in emacs-devel:
http://lists.gnu.org/archive/html/emacs-devel/2011-08/msg00322.html

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