Commit Graph

13157 Commits

Author SHA1 Message Date
Christopher Schmidt de5ff236d4 org.el: Bind org-shift* in orgstruct-mode.
* org.el (orgstruct-setup): Bind org-shift*.
2013-02-25 17:12:21 +01:00
Jonathan Leech-Pepin b632d6ff6e ox-texinfo.el: Use :OPTIONAL_TITLE: instead of backend-specific
property

* lisp/ox-texinfo.el (org-texinfo--get-node)
  and (org-texinfo--generate-menu-items): Use :OPTIONAL_TITLE:.
  (org-export-define-backend): Remove :TEXINFO_MENU_TITLE from
  options-alist
2013-02-25 10:59:03 -05:00
Jonathan Leech-Pepin c94cae1ee6 ox-texinfo.el: Fix issue with long headlines and node listings
* lisp/ox-texinfo.el (org-texinfo-node-description-column): New custom
  variable.
  (org-texinfo--format-menu): Use new variable to set column for
  description in node listings.  If the headline extends past this
  column, add the description after the headline.

The default column is 32 as suggested by Thomas S. Dye,
http://article.gmane.org/gmane.emacs.orgmode/66664
2013-02-25 10:44:18 -05:00
Jonathan Leech-Pepin 2a752e4ce1 ox-texinfo.el: Add support for # in info links
* lisp/ox-texinfo.el (org-texinfo-link): Fixed info link exporting to
  recognize # as well as : when finding the info node.

Issue reported by Thomas S. Dye in
http://article.gmane.org/gmane.emacs.orgmode/66655
2013-02-25 10:28:04 -05:00
Jonathan Leech-Pepin d299ae53dd ox-texinfo.el: Add support for @appendix headlines
* lisp/ox-texinfo.el: Included support for appendices.

To include appendices, use a non-nil value for the :APPENDIX: property
of a headline.  This headline will be exported at the appropriate
level as an appendix.
2013-02-25 10:14:53 -05:00
Jonathan Leech-Pepin 696ca23cfb ox-texinfo: Upcase property to comply to changes
* lisp/ox-texinfo.el (org-texinfo-headline): Fix :INDEX property to
  match changes.  Must be uppercase.
2013-02-25 10:04:37 -05:00
Nicolas Goaziou 3049f72f34 ox-html: Attributes specified to a paragraph only apply to first link within
* lisp/ox-html.el (org-html-link, org-html-link--inline-image):
  Attributes specified to a paragraph only apply to first link within.
2013-02-25 14:28:55 +01:00
Rick Frankel 35e914c1d7 Make html exporter respect css-url configuration variable
* lisp/ox-html.el:
  (org-export-define-backend): Add css url option.
  (org-export-htmlized-org-css-url):  Modify docstring and options.
  (org-html--build-style): Include css-url if specified.
2013-02-25 13:00:16 +01:00
Bastien Guerry 4d24f1d383 org-macs.el (org-unmodified): Update comment
* org-macs.el (org-unmodified): Update comment.
2013-02-25 11:47:01 +01:00
Bastien Guerry 372a3ecda8 New compatibility macro `org-with-silent-modifications'
* org-macs.el: Don't define `with-silent-modifications' for
emacsen that don't have it.

* org-compat.el (org-with-silent-modifications): New
compatibility macro.

* org.el (org-refresh-category-properties)
(org-refresh-properties, org-entry-blocked-p)
(org-agenda-prepare-buffers):
* org-indent.el (org-indent-remove-properties)
(org-indent-add-properties):
* org-colview.el (org-columns-display-here)
(org-columns-remove-overlays, org-columns-quit)
(org-columns-edit-value, org-columns-compute-all)
(org-columns-compute, org-agenda-colview-compute):
* org-clock.el (org-clock-sum): Use the compatibility macro
`org-with-silent-modifications' instead of
`with-silent-modifications'.

