org-mode/lisp
Ilya Shlyakhter 475f2f5388 Properties: Fix property-getting with inheritance
* lisp/org.el (org-entry-get-with-inheritance): Temporarily
let-bind `org-file-properties', `org-global-properties' and
`org-global-properties-fixed' to nil before calling `org-entry-get'
on entries up the hierarchy from the queried entry.

Problem was that when org-entry-get-with-inheritance went up the
hierarchy of entries from a given entry, checking whether the property
has been set in any of the entries, it was calling org-entry-get,
which always looks at file-scope and global-scope properties.  So if
our property was set file-wide or system-wide, and somewhere up the
hierarchy there was an entry which set some properties _other_ than
the one we're looking up but did not set ours, org-entry-get would
fill in the global property value and report that our property was in
fact set in that entry.  The search would stop, and if the property
was actually set further up the hierarchy (which should override
file-wide or system-wide settings), we would never get to that
up-the-hierarchy setting.

Illustration of fixed problem:

#+PROPERTY: myprop aaa
* headline A
	:PROPERTIES:
	:myprop: bbb
	:END:
*** headline B
		:PROPERTIES:
		:otherprop:       ccc
		:END:

    #+BEGIN_SRC emacs-lisp
    (message (org-entry-get-with-inheritance "myprop"))
    #+END_SRC

    #+RESULTS:
    : aaa

		Result should be bbb, which it is after the fix.
2014-03-14 12:02:11 +01:00
..
Makefile Makefile (clean-install): Also remove ox*.el* files 2013-04-18 14:43:45 +02:00
ob-asymptote.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-awk.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-C.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-calc.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-clojure.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-comint.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-core.el ob-core: Speed improvement 2014-01-09 21:36:25 +01:00
ob-css.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ditaa.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-dot.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-emacs-lisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-eval.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-exp.el ob-exp: Do not ignore `org-src-preserve-indentation' 2014-02-01 21:52:43 +01:00
ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-gnuplot.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-haskell.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-io.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-java.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-js.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-keys.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-latex.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ledger.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-lilypond.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-lisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-lob.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ob-makefile.el Backport Emacs changes from r116063 2014-01-18 09:17:14 +01:00
ob-matlab.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-maxima.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-mscgen.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ocaml.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-octave.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-org.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-perl.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-picolisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-plantuml.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-python.el Fix dac6d8 2014-01-22 17:10:55 +01:00
ob-R.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-ref.el ob-ref: Fix "Marker points into wrong buffer" error 2014-01-24 11:26:39 +01:00
ob-ruby.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sass.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-scala.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-scheme.el Backport Emacs changes from r116063 2014-01-18 09:17:14 +01:00
ob-screen.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sh.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-shen.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sql.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-sqlite.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob-table.el ob-table.el (org-sbe): Rename from `sbe' 2014-01-12 12:02:25 +01:00
ob-tangle.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ob.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-agenda.el org-agenda.el (org-agenda-list-stuck-projects): Fix bug 2014-03-13 12:50:09 +01:00
org-archive.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-attach.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-bbdb.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-bibtex.el org-bibtex: Fix `org-bibtex-read' on an empty field 2014-02-24 17:32:14 +01:00
org-capture.el org-capture.el: Fix wrong narrowing with :prepend set to `t' 2014-03-13 10:45:08 +01:00
org-clock.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-colview.el org-colview.el (org-columns-display-here): Let-bind `fm' 2014-03-05 15:47:41 +01:00
org-compat.el Revert "org-compat.el (org-move-to-column): Bugfix" 2014-03-13 12:14:58 +01:00
org-crypt.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-ctags.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-datetree.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-docview.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-element.el org-element: Fix parsing of bold objects at the beginning of a headline 2014-03-12 09:05:50 +01:00
org-entities.el Backport Emacs trunk revno r116039 2014-01-16 11:57:45 +01:00
org-eshell.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-faces.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-feed.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-footnote.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-gnus.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-habit.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-id.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-indent.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-info.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-inlinetask.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-install.el org-install.el: Do not warn users. 2013-01-22 14:08:39 +01:00
org-irc.el Backport typo fixes from Emacs revno r115923 2014-01-09 00:47:40 +01:00
org-list.el Backport typo fixes from Emacs revno 115988 2014-01-12 09:54:21 +01:00
org-macro.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-macs.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-mhe.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-mobile.el Delete :grouptags from tags list when creating org-mobile index file 2014-01-13 00:27:50 +01:00
org-mouse.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-pcomplete.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-plot.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-protocol.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org-rmail.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
org-src.el Fix 9323857 (again^2) 2014-03-14 09:59:28 +01:00
org-table.el org-table.el: Fix bugs about cursor repositioning 2014-02-06 09:58:17 +01:00
org-timer.el org-timer.el (org-timer-stop): Set `org-timer-current-timer' to nil 2014-03-14 11:57:15 +01:00
org-w3m.el Update copyright years again. 2014-01-07 14:18:17 +01:00
org.el Properties: Fix property-getting with inheritance 2014-03-14 12:02:11 +01:00
ox-ascii.el ox-ascii: Convert length' to string-width' 2014-01-16 16:17:48 +01:00
ox-beamer.el ox-beamer: Fix export snippets in sublists 2014-02-25 17:41:33 +01:00
ox-html.el Fix escaping of links in html export. 2014-02-11 11:08:57 +01:00
ox-icalendar.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ox-latex.el ox-latex: Fix :options discrepancy between blocks and lists 2014-01-25 14:56:49 +01:00
ox-man.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ox-md.el ox-md: Generate md links to other Org files 2014-02-14 17:28:03 +01:00
ox-odt.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ox-org.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ox-publish.el Update copyright year for files changed since 2013 2014-01-05 06:35:21 +01:00
ox-texinfo.el Update copyright years again. 2014-01-07 14:18:17 +01:00
ox.el ox.el (org-export--get-subtree-options): Fix bug 2014-01-19 16:37:25 +01:00