Thomas Dye [Wed, 25 Apr 2012 18:11:06 +0000 (25 14:11 -0400)]
R-based solution to variable-row-length tables
Jambunathan K [Wed, 25 Apr 2012 19:48:58 +0000 (26 01:18 +0530)]
org-odt.el: Provide for non-availability of `org-version'
* lisp/org-odt.el (org-odt-update-meta-file): Check for
`org-version' is bound before accessing it.
Brian van den Broek [Tue, 24 Apr 2012 15:37:57 +0000 (24 17:37 +0200)]
Small grammar tweaks in export sections of org.texi
* org.texi The sections in the Exporting section of the manual left
out articles in the description of the org-export-as-* commands, among
other places. This patch adds them, adds a few missing prepositions,
and switches instances of "an HTML" to "a html" for internal
consistency.
TINYCHANGE
Bastien Guerry [Tue, 24 Apr 2012 16:09:39 +0000 (24 18:09 +0200)]
org-agenda.el: Implement `org-agenda-persistent-marks' for bulk actions.
* org-agenda.el (org-agenda-persistent-marks): New option to
keep marks after a bulk action. The option defaults to nil.
(org-agenda-bulk-action): Use the new option.
* org.texi (Agenda commands): Document persistent marks.
Bastien Guerry [Tue, 24 Apr 2012 09:54:16 +0000 (24 11:54 +0200)]
org-capture.el: Use %\n instead of %n.
* org-capture.el (org-capture-fill-template): Use %\n instead of %n as a
template element to be replaced with the nth prompted string.
(org-capture-templates): Update docstring.
* org.texi (Template expansion): Update doc to reflect change.
Using %n triggers errors when the template contains escaped strings,
which happens a lot with links.
Bastien Guerry [Mon, 23 Apr 2012 20:29:54 +0000 (23 22:29 +0200)]
Fix bug in `org-insert-link'.
Bastien Guerry [Mon, 23 Apr 2012 19:42:23 +0000 (23 21:42 +0200)]
Merge branch 'master' of orgmode.org:org-mode
Achim Gratz [Mon, 23 Apr 2012 19:20:58 +0000 (23 21:20 +0200)]
Introduce compatibility and convenience targets, local.mk template, add "helpall"
* Makefile: new target "helpall" to document all targets, while "help"
continues to show a brief subset.
* default.mk: add cutlines for sed to produce local.mk with.
* targets.mk: add target "local.mk" to produce an (empty) local.mk
configuration template when it isn't already present. Ignore any
error when making this target since sed might not be present on all
systems. Redefine target "update" to not include testing, similarly
add target "update2" to additionally install without test. Add
targets "up0" to stop after git pull and "up1" to stop after test,
while "up2" continues to do everything and then installs. Complete
.PHONY target list. Add "refcard" target for compatibility with old
make. Clean contrib in "cleanall", too.
Nicolas Goaziou [Mon, 23 Apr 2012 18:54:40 +0000 (23 20:54 +0200)]
Merge branch 'maint'
Nicolas Goaziou [Mon, 23 Apr 2012 18:53:51 +0000 (23 20:53 +0200)]
org-table: Fix typo in a docstring
* lisp/org-table.el (org-table-number-fraction): Fix typo.
Eric Schulte [Mon, 23 Apr 2012 15:39:50 +0000 (23 11:39 -0400)]
Merge branch 'origin-maint'
Bastien Guerry [Mon, 23 Apr 2012 17:24:04 +0000 (23 19:24 +0200)]
org.texi: Fix insertion of {} chars.
Thanks to Richard Stanton for spotting this.
Bastien Guerry [Mon, 23 Apr 2012 17:08:15 +0000 (23 19:08 +0200)]
org.el (org-goto): Fix docstring and document what C-u does.
* org.el (org-goto): Fix docstring and document what C-u does.
Thanks to John Hendy for pointing this.
Eric Schulte [Mon, 23 Apr 2012 15:39:28 +0000 (23 11:39 -0400)]
ensure newline precedes automatically-added returns for Python code blocks
* lisp/ob-python.el (org-babel-execute:python): Ensure newline
precedes automatically-added returns.
Toby S. Cubitt [Mon, 23 Apr 2012 15:20:19 +0000 (23 17:20 +0200)]
org-capture.el: Fixed bug in org-capture-templates %<n> expandos
* lisp/org-capture.el (org-capture-fill-template): Fixed regexp for
%<n> expandos to match any positive integer.
(org-capture-templates): Updated docstring accordingly.
* doc/org.texi: Updated documentation accordingly.
Daniel Dehennin [Mon, 23 Apr 2012 12:46:24 +0000 (23 14:46 +0200)]
org-exp.el: Handle new parameter :addlevel when including a file.
* org-exp.el (org-export-handle-include-files)
(org-get-file-contents): Handle new parameter :addlevel.
TINYCHANGE
Bastien Guerry [Mon, 23 Apr 2012 12:19:21 +0000 (23 14:19 +0200)]
org-publish.el: Use (case-fold-search t) when looking for #+INCLUDE:.
* org-publish.el (org-publish-cache-file-needs-publishing):
Use (case-fold-search t) when looking for #+INCLUDE:.
Christophe Rhodes [Mon, 23 Apr 2012 11:38:48 +0000 (23 13:38 +0200)]
org-latex.el: Support setting the :hfmt parameter from #+ATTR_LaTeX.
* org-latex.el (org-export-latex-tables): Support setting
the :hfmt parameter from #+ATTR_LaTeX.
TINYCHANGE
niels giesen [Fri, 28 Oct 2011 22:09:46 +0000 (28 22:09 +0000)]
org-table.el: Add defcustoms for LaTeX export of table rules :tstart, :hline and :tend
* org-table.el (orgtbl-to-generic): Add check for :skipheadrule.
When present, the :hline following the head will be skipped. This is
necessary to avoid doubling of horizontal rules in LaTeX longtable
environments and consequent width problems.
* org-latex.el (org-export-latex-tables-tstart)
(org-export-latex-tables-hline)
(org-export-latex-tables-tend): New options.
(org-export-latex-tables): Use the new options.
Bastien Guerry [Mon, 23 Apr 2012 10:59:32 +0000 (23 12:59 +0200)]
Fix missing } in org.texi.
Toby S. Cubitt [Sun, 29 Jan 2012 12:02:27 +0000 (29 13:02 +0100)]
Agenda: Add org-agenda-skip-timestamp-if-deadline-is-shown
* lisp/org-agenda.el (org-agenda-skip-timestamp-if-deadline-is-shown):
Skip timestamp items in agenda view if item is already shown as a
deadline item.
(org-agenda-skip-dealine-if-done): Pass deadline results to
org-agenda-get-timestamps.
(org-agenda-get-timestamps): Optionally take list of deadline results,
so that timestamp results can be skipped if already included in
deadline results.
Toby S. Cubitt [Sun, 29 Jan 2012 09:51:46 +0000 (29 10:51 +0100)]
Agenda: Add org-agenda-diary-sexp-prefix customization option
* lisp/org-agenda.el (org-agenda-diary-sexp-prefix): Regexp matching
deadline/scheduling information to be displayed in diary sexp agenda
items.
(org-agenda-get-sexps): Extract deadline/scheduling information from
diary sexp entries.
Toby Cubitt [Mon, 23 Apr 2012 03:47:59 +0000 (23 03:47 +0000)]
Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt
* org-capture.el (org-capture-fill-template): Expand %<num>
escape sequences into text entered for <num>'th %^{PROMPT} escape.
Bastien Guerry [Sat, 21 Apr 2012 13:36:04 +0000 (21 15:36 +0200)]
Match #+name/#+tblname/#+tblfm along with uppercase twins.
* org.el: Use (case-fold-search t).
(org-edit-special, org-ctrl-c-ctrl-c): Ditto.
* org-table.el:
(org-table-store-formulas, org-table-get-stored-formulas)
(org-table-fix-formulas, org-table-edit-formulas)
(org-old-auto-fill-inhibit-regexp, orgtbl-ctrl-c-ctrl-c)
(orgtbl-toggle-comment, org-table-get-remote-range): Ditto.
* org-footnote.el:
(org-footnote-goto-local-insertion-point): Ditto.
* org-exp.el: Ditto.
* org-colview.el:
(org-dblock-write:columnview, org-dblock-write:columnview):
Ditto.
* org-colview-xemacs.el:
(org-dblock-write:columnview): Ditto.
* org-clock.el (org-clocktable-write-default): Ditto.
* org-capture.el (org-capture-place-table-line): Ditto.
* ob.el (org-babel-data-names, org-babel-goto-named-src-block)
(org-babel-src-block-names)
(org-babel-where-is-src-block-result, org-babel-result-end)
(org-babel-where-is-src-block-head)
(org-babel-find-named-result, org-babel-result-names): Ditto.
Matt Lundin [Sun, 22 Apr 2012 16:23:19 +0000 (22 11:23 -0500)]
Following gnus links: Don't mark unrelated articles read
* lisp/org-gnus.el: (org-gnus-follow-link): Fix argument to
gnus-group-read-group so that following a link does not result in
unread article being selected.
The NO-ARTICLE argument to gnus-group-read-group should be t.
Otherwise org-gnus-follow-link selects the most unread article in a
group before selecting the linked article. This results in unread
articles being unread (which can cause one to miss important mail).
Bastien Guerry [Sun, 22 Apr 2012 22:09:35 +0000 (23 00:09 +0200)]
org-table.el: Escape some special characters when sending radio tables.
* org-table.el (orgtbl-send-table): Escape special characters.
Introduce a new parameter :no-escape to prevent escaping.
* org.texi (Radio tables): Document the :no-escape parameter.
Thanks to Alexander Willand for raising this issue.
Bastien Guerry [Sun, 22 Apr 2012 21:15:04 +0000 (22 23:15 +0200)]
org-agenda.el: Small fix. Use `org-called-interactively-p' instead of `called-interactively-p'.
Jambunathan K [Sun, 22 Apr 2012 18:19:18 +0000 (22 23:49 +0530)]
org-e-odt.el: Adjust search paths for schema and styles files
Jambunathan K [Sun, 22 Apr 2012 18:18:36 +0000 (22 23:48 +0530)]
org-odt.el (org-odt-schema-dir-list): Adjust search path
* lisp/org-odt.el (org-odt-schema-dir-list): OD Schema files
have been moved away from $(git-root)/contrib/odt/etc/schema/
to $(git-root)/etc/schema/.
Jambunathan K [Sun, 22 Apr 2012 17:35:26 +0000 (22 23:05 +0530)]
rm -rf contrib/odt
Nicolas Goaziou [Sun, 22 Apr 2012 16:44:45 +0000 (22 18:44 +0200)]
Merge branch 'maint'
Nicolas Goaziou [Sun, 22 Apr 2012 16:43:55 +0000 (22 18:43 +0200)]
org-mouse: Do not move point when clicking on a footnote reference
* lisp/org-mouse.el (org-mode-hook): Do not move point when clicking
on a footnote reference.
Nicolas Goaziou [Sun, 22 Apr 2012 15:00:32 +0000 (22 17:00 +0200)]
org-e-ascii: Correctly indent table.el tables
* contrib/lisp/org-e-ascii.el (org-e-ascii-table): Remove indentation
from table.el tables.
Carsten Dominik [Sun, 22 Apr 2012 14:35:10 +0000 (22 16:35 +0200)]
Merge branch 'beamer-inheritance'
Carsten Dominik [Sun, 22 Apr 2012 14:33:24 +0000 (22 16:33 +0200)]
Allow beamer export to inherit some properties
* lisp/org-beamer.el (org-beamer-inherited-properties): New option.
(org-beamer-after-initial-vars): Use new option to look for inherited
properties.
Jambunathan K [Sun, 22 Apr 2012 07:58:19 +0000 (22 13:28 +0530)]
org-e-html/org-e-odt: Use new table infrastructure
Jambunathan K [Sun, 22 Apr 2012 08:03:31 +0000 (22 13:33 +0530)]
org-export: Minor fixes
* contrib/lisp/org-export.el (org-export-creator-string):
Check for `org-version' being bound before using it.
(org-export-get-inbuffer-options): Use
`org-element-restriction'.
Jambunathan K [Sun, 22 Apr 2012 05:31:56 +0000 (22 11:01 +0530)]
Move org-e-* from EXPERIMENTAL/ to contrib/lisp/
Jambunathan K [Sun, 22 Apr 2012 05:09:19 +0000 (22 10:39 +0530)]
org-e-html/org-e-odt: Use new table infrastructure. First cut and slightly broken.
Nicolas Goaziou [Sat, 21 Apr 2012 13:18:28 +0000 (21 15:18 +0200)]
org-export: Fix small bug
* contrib/lisp/org-export.el (org-export-get-coderef-format): Handle
nil descriptions.
Nicolas Goaziou [Sat, 21 Apr 2012 13:15:47 +0000 (21 15:15 +0200)]
org-e-ascii: Fix small bug
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--build-caption): Fix
a "wrong number of arguments" bug.
Nicolas Goaziou [Sat, 21 Apr 2012 07:52:08 +0000 (21 09:52 +0200)]
org-e-ascii: Use new table structure
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii-table): Use new table
structure.
(org-e-ascii-table--column-width,
org-e-ascii-table--vertical-separators,
org-e-ascii-table--format-cell, org-e-ascii-table--build-hline):
Remove functions.
(org-e-ascii-table-cell, org-e-ascii-table-row,
org-e-ascii--table-cell-width): New functions.
Nicolas Goaziou [Thu, 12 Apr 2012 21:48:23 +0000 (12 23:48 +0200)]
org-e-latex: Use new table structure
* EXPERIMENTAL/org-e-latex.el (org-e-latex-table-scientific-notation):
New variable.
(org-e-latex-table): Use new table structure.
(org-e-latex-table--format-string, org-e-latex-table--align-string):
Apply changes to tables structure. Change signature too.
(org-e-latex-table-cell, org-e-latex-table-row): New functions.
Nicolas Goaziou [Wed, 11 Apr 2012 06:54:24 +0000 (11 08:54 +0200)]
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
Nicolas Goaziou [Wed, 11 Apr 2012 17:02:03 +0000 (11 19:02 +0200)]
org-element: Split tables into table-row elements and table-cell objects
* contrib/lisp/org-element.el (org-element-table-parser): Split tables
into table-row elements and table-cell objects.
(org-element-table-interpreter): Adapt interpreter to new code.
(org-element-table-row-parser, org-element-table-row-interpreter,
org-element-table-cell-parser, org-element-table-cell-interpreter,
org-element-table-cell-successor, org-element-table-row-successor,
org-element-restriction): New functions.
(org-element-headline-parser,
org-element-inlinetask-parser, org-element-item-parser,
org-element-verse-block-parser,
org-element-footnote-reference-parser,
org-element-collect-affiliated-keywords, org-element-parse-objects):
Use new function
(org-element-all-objects): Add new objects.
(org-element-target-parser): Small change to docstring.
(org-element-object-restrictions): Merge `org-element-string-restrictions'
into it.
(org-element-string-restrictions): Remove variable.
(org-element-parse-elements): Parse objects in non-recursive elements
with contents.
(org-element-normalize-string): Small refactoring.
(org-element-at-point): Handle table navigation.
* testing/lisp/test-org-element.el: Add tests.
Jambunathan K [Sun, 22 Apr 2012 05:24:50 +0000 (22 10:54 +0530)]
Move contrib/lisp/org-e-*.el to EXPERIMENTAL/
Bastien Guerry [Sun, 22 Apr 2012 13:27:21 +0000 (22 15:27 +0200)]
Let `org-toggle-sticky-agenda' output a message only when called interactively.
* org-agenda.el (org-toggle-sticky-agenda): Only shout a
message when called interactively.
(org-agenda-get-restriction-and-command): Call
`org-toggle-sticky-agenda' interactively.
Achim Gratz [Sun, 22 Apr 2012 06:22:31 +0000 (22 08:22 +0200)]
allow customization of the "doc" target to skip certain types of documentation
* doc/Makefile: read targets to make for "doc" from $(ORG_MAKE_DOC),
defaults to "info html pdf"; can be overridden by the user in
local.mk.
* targets.mk: read targets to make for "doc" and "docs" from
$(ORG_MAKE_DOC), defaults to "info html pdf"; can be overridden by
the user in local.mk.
* default.mk: document ORG_MAKE_DOC and provide a (commented) example
of how to have make only produce info documentation.
Achim Gratz [Sun, 22 Apr 2012 06:05:51 +0000 (22 08:05 +0200)]
fix bug introduced with aliasing target "doc" to "docs"
* targets.mk: $(SUBDIRS) must not be used as a dependency since "doc"
is both an existing directory and a phony target
Achim Gratz [Sat, 21 Apr 2012 19:03:16 +0000 (21 21:03 +0200)]
fix typo
* doc/Makefile: fix typo, it is org-version.inc, not org-version.texi
Bastien Guerry [Sun, 22 Apr 2012 07:21:42 +0000 (22 09:21 +0200)]
org-agenda.el: Fix bug in top-category filtering.
* org-agenda.el (org-agenda-top-category-filter): New variable
for storing the current top-category filter.
(org-agenda-redo): Apply a top-category filter, if any.
(org-agenda-filter-by-top-category)
(org-agenda-filter-top-category-apply): Set
`org-agenda-top-category-filter' to the right value.
Thanks to John Wiegley for reporting this.
Bastien Guerry [Sun, 22 Apr 2012 07:01:28 +0000 (22 09:01 +0200)]
When clocking, Don't modify `frame-title-format' if it is a string.
* org-clock.el (org-clock-out, org-clock-cancel)
(org-clock-in): Don't modify `frame-title-format' if it is a
string.
Thanks to Mike McLean for reporting this and to Matt Lundin for
pointing at the problem in the code.
Bastien Guerry [Sun, 22 Apr 2012 06:42:35 +0000 (22 08:42 +0200)]
org-latex.el: Fix bug when escaping special characters in a table.
* org-latex.el (org-export-latex-special-chars): Fix bug when
escaping special characters in a table.
Thanks to Alexander Willand for reporting this.
Bastien Guerry [Sun, 22 Apr 2012 05:54:32 +0000 (22 07:54 +0200)]
Use :inverse-video t for `org-date-selected'.
* org.el (org-read-date): Set cursor-type to nil in the calendar.
* org-faces.el (org-date-selected): Use inverse video. Don't explicitely
set bold to nil as it causes `customize-face' to show the weight property
and thus encourage the user to change it. Warn in the docstring that using
bold might cause problems when displaying the calendar.
Using inverse video for the selected date might be too much for many
people, but with cursor-type set to nil (thanks to Toby Cubitt for this)
and with a light-weight font, we need to really highlight the selected
date -- and a simple color change is not catchy enough IMO.
Bastien Guerry [Sat, 21 Apr 2012 22:44:27 +0000 (22 00:44 +0200)]
Merge branch 'maint'
Bastien Guerry [Sat, 21 Apr 2012 22:44:03 +0000 (22 00:44 +0200)]
org-faces.el (org-date-selected): Fix docstring.
* org-faces.el (org-date-selected): Fix docstring.
Thanks to Toby Cubitt for pointing this.
Martyn Jago [Sat, 21 Apr 2012 17:02:27 +0000 (21 18:02 +0100)]
Fix require path due to removal of EXPERIMENTAL
* contrib/lisp/org-export.el:
path relative to org-export.el has changed due
to relocation of org-e-publish.el (removal of
EXPERIMENTAL)
Bastien Guerry [Sat, 21 Apr 2012 15:44:47 +0000 (21 17:44 +0200)]
Deleate trailing whitespaces.
François Allisson [Sat, 21 Apr 2012 12:54:52 +0000 (21 14:54 +0200)]
Update of contrib/README
Achim Gratz [Sat, 21 Apr 2012 15:25:35 +0000 (21 17:25 +0200)]
provide an easier way to get the old behaviour of plain "make" back
* Makefile: move setup includes to top
* lisp/Makefile: reduce verbosity of org-version.el target, add a more
friendly @echo instead.
* targets.mk: provide compatibility target "oldorg" to do "compile
autoloads info" which is closest to the old behaviour.
Achim Gratz [Sat, 21 Apr 2012 14:55:57 +0000 (21 16:55 +0200)]
always make version files
* doc/Makefile: make org-version.inc .PHONY so that it is always re-made.
* lisp/Makefile: make org-version.el .PHONY so that it is always re-made.
Andrew Hyatt [Sat, 21 Apr 2012 15:27:43 +0000 (21 17:27 +0200)]
Allow archiving to a datetree.
* org-archive.el (org-archive-subtree): Allow archiving to a
datetree.
* org.el (org-archive-location): Ditto.
* org.texi (Moving subtrees): Document the ability to archive
to a datetree.
TINYCHANGE
Bastien Guerry [Sat, 21 Apr 2012 14:26:28 +0000 (21 16:26 +0200)]
Add etc/ORG-NEWS
This file will go in Emacs repository.
This version is a draft. Instead of sorting by versions,
we should try to detail new features, incompatible changes
and important bug fixes. Since 6.33x...
Bastien Guerry [Sat, 21 Apr 2012 14:23:03 +0000 (21 16:23 +0200)]
Delete BUGFIXING/org-log.el.
Bastien Guerry [Sat, 21 Apr 2012 14:22:31 +0000 (21 16:22 +0200)]
Move EXPERIMENTAL/* into contrib/lisp/ and change org-export.el accordingly.
Achim Gratz [Sat, 21 Apr 2012 13:10:30 +0000 (21 15:10 +0200)]
* add missing dependencies on org-version.inc
* doc/Makefile: org-version.inc must be a dependency of "pdf" and "html"
Bastien Guerry [Sat, 21 Apr 2012 14:05:22 +0000 (21 16:05 +0200)]
Merge branch 'maint' into master-merge-maint
Conflicts:
lisp/org-footnote.el
lisp/org.el
Bastien Guerry [Sat, 21 Apr 2012 14:03:20 +0000 (21 16:03 +0200)]
Remove * character in front of variable docstring.
* org-ctags.el (org-ctags-new-topic-template): Remove *
character in front of variable docstring.
* org-protocol.el (org-protocol-protocol-alist): Ditto.
See http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=
0fc749f9cc4a3c6f36715bb05e03469eee149b15
Bastien Guerry [Sat, 21 Apr 2012 13:46:02 +0000 (21 15:46 +0200)]
org-id.el (org-id-update-id-locations): New parameter to silent `org-id-find'.
* org-id.el (org-id-update-id-locations): New parameter to
silent `org-id-find'.
(org-id-find): Use the new parameter.
Thanks to Sébastien Vauban for raising a related issue.
Max Mikhanosha [Sat, 21 Apr 2012 12:40:58 +0000 (21 08:40 -0400)]
* lisp/org-agenda.el (org-agenda-quit): Fixed messed up parenthesis in previous commit
TINYCHANGE
Max Mikhanosha [Sat, 21 Apr 2012 12:31:37 +0000 (21 08:31 -0400)]
Fix q key in sticky agenda not honoring org-agenda-restore-windows-after-quit
* lisp/org-agenda.el (org-agenda-quit): copy the code for optionally
restoring window configuration after burying the sticky agenda
buffer.
Achim Gratz [Sat, 21 Apr 2012 09:37:12 +0000 (21 11:37 +0200)]
clean up documentation and provide "doc" as alternative target for "docs"
* Makefile: make documentation follow the implementation.
* targets.mk: add "doc" as alternative target for "docs" to adhere
more closely to standards
some fixes
Nicolas Goaziou [Wed, 18 Apr 2012 11:01:44 +0000 (18 13:01 +0200)]
org-list: Fix bugs relative to item indentation
* lisp/org-list.el (org-list-struct-indent): Follow
`org-list-demote-modify-bullet' specifications for ordered bullets.
(org-list-indent-item-generic, org-indent-item-tree,
org-outdent-item-tree): Fix bug when operating on a region.
(org-outdent-item, org-indent-item): Allow to operate on a region.
* lisp/org.el (org-shiftmetaleft, org-shiftmetaright): Allow to
operate on a region.
* testing/lisp/test-org-list.el: Add tests.
Nicolas Goaziou [Fri, 20 Apr 2012 09:12:44 +0000 (20 11:12 +0200)]
org-footnote: Fix positionning in HTML export without a footnote section
* lisp/org-footnote.el (org-footnote-normalize): Fix positionning in
HTML export without a footnote section.
Ippei FURUHASHI [Fri, 13 Apr 2012 03:28:25 +0000 (13 12:28 +0900)]
org.texi: Fix typos of function names in Agenda commands
* org.texi (Agenda commands): Fix two typos by giving corresponding
function names, according to `org-agenda-view-mode-dispatch'.
TINYCHANGE
Madan Ramakrishnan [Mon, 16 Apr 2012 07:29:49 +0000 (16 07:29 +0000)]
org-agenda.el: Fix `org-agenda-bulk-toggle'.
* org-agenda.el (org-agenda-bulk-mark): Truly make arg optional as
advertised by the function.
Problem here was that `org-agenda-bulk-toggle' calls
`org-agenda-bulk-mark' with no parameters; however, the (max arg 1)
call inside `org-agenda-bulk-mark' will fail with no parameter.
TINYCHANGE
Zachary Kanfer [Mon, 6 Feb 2012 21:22:16 +0000 (6 21:22 +0000)]
org.el (org-read-date-display): Fix bug when displaying the overlay.
* org.el (org-read-date-display): Fix bug when displaying the
overlay.
TINYCHANGE
Bastien Guerry [Fri, 20 Apr 2012 09:41:24 +0000 (20 11:41 +0200)]
org.el (org-mode): Don't use `buffer-face-mode' by default.
* org.el (org-mode): Don't use `buffer-face-mode' by default.
Still set `org-default' as the face for `buffer-face-mode-face' in
case the user turn `buffer-face-mode' on.
Bastien Guerry [Fri, 20 Apr 2012 10:38:07 +0000 (20 12:38 +0200)]
org.el: New face `org-date-selected' for the selected calendar day.
* org-faces.el (org-date-selected): New face.
* org.el (org-date-ovl): Use `org-date-selected'.
This fixes a problem with bold faces enlarging the calendar window
unduely. See http://patchwork.newartisans.com/patch/1286/
Jambunathan K [Fri, 20 Apr 2012 16:53:43 +0000 (20 22:23 +0530)]
org-odt.el: Fix handling of internal links
* lisp/org-odt.el (org-odt-format-org-link): Pay no heed to
whether the internal links destined for headlines provide a
description or not. In fact, the `org-store-link' and
`org-insert-link' create internal links which do have a
description.
This fixes an issue where internal links terminating at an
invisible target (that is bound to a headline) was badly
rendered. Refer following thread:
http://lists.gnu.org/archive/html/emacs-orgmode/2012-04/msg00757.html
Jambunathan K [Fri, 20 Apr 2012 16:45:42 +0000 (20 22:15 +0530)]
* etc/styles/README: Update Copyright year
Jambunathan K [Fri, 20 Apr 2012 16:43:34 +0000 (20 22:13 +0530)]
OrgOdtStyles.xml: Fix indentation issues with description lists
* etc/styles/OrgOdtStyles.xml (OrgDescriptionList): Modify
style. With this change, in a description list, if the
description paragraph spawns multiple lines then it will
correctly indented.
Bastien Guerry [Fri, 20 Apr 2012 11:20:42 +0000 (20 13:20 +0200)]
org-clock.el (org-program-exists): Fix docstring.
* org-clock.el (org-program-exists): Fix docstring.
Thanks to Sébastien Vauban for reporting this.
Bastien Guerry [Sat, 21 Apr 2012 08:02:28 +0000 (21 10:02 +0200)]
Merge branch 'local-Makefile' into test-makefile-merge
Toby S. Cubitt [Sun, 29 Jan 2012 15:52:08 +0000 (29 16:52 +0100)]
Capture: Allow more control over inserted whitespace in capture templates
* lisp/org-capture.el (org-capture-place-entry): Place captured entry
immediately after last subheading of target, instead of just before
next heading at same level as target.
* lisp/org-capture.el (org-capture-templates): Document new capture
template properties.
* lisp/org-capture.el (org-capture-place-entry,
org-capture-empty-lines-before): Make new :empty-lines-before property
override :empty-lines when inserting empty lines before captured
captured entry.
* lisp/org-capture.el (org-capture-finalize,
org-capture-empty-lines-after): Make new :empty-lines-after property
override :empty-lines when inserting empty lines after captured
captured entry.
Bastien Guerry [Fri, 20 Apr 2012 22:59:14 +0000 (21 00:59 +0200)]
Small reformatting of testing/README.
Brian van den Broek [Fri, 20 Apr 2012 15:43:18 +0000 (20 17:43 +0200)]
Change example timestamps to not occur in headlines.
* org.texi: Alter several examples of headings with timestamps
in them to include the timestamps in the body instead of the heading.
* orgguide.texi: Alter the same examples in the same way as for
org.texi.
The Org-mode manual explicitly discourages the inclusion of timestamps
in headlines, yet examples do just that. These changes make the manual
consistent with its own advice.
TINYCHANGE
Bastien Guerry [Fri, 20 Apr 2012 18:03:45 +0000 (20 20:03 +0200)]
Use (derived-mode-p 'org-mode) instead of (eq major-mode 'org-mode).
* org.el (org-show-hierarchy-above, org-cycle)
(org-global-cycle, org-files-list, org-store-link)
(org-link-search, org-open-file, org-display-outline-path)
(org-refile-get-location, org-update-all-dblocks)
(org-change-tag-in-region, org-entry-properties)
(org-save-all-org-buffers, org-revert-all-org-buffers)
(org-buffer-list, org-cdlatex-mode)
(org-install-agenda-files-menu, org-end-of-subtree)
(org-speedbar-set-agenda-restriction): Use (derived-mode-p
'org-mode) instead of (eq major-mode 'org-mode).
* org-timer.el (org-timer-set-timer): Ditto.
* org-table.el (orgtbl-mode, org-table-align, orgtbl-mode): Ditto.
* org-src.el (org-edit-src-exit, org-edit-src-code)
(org-edit-fixed-width-region, org-edit-src-exit): Ditto.
* org-remember.el (org-remember-handler): Ditto.
* org-mouse.el (dnd-open-file, org-mouse-insert-item): Ditto.
* org-macs.el (org-get-limited-outline-regexp): Ditto.
* org-lparse.el (org-replace-region-by): Ditto.
* org-latex.el (org-latex-to-pdf-process)
(org-replace-region-by-latex): Ditto.
* org-indent.el (org-indent-indent-buffer): Ditto.
* org-id.el (org-id-store-link, org-id-update-id-locations)
(org-id-store-link): Ditto.
* org-html.el (org-export-html-preprocess)
(org-replace-region-by-html): Ditto.
* org-footnote.el (org-footnote-normalize)
(org-footnote-goto-definition)
(org-footnote-create-definition, org-footnote-normalize): Ditto.
* org-docbook.el (org-replace-region-by-docbook): Ditto.
* org-ctags.el (find-tag): Ditto.
* org-colview.el (org-columns-redo)
(org-columns-display-here, org-columns-edit-value)
(org-columns-redo): Ditto.
* org-colview-xemacs.el (org-columns-redo)
(org-columns-display-here, org-columns-edit-value)
(org-columns-redo): Ditto.
* org-capture.el (org-capture-insert-template-here)
(org-capture, org-capture-finalize)
(org-capture-set-target-location)
(org-capture-insert-template-here): Ditto.
* org-ascii.el (org-replace-region-by-ascii): Ditto.
* org-archive.el (org-archive-subtree): Ditto.
* org-agenda.el (org-agenda)
(org-agenda-get-restriction-and-command)
(org-agenda-get-some-entry-text, org-search-view)
(org-tags-view, org-agenda-get-day-entries)
(org-agenda-format-item, org-agenda-goto, org-agenda-kill)
(org-agenda-archive-with, org-agenda-switch-to): Ditto.
Dave Abrahams [Fri, 20 Apr 2012 17:41:02 +0000 (20 19:41 +0200)]
org.el: Make links more readable when selecting them for insertion.
* org.el (org-link-prettify): New function to prettify links
while displaying them with `org-insert-link'.
(org-insert-link): Use the new function.
TINYCHANGE
Feng Shu [Fri, 20 Apr 2012 17:21:43 +0000 (20 19:21 +0200)]
Allow to use imagemagick for previewing LaTeX fragements.
* org.el (org-latex-create-formula-image-program): New option
to use either dvipng or imagemagick to convert and preview
LaTeX fragments.
(org-preview-latex-fragment, org-format-latex): Handle the new
option.
(org-create-formula-image-with-dvipng): Rename from
`org-create-formula-image'.
(org-create-formula-image-with-imagemagick): New defun to
handle LaTeX preview with imagemagick.
(org-latex-color, org-latex-color-format): New defuns to
handle color conversions.
* org-latex.el (org-latex-to-pdf-process, org-export-as-pdf):
Allow to use imagemagick to convert LaTeX fragments.
* org-html.el (org-export-html-preprocess): Ditto.
* org-exp.el (org-export-with-LaTeX-fragments): Ditto.
* org.texi (@LaTeX{} fragments): Document imagemagick as an
alternative to dvipng.
Bastien Guerry [Fri, 20 Apr 2012 14:55:48 +0000 (20 16:55 +0200)]
Support hourly repeat cookies.
* org.el (org-repeat-re)
(org-clone-subtree-with-time-shift, org-auto-repeat-maybe)
(org-deadline, org-schedule, org-matcher-time)
(org-time-stamp, org-read-date, org-read-date-get-relative)
(org-display-custom-time, org-get-wdays)
(org-time-string-to-absolute, org-closest-date)
(org-timestamp-change): Allow to set hourly repeat cookie.
Send an error when an hourly repeat cookie is set and no hour
is specified in the timestamp.
* org.texi (Repeated tasks): Document repeat cookies for
years, months, weeks, days and hours.
* org-agenda.el (org-agenda-get-timestamps): Match hourly
repeat cookies.
* org-icalendar.el (org-print-icalendar-entries): Handle
hourly repeat cookies.
Thanks a lot to Takafumi Arakaki for this idea and for a preliminary
version of this patch.
Achim Gratz [Mon, 16 Apr 2012 17:35:55 +0000 (16 19:35 +0200)]
doc/Makefile: rename/add auto-generated files to be compatible with Emacs
* doc/Makefile: rename auto-generated file "git-describe.texi" to
"org-version.inc" to allow for easier inclusion into Emacs.
* doc/org.texi: include "org-version.inc" instead of
"git-describe.texi".
* lisp/Makefile: new auto-generated file org-version.el with autoload
cookies. The version strings will be pulled during autoload
extraction into org-install.el (standalone org-mode) or
../loaddefs.el (Emacs).
Achim Gratz [Sun, 1 Apr 2012 07:48:18 +0000 (1 09:48 +0200)]
move testing configuration into user-defined part, add hints
* default.mk: move testing configuration $(BTEST_*) into
user-defined part, add hints on what should go there. Some
cosmetic fixes.
Achim Gratz [Wed, 21 Mar 2012 08:25:46 +0000 (21 09:25 +0100)]
need to require find-func instead of just declare-function
* lisp/org.el: require find-func and remove declare-function for
find-library-name, otherwise autoloaded org-version doesn't
show all info correctly.
Achim Gratz [Sun, 4 Mar 2012 16:49:28 +0000 (4 17:49 +0100)]
Modify target 'update' to run tests before installation
* targets.mk: replace 'all' with 'test' in 'update'
Achim Gratz [Sun, 4 Mar 2012 11:07:44 +0000 (4 12:07 +0100)]
initialize Babel languages and provide possibility to load extra packages for testing
* default.mk: Run emacs without a site-file. BTEST_EXTRA
redefined to hold names of extra packages to require for
testing. BTEST_PRE and BTEST_POST allow additional
options to be injected around setup of standard load path
for testing. BTEST_OB_LANGUAGES holds the names of Babel
languages to required. R is not added to the list since
it requires ess to be installed and configured. All
variables can be overridden in local.mk as before.
Achim Gratz [Mon, 27 Feb 2012 20:54:19 +0000 (27 21:54 +0100)]
make sure org-install.el does not get compiled
lisp/Makefile: add local variable section to org-install.el so
that it is never compiled
Achim Gratz [Thu, 16 Feb 2012 20:24:51 +0000 (16 21:24 +0100)]
add cleaning of temporary test files (with option to keep them)
default.mk: add $(testdir) definition based on $(TMPDIR), which
defaults to "/tmp" if not already defined
targets.mk(check): call test suite with TMPDIR=$(testdir) and remove
direactory after successful run of testsuite. Do not remove
temporary test files if $(TEST_NO_AUTOCLEAN) is set to a non-empty
value.
targets.mk(cleandirs): refactor the first part of what cleanall
had been doing.
targets.mk(cleanall): run cleantest and cleandirs, then remove
backup files.
targets.mk(cleanlisp): remove backup files.
targets.mk(cleandoc): remove backup files.
targets.mk(cleanall): run cleantest and cleandirs, then remove
backup files.
targets.mk(cleantest): removal of temporary test files.
Achim Gratz [Tue, 14 Feb 2012 18:36:59 +0000 (14 19:36 +0100)]
introduce "check" as alias for "test" to comply with GNU Makefile conventions
Makefile: change test to check in help text
targets.mk: add check as alias for test
Achim Gratz [Tue, 31 Jan 2012 19:44:37 +0000 (31 20:44 +0100)]
introduce $(SUDO) to make install with administrative privileges customizable
defaults.mk: define SUDO to map to sudo, add comment to define
blank if administrative privileges are not needed (already root on
Linux or Administrator on Windows)
targets.mk: use newly defined $(SUDO) uinstead of plain sudo,
replaces some braces with parentheses