Thanks to Achim for a preliminary patch.
2013-02-25 11:44:27 +01:00
Bastien Guerry 988240d5fd Merge branch 'master' of orgmode.org:org-mode 2013-02-25 11:21:25 +01:00
Nicolas Goaziou 87c553d268 ox-latex: Fix 309ccd9649
* lisp/ox-latex.el (org-latex-headline): Fix regexp in commit
  309ccd9649.
2013-02-25 11:14:57 +01:00
Bastien Guerry 662cb98684 org.el (org-sort-remove-invisible): Remove emphasis markers
* org.el (org-sort-remove-invisible): Remove emphasis markers.
2013-02-25 11:12:55 +01:00
Nicolas Goaziou 309ccd9649 ox-latex: Do not add optional section name when section is unnumbered
* lisp/ox-latex.el (org-latex-headline): Do not add optional section
  name when section is unnumbered.
2013-02-25 11:03:56 +01:00
Bastien Guerry 1ab872c51e Revert "org.el (org-sort-remove-invisible): Truly returns the visible part of the string"
This reverts commit 30d6dc8baa.
2013-02-25 11:00:55 +01:00
Nicolas Goaziou f26547e320 Fix false positives in `org-in-verbatim-emphasis'
* lisp/org.el (org-in-verbatim-emphasis): Fix false positive when
  point is just after the closing emphasis marker.
2013-02-25 10:53:19 +01:00
Bastien Guerry b5460d5722 Merge branch 'maint' 2013-02-25 10:47:47 +01:00
Tim Burt ad06a946a5 datetree: Recognize year headline with tags as a match
* lisp/org-datetree.el (org-datetree-find-year-create): Also match
headlines with tags.

Change made to fix the problem where a year headline of a
datetree was not matched if it had a tag.  The :NOEXPORT: tag
is one useful case that should be matched.

Initial problem observation reported by Jeffrey McBeth on the
org-mode mailing list.

TINYCHANGE
2013-02-25 10:47:36 +01:00
Bastien Guerry 0030e16002 contrib/lisp/: Update org-drill.el to version 2.3.7
Thanks to Paul Sexton for maintaining org-drill.el!
2013-02-25 10:31:34 +01:00
Bastien Guerry 30d6dc8baa org.el (org-sort-remove-invisible): Truly returns the visible part of the string
* org.el (org-sort-remove-invisible): Use defsust.  Do not
only check against invisible links, truly returns the visible
part of the string.

Thanks to François Pinard for suggesting this.
2013-02-25 10:24:29 +01:00
Bastien Guerry 5700a0eb2d Merge branch 'master' of orgmode.org:org-mode 2013-02-25 10:15:49 +01:00
Bastien Guerry 49772f1f26 Remove hidden links when comparing items or entries.
* org.el (org-sort-remove-invisible): Add a docstring.
(org-sort-entries): Remove hidden links when comparing
entries.

* org-list.el (org-sort-list): Remove hidden links when
comparing list items.

Thanks to François Pinard for suggesting this.
2013-02-25 10:15:44 +01:00
Nicolas Goaziou 8838585a42 Do not move point when filling a table
* lisp/org.el (org-fill-paragraph): Do not move point when filling
  a table.
* testing/lisp/test-org.el: Add test.
2013-02-25 10:06:58 +01:00
Nicolas Goaziou 3b3b6fa836 ox-ascii: Ignore empty lines between comments
* lisp/ox-ascii.el (ascii): Add new filter.
(org-ascii-filter-comment-spacing): New function.
2013-02-25 09:19:07 +01:00
Bastien Guerry 3a0e559ad9 ox-html.el (org-html-headline): Fix typo
* ox-html.el (org-html-headline): Fix typo.

Thanks to Rick Frankel for reporting this.
2013-02-24 19:42:12 +01:00
Bastien Guerry 082023f833 ox-html.el (org-html-format-headline--wrap): Cosmetic change
* ox-html.el (org-html-format-headline--wrap): Cosmetic
change.
2013-02-24 19:25:58 +01:00
Bastien Guerry bd4750f24a Merge branch 'maint'
Conflicts:
	lisp/org-clock.el
	lisp/org.el
2013-02-24 19:19:01 +01:00
Bastien Guerry ac44a7af06 Move `org-at-clock-log-p' from org-clock.el to org.el
* org.el (org-at-clock-log-p): Delete.
* org-clock.el (org-at-clock-log-p): Move here.
2013-02-24 19:16:33 +01:00
Eric Schulte f51fd88554 Return expanded code on programmatic calls
* lisp/ob-core.el (org-babel-expand-src-block): Return value of expanded
  code block on non-interactive calls.
