org-mode/testing/examples
Gustav Wikström 1bdff9f73d Org document property-drawers
Add functionality to define property-blocks on document level, in
addition to at headline level.

* doc/org-manual.org:
* etc/ORG-NEWS: Document new functionality.

* lisp/org.el (org-keyword-regexp): Define constant instead of
  hardcoding.
(org-file-properties): Renamed, see next line.
(org-keyword-properties): Renamed from above.  Due to the fact that
  properties can be defined for the whole document using property
  drawers this local variable needs a rename to make its name less
  ambigous.
(org-refresh-properties, org-refresh-property, org-entry-properties)
(org-refresh-category-properties, org-get-property-block)
(org-entry-get-with-inheritance, org-entry-put)
(org-insert-property-drawer, org-end-of-subtree): Made to work before
  first headline.
(org-at-property-block-p): New function to validate if point is at the
start of a property block.
(org-property-global-value): Renamed, see next line.
(org-property-global-or-keyword-value): Renamed from above to match
  its functionality better.
(org-back-to-heading-or-point-min): New function to make a document
  work as a level 0 node in the outline.
(org-at-keyword-p): Predicate function to answer to if we're currently
at a keyword line or not.
(org-up-heading-or-point-min): New function to make a document work as
a level 0 node in the outline.

* lisp/org-element.el (org-element--current-element): Can now detect
  property-blocks before first headline according to it's positional
  rules.

* lisp/org-attach.el (org-attach): Make it possible to call the
  attachment dispatcher also before the first headline, since document
  property drawers make attachments possible for the whole document
  now.

* lisp/org-capture.el: Modified only due to rename of function in
  org.el.

* lisp/org-compat.el (org-file-properties)
(org-property-global-value): Renamed functions declared obsolete.

* testing/lisp/test-org.el (org/insert-property-drawer)
(org/set-property, org/delete-property, org/delete-property-globally):
  Additions of tests to check if they work before first headline.
(org/at-property-p, org/at-property-block-p, org/get-property-block)
(org/entry-get, org/refresh-properties): New tests

* testing/examples/property-inheritance.org: Switch from
  property-keywords to a property-drawer in the testfile.
  Functionality should be the same, but now using a document drawer
  instead of property-keywords.

  Reason for switching is that I'd like us to slowly depricate
  property-keywords.

* testing/lisp/test-org-element.el:

* contrib/lisp/ox-taskjuggler.el: A comment is modified only due to
  rename of function in org.el.
2019-10-19 14:07:58 +02:00
..
att1 org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
att2 org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
data/ab/cd123 org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
pub Merge branch 'maint' 2018-02-15 15:04:59 +01:00
pub-symlink Fix failing tests 2018-02-15 15:01:45 +01:00
subdir fix SETUPFILE pathname expansion with subdirectories 2015-09-24 10:16:04 +02:00
agenda-file.org test-org-agenda: Test diary inclusion 2019-01-08 21:32:44 +01:00
attachments.org org-attach*, org, org-manual, org-news, ox-html, testing/* 2019-07-07 19:55:49 +02:00
babel-dangerous.org change this failing test so that it no longer fails 2013-04-03 11:30:14 -06:00
babel.org Remove unnecessary `(require 'cl)' 2018-04-29 12:04:26 +02:00
diary-file test-org-agenda: Test diary inclusion 2019-01-08 21:32:44 +01:00
include.html ox: implement additional #+INCLUDE markup 2014-06-07 18:02:52 +02:00
include.org ox: Update INCLUDE keywords wrt property drawers 2014-10-28 14:23:52 +01:00
include2.org Fix the maint branch. 2012-03-19 20:27:28 +01:00
link-in-heading.org test: re-arranging example files into their own directory 2010-10-05 11:54:48 -06:00
links.org Use https for links to orgmode.org 2018-01-19 18:14:58 +01:00
macro-templates.org Remove useless data in test file 2012-10-10 22:46:50 +02:00
no-heading.org Change Org-mode into Org mode 2017-12-31 15:48:09 +01:00
normal.org Change Org-mode into Org mode 2017-12-31 15:48:09 +01:00
ob-C-test.org Replace TBLNAME with NAME in tests 2016-02-10 15:40:11 +01:00
ob-awk-test.in Awk can be called with no in-file: and no :stdin 2011-07-24 14:05:55 -06:00
ob-awk-test.org awk code blocks handle tabular input 2014-06-07 11:16:55 -04:00
ob-fortran-test.org Replace TBLNAME with NAME in tests 2016-02-10 15:40:11 +01:00
ob-header-arg-defaults.org Remove deprecated syntax for Babel properties 2016-07-04 00:41:56 +02:00
ob-lilypond-broken.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-broken.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.error ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.ly ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-lilypond-test.org ob-lilypond: test suite, all tests passing 2011-07-01 12:22:33 -07:00
ob-maxima-test.org ob-maxima-test: Clarify matrix test 2016-08-20 23:36:41 +02:00
ob-octave-test.org ob-octave.el: Add graphical output 2011-12-17 09:04:20 -07:00
ob-screen-test.org Map "screen" to shell-script-mode 2012-01-20 11:47:13 -07:00
ob-sed-test.org Org Babel now supports sed scripts 2015-05-30 14:59:01 +02:00
ob-shell-test.org ob-shell.el: export vars as arrays for 'sh' code blocks 2014-04-14 21:24:00 -06:00
org-exp.org test of comma stripping behavior 2011-09-06 21:58:51 -06:00
property-inheritance.org Org document property-drawers 2019-10-19 14:07:58 +02:00
setupfile.org fix SETUPFILE pathname expansion with subdirectories 2015-09-24 10:16:04 +02:00
setupfile3.org fix SETUPFILE pathname expansion with subdirectories 2015-09-24 10:16:04 +02:00