2013-02-24 09:50:46 -07:00
Eric Schulte f30866b03b Customizable wrapper for variables in perl code
* lisp/ob-perl.el (org-babel-perl-var-wrap): Customizable wrapper for
  variables in perl code.
  (org-babel-perl-var-to-perl): Use said wrapper.
2013-02-24 09:50:46 -07:00
Nicolas Goaziou ebf13a39fc ox-latex: Remove non-existent TOC value
* lisp/ox-latex.el (org-latex-keyword): Remove "figures" value.
2013-02-24 16:26:45 +01:00
Nicolas Goaziou eb51080c54 ox-ascii: Fix docstring
* lisp/ox-ascii.el (org-ascii--list-tables): Fix docstring.
2013-02-24 16:16:54 +01:00
Nicolas Goaziou 7440f1a019 org.texi: Document lists of listings and lists of tables
* doc/org.texi (Table of contents): Document lists of listings and
  lists of tables.
2013-02-24 16:13:39 +01:00
Nicolas Goaziou 9e7c30ea3d ox-html: Fix code typo in 1fd83e0487
* lisp/ox-html.el (org-html--format-toc-headline): Fix function name.
2013-02-24 16:03:58 +01:00
Nicolas Goaziou 1fd83e0487 ox-html: Add list of listings and list of tables
* lisp/ox-html.el (org-html-toc, org-html--toc-text): Change to
  docstring.
(org-html-list-of-listings, org-html-list-of-tables): New functions.
(org-html-keyword): Use new functions.
(org-html-src-block): Add an ID attribute when a name is given.
2013-02-24 15:58:47 +01:00
Nicolas Goaziou ca060f7be7 Require 2 blank lines to separate footnote definition
* lisp/org-element.el (org-element-footnote-definition-parser):
  Require 2 blank lines to separate footnote definition.
* lisp/org-footnote.el (org-footnote-at-definition-p): Require 2 blank
  lines to separate footnote definition.
* doc/org.texi: Update documentation for footnotes.
* testing/lisp/test-org-element.el: Update tests.
* testing/lisp/test-org-footnote.el: Add tests.

Footnote definitions can still be separated with other footnote
definitions and headlines. This change allows to have multiple
paragraphs in a footnote definition without resorting to the "\par"
trick.
2013-02-24 14:44:07 +01:00
Nicolas Goaziou a965c06213 ox: Use tabulated list mode for asynchronous stack
* lisp/ox.el (org-export-stack): Rewrite.
(org-export-stack-refresh): Refactor.
(org-export-stack-remove, org-export-stack-view): Apply renaming.
(org-export-stack-mode-map): Use tabulated list map as a basis.
(org-export-stack--generate, org-export-stack--num-predicate): New
function.
2013-02-24 13:51:49 +01:00
Bastien Guerry 398e8af56e Merge branch 'master' of orgmode.org:org-mode 2013-02-24 11:33:34 +01:00
Bastien Guerry d242be2c89 ox-html.el (org-html-format-headline-function): Fix docstring
* ox-html.el (org-html-format-headline-function): Fix docstring.
2013-02-24 10:01:39 +01:00
Nicolas Goaziou a15a657bfb ox: Better return value for `org-export-get-optional-title'
* lisp/ox.el (org-export-get-optional-title): Return regular title
  when no optional title is found.
* lisp/ox-ascii.el (org-ascii--build-title): Apply change to
  `org-export-get-optional-title'.
* lisp/ox-html.el (org-html--format-toc-headline): Apply change to
  `org-export-get-optional-title'.
* lisp/ox-latex.el (org-latex-headline): Apply change to
  `org-export-get-optional-title'.
* testing/lisp/test-ox.el: Add tests.
2013-02-24 09:20:35 +01:00
Bastien Guerry f8e87473d7 ob-sql.el (org-babel-execute:sql): Add header row delimiter for both mysql and postgresql
* ob-sql.el (org-babel-execute:sql): Add header row delimiter
for both mysql and postgresql.

Thanks to Daniel for reporting this.
2013-02-24 09:15:02 +01:00
Bastien Guerry 109f7314a3 org.el (org-agenda-prepare-buffers): Don't use `with-silent-modifications' too early
* org.el (org-agenda-prepare-buffers): Don't use
`with-silent-modifications' too early.

Thanks to J. David Boyd for reporting this and to Florian Beck for
confirming the problem.
2013-02-24 10:49:30 +01:00
Nicolas Goaziou ed7464b6b6 org.texi: Remove "Initial text" node 2013-02-24 00:46:46 +01:00
Nicolas Goaziou cf9bc7819b org.texi: Add documentation for optional title
* doc/org.texi (Table of contents): Add documentation for optional
  title and #+TOC: keyword.
2013-02-24 00:31:57 +01:00
Nicolas Goaziou d790fbd489 ox-ascii/ox-latex/ox-html: Make use of optional title in toc
* lisp/ox-ascii.el (org-ascii--build-title): Add an argument.  Use
  optional title when building a toc line.
(org-ascii--build-toc): Call `org-ascii--build-title' with appropriate
arguments.
* lisp/ox-latex.el (org-latex-headline): Use optional title for table
  of contents.
* lisp/ox-html.el (org-html--toc-text): Renamed from
  `org-html-toc-text'.  Add docstring.
(org-html--format-toc-headline): Renamed from
`org-html-format-toc-headline'.  Add docstring.  Use optional title if
possible.
(org-html-toc): Add docstring.
2013-02-23 23:58:23 +01:00
Nicolas Goaziou e5a249b327 org-element/ox: Introduce :optional-title property and an accessor
* lisp/org-element.el (org-element-headline-parser): Node
  property :OPTIONAL_TITLE: in a headline will be parsed and stored
  under :optional-title property.
* lisp/ox.el (org-export-get-optional-title): New function.
2013-02-23 22:41:30 +01:00
Nicolas Goaziou a1236b9606 ox-latex: Fix 99d4c8f915
* lisp/ox-latex.el (org-latex-format-headline-default-function): Make
  the variable a function.
2013-02-23 22:41:30 +01:00
Nicolas Goaziou de4669d3b7 ox-publish: No error when resolving external fuzzy links outside publishing
* lisp/ox-publish.el (org-publish-resolve-external-fuzzy-link): No
  error when resolving external fuzzy links outside publishing.  Though
  search option for these links will not be resolved.
2013-02-23 16:26:27 +01:00
Bastien Guerry 43c8aa02cc Use `with-silent-modifications' instead of `org-unmodified' when it makes sense
* org-macs.el: Add a comment on when to use `org-unmodified'
and when to use `with-silent-modifications'.

* org-colview.el (org-columns-display-here)
(org-columns-remove-overlays, org-columns-quit)
(org-columns-edit-value, org-columns-compute-all)
(org-columns-compute, org-agenda-colview-compute):
* org-clock.el (org-clock-sum):
* org.el (org-refresh-category-properties)
(org-refresh-properties, org-entry-blocked-p)
(org-agenda-prepare-buffers): Use `with-silent-modifications'
instead of `org-unmodified'.

Thanks to Stefan Monnier for reminding me about `with-silent-modifications'!
2013-02-23 14:57:51 +01:00
Bastien Guerry 64aae2fd29 Merge branch 'maint' 2013-02-23 14:42:45 +01:00